Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename tls13_buffer to tls_buffer. | jsing | 2021-10-23 | 7 | -69/+111 |
| | | | | | | | This code will soon be used in the DTLSv1.2 and TLSv1.2 stack. Also introduce tls_internal.h and move/rename the read/write/flush callbacks. ok beck@ tb@ | ||||
* | Stop reaching into structs that will become opaque in ca.c | tb | 2021-10-23 | 1 | -5/+3 |
| | | | | "just commit it" beck | ||||
* | Prepare to provide X509_re_X509*_tbs() | tb | 2021-10-23 | 4 | -4/+35 |
| | | | | ok beck jsing | ||||
* | Prepare to provide X509_get_extension_flags() | tb | 2021-10-23 | 2 | -2/+13 |
| | | | | ok beck jsing | ||||
* | Add SSL_CTX_set_keylog_callback and SSL_CTX_get_keylog_callback | beck | 2021-10-23 | 5 | -4/+67 |
| | | | | | | | | Some things in ports care about calling these functions. Since we will not provide private key logging functionality they are documented as being for compatibility and that they don't do anything. ok tb@ | ||||
* | Prepare to provide X509_SIG_get{0,m}. | tb | 2021-10-23 | 2 | -2/+28 |
| | | | | ok beck jsing | ||||
* | Nuke the asn1-kludge. This was a workaround for CAs with broken PCKS#10 | tb | 2021-10-23 | 2 | -35/+5 |
| | | | | | | encoders many moons ago. OpenSSL removed it in 2015. ok beck jsing | ||||
* | Add back the fips mode test functions, new stuff requires this. | beck | 2021-10-23 | 3 | -3/+83 |
| | | | | | Symbols.list changes to follow with tb's upcoming bump ok jsing@ | ||||
* | Untangle ssl3_get_message() return values. | jsing | 2021-10-23 | 6 | -166/+139 |
| | | | | | | | | | | | | | | | This function currently has a long return type that may be <= 0 on error/retry (which is then cast to an int in order to return it up the stack), or it returns the length of the handshake message (on success). This obviously means that 0 can be returned for both success and failure, which is the reason why a separate 'ok' argument has to exist. Untangle this mess by changing the return value to an int that indicates success (1) or error/retry (<= 0). The length never needs to actually be returned as it is already stored in s->internal->init_num (which is where the return value is read from anyway). ok tb@ | ||||
* | Revise regress for tlsext_tick_lifetime_hint changing type. | jsing | 2021-10-23 | 1 | -2/+2 |
| | |||||
* | Add a length check before NUL-terminating target. From Jonas Termansen. | tb | 2021-10-23 | 1 | -1/+5 |
| | | | | ok jsing | ||||
* | Change tlsext_tick_lifetime_hint to uint32_t. | jsing | 2021-10-23 | 4 | -17/+11 |
| | | | | | | | | Now that SSL_SESSION is opaque, change tlsext_tick_lifetime_hint from long to uint32_t (matching RFC4507), rather than continuing to work around an inappropriate type choice. ok tb@ | ||||
* | Prepare to provide X509_get_{extended_,}key_usage() | tb | 2021-10-22 | 2 | -2/+32 |
| | | | | ok beck jsing | ||||
* | Switch from u_int and u_char to u32 and u8 to avoid portability issues. | tb | 2021-10-22 | 1 | -17/+14 |
| | | | | | | Prompted by a diff by Jonas Termansen. ok jsing | ||||
* | Prepare to provide X509_REQ_pubkey_get0() | tb | 2021-10-22 | 2 | -2/+13 |
| | | | | ok jsing | ||||
* | new manual page EVP_PKEY_add1_attr(3) documenting nine functions | schwarze | 2021-10-22 | 7 | -8/+202 |
| | | | | for associating X.501 Attributes with private keys | ||||
* | new manual page X509at_add1_attr(3) | schwarze | 2021-10-22 | 4 | -6/+140 |
| | | | | describing five functions to change arrays of X.501 Attribute objects | ||||
* | fix a gratuitiously different argument name | schwarze | 2021-10-22 | 1 | -3/+3 |
| | |||||
* | new manual page X509at_get_attr(3) | schwarze | 2021-10-22 | 3 | -4/+163 |
| | | | | documenting five X.501 Attribute read accessors | ||||
* | Put back sys/types.h and sys/socket.h. The latter was unintentionally | tb | 2021-10-22 | 1 | -1/+3 |
| | | | | removed and the former is still needed, as pointed out by kettenis | ||||
* | Fix some ghastly whitespace. From Martin Vahlensieck | tb | 2021-10-22 | 1 | -6/+6 |
| | |||||
* | Use unsigned char instead of u_char in base64.c. This is a mild | tb | 2021-10-22 | 1 | -9/+6 |
| | | | | | | | | | portability annoyance since not all systems have u_char. Remove the now unused includes sys/types.h and stdio.h. u_char diff from Jonas Termansen ok deraadt | ||||
* | Garbage collect an unused variable. | tb | 2021-10-22 | 1 | -4/+2 |
| | |||||
* | Stop setting enc.modified manually. It's no longer needed. | tb | 2021-10-22 | 2 | -4/+2 |
| | |||||
* | Simplify the description of RETURN VALUES. | schwarze | 2021-10-21 | 1 | -10/+4 |
| | | | | | | After tb@'s commit x509/x509_lu.c rev. 1.33, it is no longer necessary to talk about X509_LU_* constants as return values from these functions. Feedback and OK from tb@. | ||||
* | Simplify a return value check for X509_STORE_get_by_subject() now | tb | 2021-10-21 | 1 | -18/+7 |
| | | | | | | | that we know that it only returns 0 or 1. Eliminate the last uses of X509_LU_{FAIL,RETRY}. ok jsing | ||||
* | Set enc.modified if the X509_REQ is going to be modified. | tb | 2021-10-21 | 1 | -1/+4 |
| | | | | ok jsing | ||||
* | new manual page X509_ATTRIBUTE_set1_object(3) | schwarze | 2021-10-21 | 4 | -6/+276 |
| | | | | documenting five X.501 Attribute write accessors | ||||
* | Sync parts of X509_STORE_get_by_subject() with OpenSSL | tb | 2021-10-21 | 1 | -13/+7 |
| | | | | | | | | | | | Initialize stmp.type and stmp.data.ptr so that a user-defined lookup method need not take responsibility of initializing those. Get rid of current_method, which was never really used. Stop potentially returning a negative value since most callers assume Boolean return values already. In addition, garbage collect the pointless j variable. ok jsing | ||||
* | Prepare to make X509 opaque. | tb | 2021-10-21 | 1 | -4/+7 |
| | | | | ok jsing | ||||
* | libtls: Don't reach into X509_STORE_CTX. | tb | 2021-10-21 | 1 | -12/+20 |
| | | | | ok jsing | ||||
* | Switch from X509_VERIFY_PARAM_set_flags() to X509_STORE_set_flags(). | tb | 2021-10-21 | 1 | -2/+2 |
| | | | | | | This reduces the number of reacharounds into libcrypto internals. ok jsing | ||||
* | Add XKU_ANYEKU #define and use it to cache the anyExtendedKeyUsage | tb | 2021-10-21 | 2 | -3/+8 |
| | | | | | | | extension. This is part of OpenSSL commit df4c395c which didn't make it into our tree for some reason. ok jsing | ||||
* | Prepare to provide X509_get_X509_PUBKEY() as a function. | tb | 2021-10-21 | 2 | -5/+15 |
| | | | | ok jsing | ||||
* | Bump to LibreSSL 3.5.0 | tb | 2021-10-21 | 1 | -3/+3 |
| | |||||
* | Eliminate a dead assignment and a weird cast. Adjust a comment to | tb | 2021-10-21 | 1 | -6/+3 |
| | | | | | | reality while there. ok jsing | ||||
* | Print uid with %u instead of %i. | tb | 2021-10-21 | 1 | -2/+2 |
| | | | | | | Prompted by a diff by Jonas Termansen, discussed with deraadt, millert ok jsing | ||||
* | Use *printf %d instead of %i | tb | 2021-10-21 | 1 | -2/+2 |
| | | | | ok jsing | ||||
* | Avoid potential NULL dereferences in dtls1_free() | tb | 2021-10-21 | 1 | -2/+7 |
| | | | | ok jsing | ||||
* | document ASN1_STRING_set_by_NID(3) | schwarze | 2021-10-20 | 2 | -5/+129 |
| | | | | and the three functions related to the global mask | ||||
* | new manual page ASN1_mbstring_copy(3) | schwarze | 2021-10-20 | 4 | -5/+182 |
| | | | | also documenting ASN1_mbstring_ncopy(3) | ||||
* | new manual page X509_ATTRIBUTE_get0_object(3) | schwarze | 2021-10-20 | 3 | -2/+139 |
| | | | | documenting the four X.501 Attribute read accessors | ||||
* | document X509_ATTRIBUTE_create(3) and X509_ATTRIBUTE_dup(3) | schwarze | 2021-10-20 | 1 | -6/+60 |
| | |||||
* | document X509_get_pubkey_parameters(3) in a new manual page | schwarze | 2021-10-19 | 5 | -7/+114 |
| | |||||
* | more precision, fewer words | schwarze | 2021-10-19 | 1 | -28/+43 |
| | |||||
* | document i2d_PrivateKey_bio(3) and i2d_PrivateKey_fp(3) | schwarze | 2021-10-19 | 1 | -12/+37 |
| | |||||
* | install X509_PKEY_new(3) | schwarze | 2021-10-19 | 1 | -1/+2 |
| | |||||
* | document X509_PKEY_new(3) and X509_PKEY_free(3) | schwarze | 2021-10-19 | 4 | -8/+103 |
| | |||||
* | document X509_VERIFY_PARAM_inherit(3) and X509_VERIFY_PARAM_set1(3) | schwarze | 2021-10-18 | 4 | -8/+159 |
| | |||||
* | split seven functions out of the page X509_VERIFY_PARAM_set_flags(3), which | schwarze | 2021-10-18 | 5 | -134/+175 |
| | | | | | is becoming excessively long, into a new page X509_VERIFY_PARAM_new(3); no content change |