summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2024-08-28Avoid reaching into X509_ALGOR in ocsp_certid_print()Theo Buehler
ok jsing
2024-08-28Avoid polluting the error stack when printing certificatesTheo Buehler
For a certificate serial number between LONG_MAX and ULONG_MAX, the call to ASN1_INTEGER_get() fails and leaves an error on the stack because the check bs->length <= sizeof(long) doesn't quite do what it's supposed to do (bs is probably for bitstring, although the more common reading would be adequate, too.) Fix this by checking for non-negativity and using ASN1_INTEGER_get_uint64() and add a lengthy comment to explain the nonsense per beck's request. discussed with jsing ok beck
2024-08-27cms_att.c: tidy includes and add x509_local.h for upcoming changeTheo Buehler
2024-08-26replace atoi(3) usage with strtonum(3); ok/tweaks tb@Omar Polo
2024-08-26replace strtol(3) usage with strtonum(3); idea/ok/tweaks tb@Omar Polo
2024-08-26Replace recallocarray() with a realloc() + memset() combo.Claudio Jeker
recallocarray(), with its guarantee that memory becoming unallocated is explicitly discarded, is too slow. In rpki-client forming one particular ibuf takes more then 4mins because every recallocarray() call ends up doing a fresh malloc + memcpy + freezero call. For sensitive data use ibuf_open() instead of ibuf_dynamic() to avoid any memory reallocations. OK tb@
2024-08-24More precision on what exactly OCSP_id_cmp and OCSP_issuer_id_cmp compare.Theo Buehler
The existing description was lacking and incorrect, respectively.
2024-08-24conf_def.c: add two trailing commasTheo Buehler
2024-08-24X509at_get_attr: zap trailing comma.Theo Buehler
reminded by mandoc -Tlint
2024-08-24LibreSSL no longer supports adding X.501 attributes to an EVP_PKEYTheo Buehler
Remove the corresponding documentation.
2024-08-24Switch UI_UTIL_read_pw* to LCRYPTO_UNUSED()Theo Buehler
ok jsing
2024-08-24Neuter the completely broken UI_UTIL_read_pw* APITheo Buehler
Return 0 on success, return <= 0 on failure. Sigh. In particular, if an allocation failed, the password that no one entered was considered valid. ok jsing
2024-08-24Remove documentation of UI_UTIL_read_pw*Theo Buehler
According to some, a fail-open password verification function is par for the course for libcrypto. Unfortunately, we have been recommending its use over similarly named EVP functions after what amounted to a coin toss a few years back. Luckily enough, no one followed that advice and we can soon remove this API for good.
2024-08-23Fix some program names that were not expanded correctly when ncurses wasNicholas Marriott
updated and were instead replaced by ?. ok millert
2024-08-22PKCS12_create(3): remove Xr to EVP_PKEY_add1_attr(3)Theo Buehler
This API family has been neutered and will be removed in the next bump. Further cross references will be untangled in the future.
2024-08-22Garbage collect unused attributes member from EVP_PKEYTheo Buehler
ok miod
2024-08-22Remove copy_bag_attr()Theo Buehler
It is no longer possible to set an attribute on an EVP_PKEY, so this code is dead. ok miod
2024-08-22Neuter EVP_PKEY_add1_attr_by_NID()Theo Buehler
The last consumer in openssl(1) pkcs12 has been removed, so we no longer need this function. ok miod
2024-08-21Make sure ai_canonname is set when AI_CANONNAME was requested.Florian Obser
We document, and posix requires, to return a NUL-terminated string on a successful call to getaddrinfo(3) when AI_CANONNAME was set. If the canonical name cannot be determined, return the node name as suggested by posix. OK guenther
2024-08-18conf_def.c: shuffle things into a slightly more sensibleTheo Buehler
Reduces upcoming diffs and avoids annoying prototypes.
2024-08-18Remove documentation for X509_REQ_[gs]et_extension_nidsTheo Buehler
These functions have been disabled for a while and they will be removed in the next major bump.
2024-08-18Use struct __sFILE instead of FILE in thread locking callbackPhilip Guenther
declarations to reduce <stdio.h> pollution. Declare __isthreaded in thread_private.h where it's really needed. ok deraadt@
2024-08-18Adjust locale/rune*.h files so <stdio.h> and <wchar.h> get pulledPhilip Guenther
into fewer files that don't need them. ok deraadt@
2024-08-18Pull in <stdio.h> (for snprintf()) directly instead ofPhilip Guenther
assuming some local .h will pull it in ok deraadt@
2024-08-17effectively revert revision 1.7.Peter Hessler
The original reason was some corner cases around COPY relocations, which caused problems for miniperl which directly modified environ and accessed environ via libc functions. This causes duplicate symbols for environ/__progname in some (poorly written) apps, but is allowed on most other architectures. Since the time this was added other arm architecture changes mean that we don't need it, so remove it. debugged with kettenis@ and jca@ tested and OK guenther@
2024-08-17Zap a trailing comma to appease mandoc -TlintTheo Buehler
2024-08-17Remove docs of various X509_TRUST "functionality" that no longer existsTheo Buehler
Some macros are still exposed, but apart from the loss of a very nice way of saying "this is completely misdesigned, overengineered and not properly thought through" the only thing we would have learned from it is that this stuff is "probably useless".
2024-08-15Support describing ABI changes for static libraries too.Philip Guenther
Try the -S option
2024-08-14timingsafe_bcmp() is better than timingsafe_memcmp() for the purpose.YASUOKA Masahiko
2024-08-13zap extra word;Jason McIntyre
2024-08-12fflush.3: zap trailing whitespaceTheo Buehler
2024-08-12Fix grammar in history sectionTheo Buehler
ok guenther
2024-08-12Give libtls the same bump as libsslTheo Buehler
2024-08-12Bump minor after symbol additionTheo Buehler
2024-08-12Add SSL_CTX_set1_cert_store() and SSL_CIPHER_get_handshake_digest() toTheo Buehler
Symbols.list
2024-08-12Expose SSL_CTX_set1_cert_store() and SSL_CIPHER_get_handshake_digest()Theo Buehler
2024-08-12Add <stdio_ext.h> with the seven APIs needed to have gnulib operatePhilip Guenther
without poking directly into the FILE structure. Repeated testing, "nope, need a few more" feedback, and ok tb@
2024-08-12Make exit(), fclose(), fflush(), and freopen() comply with POSIX-2008Philip Guenther
requirements for setting the underlying file position when flushing read-mode streams, and make an fseek()-after-fflush() not change the underlying file position. Much testing, review, and assistance from tb@ ok tb@ millert@
2024-08-11Add include path for crypto_arch.h.Joel Sing
2024-08-11Provide and use crypto_arch.h.Joel Sing
Provide a per architecture crypto_arch.h - this will be used in a similar manner to bn_arch.h and will allow for architecture specific #defines and static inline functions. Move the HAVE_AES_* and HAVE_RC4_* defines here. ok tb@
2024-08-10Remove the empty ui_compat.hTheo Buehler
unused in ports and on codesearch
2024-08-08ct.h: move two asterisks to the proper placeTheo Buehler
2024-08-08ui_util.c needs stdio.h and ui.h, but not ui_compat.h and ui_local.hTheo Buehler
2024-08-08Use timingsafe_memcmp() when comparing the authenticators. from iij.YASUOKA Masahiko
2024-08-07asprintf() and vasprintf() are in POSIX-2024. Update #includePhilip Guenther
visibility and manpages and add restrict qualifiers in all the specified places to the *printf family. ok millert@
2024-08-07wcslcpy() and wcslcat() are in POSIX-2024. Update #include visibilityPhilip Guenther
and manpages and add restrict qualifiers. ok millert@
2024-08-05sync with upstream (noop for openbsd)Theo Buehler
2024-08-04ppoll() is in POSIX-2024. Update #include visibility and manpagesPhilip Guenther
and add restrict qualifiers. While here, rename the BUGS section to CAVEATS since they're really "these probably don't do what you want" notes and not things that need fixing. ok millert@
2024-08-04x509_vfy.c: drop some unnecessary parenthesesTheo Buehler
2024-08-03A dozen interfaces in <endian.h> were standardized in POSIX-2024 as expectedPhilip Guenther