summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-10-23tweak previous: properly mark up function pointer typedefIngo Schwarze
plus .Dv NULL, SEE ALSO, HISTORY
2021-10-23Prepare to make many of the structs in x509.h opaque.Theo Buehler
ok beck jsing
2021-10-23Change ssl_verify_cert_chain() for compatibility with opaqueTheo Buehler
X509_STORE_CTX and use accessors instead of reaching directly into the struct. ok jsing
2021-10-23Use X509_STORE_CTX_get0_chain() instead of grabbing the chain directlyTheo Buehler
out of the X509_STORE_CTX. ok jsing
2021-10-23Rename tls13_buffer to tls_buffer.Joel Sing
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@
2021-10-23Prepare to provide X509_re_X509*_tbs()Theo Buehler
ok beck jsing
2021-10-23Prepare to provide X509_get_extension_flags()Theo Buehler
ok beck jsing
2021-10-23Add SSL_CTX_set_keylog_callback and SSL_CTX_get_keylog_callbackBob Beck
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@
2021-10-23Prepare to provide X509_SIG_get{0,m}.Theo Buehler
ok beck jsing
2021-10-23Add back the fips mode test functions, new stuff requires this.Bob Beck
Symbols.list changes to follow with tb's upcoming bump ok jsing@
2021-10-23Untangle ssl3_get_message() return values.Joel Sing
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@
2021-10-23Change tlsext_tick_lifetime_hint to uint32_t.Joel Sing
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@
2021-10-22Prepare to provide X509_get_{extended_,}key_usage()Theo Buehler
ok beck jsing
2021-10-22Switch from u_int and u_char to u32 and u8 to avoid portability issues.Theo Buehler
Prompted by a diff by Jonas Termansen. ok jsing
2021-10-22Prepare to provide X509_REQ_pubkey_get0()Theo Buehler
ok jsing
2021-10-22new manual page EVP_PKEY_add1_attr(3) documenting nine functionsIngo Schwarze
for associating X.501 Attributes with private keys
2021-10-22new manual page X509at_add1_attr(3)Ingo Schwarze
describing five functions to change arrays of X.501 Attribute objects
2021-10-22fix a gratuitiously different argument nameIngo Schwarze
2021-10-22After deleting hifn(4) the only provider for the LZS compressionAlexander Bluhm
algorithm is gone. Reomve all LZS references from the tree. The v42bis in isakmpd also looks unsupported. OK mvs@ patrick@ sthen@
2021-10-22new manual page X509at_get_attr(3)Ingo Schwarze
documenting five X.501 Attribute read accessors
2021-10-22Put back sys/types.h and sys/socket.h. The latter was unintentionallyTheo Buehler
removed and the former is still needed, as pointed out by kettenis
2021-10-22Fix some ghastly whitespace. From Martin VahlensieckTheo Buehler
2021-10-22Use unsigned char instead of u_char in base64.c. This is a mildTheo Buehler
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
2021-10-21Simplify the description of RETURN VALUES.Ingo Schwarze
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@.
2021-10-21Simplify a return value check for X509_STORE_get_by_subject() nowTheo Buehler
that we know that it only returns 0 or 1. Eliminate the last uses of X509_LU_{FAIL,RETRY}. ok jsing
2021-10-21Set enc.modified if the X509_REQ is going to be modified.Theo Buehler
ok jsing
2021-10-21new manual page X509_ATTRIBUTE_set1_object(3)Ingo Schwarze
documenting five X.501 Attribute write accessors
2021-10-21Sync parts of X509_STORE_get_by_subject() with OpenSSLTheo Buehler
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
2021-10-21Prepare to make X509 opaque.Theo Buehler
ok jsing
2021-10-21libtls: Don't reach into X509_STORE_CTX.Theo Buehler
ok jsing
2021-10-21Switch from X509_VERIFY_PARAM_set_flags() to X509_STORE_set_flags().Theo Buehler
This reduces the number of reacharounds into libcrypto internals. ok jsing
2021-10-21Add XKU_ANYEKU #define and use it to cache the anyExtendedKeyUsageTheo Buehler
extension. This is part of OpenSSL commit df4c395c which didn't make it into our tree for some reason. ok jsing
2021-10-21Prepare to provide X509_get_X509_PUBKEY() as a function.Theo Buehler
ok jsing
2021-10-21Bump to LibreSSL 3.5.0Theo Buehler
2021-10-21Eliminate a dead assignment and a weird cast. Adjust a comment toTheo Buehler
reality while there. ok jsing
2021-10-21Print uid with %u instead of %i.Theo Buehler
Prompted by a diff by Jonas Termansen, discussed with deraadt, millert ok jsing
2021-10-21Use *printf %d instead of %iTheo Buehler
ok jsing
2021-10-21Avoid potential NULL dereferences in dtls1_free()Theo Buehler
ok jsing
2021-10-21Sync ober_oid_cmp with ax_oid_cmp from libagentx.Martijn van Duren
This flips the returned signedness and adds the weight of 2 for parent-child relationship in both direction. This makes ober_oid_cmp consistent with the rest of the *_cmp based functions. OK tb@
2021-10-20document ASN1_STRING_set_by_NID(3)Ingo Schwarze
and the three functions related to the global mask
2021-10-20new manual page ASN1_mbstring_copy(3)Ingo Schwarze
also documenting ASN1_mbstring_ncopy(3)
2021-10-20new manual page X509_ATTRIBUTE_get0_object(3)Ingo Schwarze
documenting the four X.501 Attribute read accessors
2021-10-20document X509_ATTRIBUTE_create(3) and X509_ATTRIBUTE_dup(3)Ingo Schwarze
2021-10-19document X509_get_pubkey_parameters(3) in a new manual pageIngo Schwarze
2021-10-19more precision, fewer wordsIngo Schwarze
2021-10-19document i2d_PrivateKey_bio(3) and i2d_PrivateKey_fp(3)Ingo Schwarze
2021-10-19install X509_PKEY_new(3)Ingo Schwarze
2021-10-19document X509_PKEY_new(3) and X509_PKEY_free(3)Ingo Schwarze
2021-10-18document X509_VERIFY_PARAM_inherit(3) and X509_VERIFY_PARAM_set1(3)Ingo Schwarze
2021-10-18split seven functions out of the page X509_VERIFY_PARAM_set_flags(3), whichIngo Schwarze
is becoming excessively long, into a new page X509_VERIFY_PARAM_new(3); no content change