summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/labs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2023-07-25EC_POINT_is_on_curve() error is -1, not 0.tb1-2/+2
ok miod
2023-07-24Fix two EC_POINT_is_on_curve() checkstb2-4/+4
This API can fail for various reasons, in which case it returns -1, so you need to check if (EC_POINT_is_on_curve_checks(...) <= 0). ok miod
2023-07-24Fix EC_POINT_is_on_curve() checks.tb1-9/+9
If not even the idiot who invented this API gets this right...
2023-07-24Fix a minibug in DH_check()tb1-2/+2
Or in the flag, don't overwrite the already set ones. ok jsing
2023-07-24Remove OPENSSL_cpuid_setup() call from OPENSSL_add_all_algorithms_noconf()jsing1-2/+1
OPENSSL_cpuid_setup() used to need to be called from OPENSSL_add_all_algorithms(), as that was the main entry point. These days we do on demand initialisation and there are various paths that lead to OPENSSL_init_crypto() being called, which in turn calls OPENSSL_cpuid_setup(). ok tb@
2023-07-24Mark read/write registers as non-overlapping for bn_qwmulw_{addqw_,}addw()jsing1-3/+3
This does not cause an issue currently, however if called differently to their current usage, it can lead to an input being overwritten and incorrect results being generated.
2023-07-24Use C99 initializers for x509_name_fftb1-8/+8
2023-07-24remove errstr -stats testtb1-3/+1
reminded by anton
2023-07-23sprinkle some void between () in function definitionstb13-26/+26
2023-07-23Remove -stats option from openssl(1) errstr.tb2-41/+5
This is the only consumer of ERR_get_string_table(), which will go away. ok jsing
2023-07-22Tweak previous. Should have been 60 instead of 64tb1-3/+3
2023-07-22Align argument names of OBJ_add_sigid() with the other functions.tb1-2/+2
2023-07-22Rewrite obj_xref.ctb4-419/+291
Instead of having two unreadable tables placed in a header generated by a janky perl script from an ugly text file, use a single table inlined in the C file. This table is used to translate between signature algorithm OIDs and pairs of OIDs of a message digest and a cipher. The table has fewer than fifty entries and isn't used in a hot path. Using binary search is overkill. Just do two linear searches, one for each translation. None of the original code remains apart from the API. ok jsing
2023-07-22No need to call OBJ_sigid_free() in EVP_cleanup() anymore.tb1-2/+1
ok jsing
2023-07-22Neuter OBJ_add_sigid() and OBJ_sigid_free()tb1-93/+11
These functions will be removed in the upcoming bump. Nothing uses them, so it won't hurt if they become noops. This allows us to garbage collect the sig_app and sigx_app stacks and make a first step towards simplifying the OBJ_bsearch_() dances. Also sprinkle some const correctness... because we can. intermediate step towards a diff that is ok jsing
2023-07-22Adapt bn_print() for EdDSA key printingtb1-7/+40
This is essentially a reimplementation of ASN1_buf_print(). The latter was only added for these printing purposes and it will be removed again since nothing uses it. We can then simply remove t_pkey.c in the upcoming bump. ok jsing
2023-07-22Simplify indent handling in bn_print()tb1-6/+3
variant of a suggestion by jsing
2023-07-22Fix #includes in ct_sct.ctb1-5/+7
This does not need tls1.h (upstream used TLSEXT constants we don't have) nor does it need evp.h. But it does need asn1.h, objects.h for STACK_OF and NID_*, among other things and it also uses uint64_t and allocates, so it needs stdint.h and stdlib.h.