summaryrefslogtreecommitdiff
path: root/regress/lib
AgeCommit message (Collapse)Author
2023-07-24Fix EC_POINT_is_on_curve() checks.Theo Buehler
If not even the idiot who invented this API gets this right...
2023-07-21bio_asn1 tests: drop unneeded variableTheo Buehler
2023-07-20Remove a few workarounds that are no longer necessaryTheo Buehler
2023-07-19Don't rely on the libssl headers pulling in stdio.h somehowTheo Buehler
2023-07-19Add missing commas to test vectorsjoshua
ok tb@
2023-07-15Import a version of libcrypto's symbols test for libsslTheo Buehler
2023-07-19Add test coverage for SHA3joshua
ok tb@
2023-07-16ecc_cdh: plug leak of peer public keyTheo Buehler
2023-07-16ecdhtest: Drop unnecessary constant and unneeded includesTheo Buehler
2023-07-16ecdhtest: fix a couple bugs plus some cosmetic tweaksTheo Buehler
2023-07-15fix include directive - this is make, not CTheo Buehler
2023-07-15Rework the ecdhtestTheo Buehler
Test keyshare for all built-in curves and simplify, especially printing on failure. Incorporate known answer tests from RFC 5114 and RFC 5903. All in all, this is a lot less code and a lot more test coverage and hopefully a little less eyebleed. Very loosely based on OpenSSL b438f0ed by Billy Brumley
2023-07-15Fix return value check for ECDH_compute_key()Theo Buehler
ECDH_compute_key() usually returns -1 on error (but sometimes 0). This was also the case in OpenSSL when these tests were written. This will soon change. The check for <= 0 will still be correct.
2023-07-15Import a version of libcrypto's symbols test for libsslTheo Buehler
2023-07-15Add test coverage for cofactor ECDH using NIST test vectorsTheo Buehler
Since all non-binary NIST curves have cofactor 1, this is in effect plain ECDH. Current regress coverage of ECDH is quite lacking on architectures where Go isn't available. This fixes that. Actual cofactor ECDH support may be added soon to libcrypto, at which point I will also add testcases with cofactor > 1.
2023-07-15Link symbols test to buildTheo Buehler
2023-07-15remove accidentally imported files againTheo Buehler
2023-07-15Import a version of libcrypto's symbols test for libsslTheo Buehler
2023-07-12Reenable clienttest and servertestTheo Buehler
2023-07-11Fix last bit of the clienttest, needs ssl_pkt.c r1.66Theo Buehler
2023-07-11Keep servertest silent and align with clienttestTheo Buehler
2023-07-11Neuter expected server test failures with SSLv2Theo Buehler
This test should either be extended or retired. As it is it is useless.
2023-07-11Fix most of the clienttest. With this only test cases 9 and 13 fail.Theo Buehler
2023-07-10Add test case for negative number with highest bit of top octet setTheo Buehler
This currently adds an incorrect 00: padding, consistent with OpenSSL's behavior.
2023-07-08Fix whitespaceTheo Buehler
2023-07-08partial fix for make -j8 (bluhm@ is sitting right next to me and agreeing)Marc Espie
there is a subtler issue with make regress/make all that will be way more of a headache to sort !
2023-07-07upstream portable fix for ocsp_testBrent Cook
2023-07-07Add test coverage for leading zero octet danceTheo Buehler
2023-07-07fixup for MS compilersBrent Cook
2023-07-06bn_print: remove unused bio, plug leakTheo Buehler
2023-07-06Add regress coverage for bn_printfTheo Buehler
This must be one of the ugliest tests I've ever written, but I can't think of a better way of doing it.
2023-07-05Avoid undefined behavior in tlsexttestTheo Buehler
An empty array cannot be initialized and it is an incomplete type, so the sizeof() operator can't be applied to it. Therefore initialize it with a zero byte and replace sizeof() use with lengths. Slightly tweaked version of a patch by inoguchi in portable. Discussed with bcook, beck, kettenis
2023-07-04Plug leak in the ssltestTheo Buehler
Removing -tls1 moved some tests from the legacy stack to the TLSv1.3 stack. On a HRR, the alpn callback would be called twice and allocate the global twice, thereby leaking. So free it up front. Joint suffering with bcook and beck
2023-07-03add regress tests for the remainder of the function provided by our uuid.hJasper Lievisse Adriaanse
2023-07-02Disable TLS 1.0 and TLS 1.1 in libsslBob Beck
Their time has long since past, and they should not be used. This change restricts ssl to versions 1.2 and 1.3, and changes the regression tests to understand we no longer speak the legacy protocols. For the moment the magical "golden" byte for byte comparison tests of raw handshake values are disabled util jsing fixes them. ok jsing@ tb@
2023-07-02Remove the ability to do tls 1.0 and 1.1 from libtls.Bob Beck
With this change any requests from configurations to request versions of tls before tls 1.2 will use tls 1.2. This prepares us to deprecate tls 1.0 and tls 1.1 support from libssl. ok tb@
2023-06-23Codify BN_asc2bn(NULL, *) behavior in regress.Theo Buehler
2023-06-22symbols: Tweak this test so it works with -j NTheo Buehler
2023-06-21Add tests for BN_sqr() corner cases.Joel Sing
Test BN_sqr() with a newly allocated BN, a BN explicitly set to zero and small values that fit in a single BN_ULONG.
2023-06-21Add BN_cmp()/BN_ucmp() tests with zero padded inputs.Joel Sing
Currently BN_hex2bn() removes the leading zeros, however this will not be the case in the future.
2023-06-21Add a BN_num_bits() with zero padded input.Joel Sing
Currently BN_hex2bn() removes the leading zeros, however this will not be the case in the future.
2023-06-20Fix copy-paste errorTheo Buehler
2023-06-20Add regress coverage for BN_num_bits()Joel Sing
2023-06-19Make enginetest work with disabled engine supportTheo Buehler
2023-06-19Fix GOST test with disabled engineTheo Buehler
2023-06-19Drop test for msgbuf_drain() since that function is no longer part of theClaudio Jeker
public API.
2023-06-13Some KNF nitsTheo Buehler
2023-06-13imsg test: simplify MakefileTheo Buehler
2023-06-10File new test-bleichenbacher-timing-pregenerate.py under failing testsTheo Buehler
until someone finds time and motivation to figure out how to use this.
2023-06-05Fix copy+paste error in x509 asn regressJob Snijders