summaryrefslogtreecommitdiffstats
path: root/regress/lib/libssl
AgeCommit message (Collapse)AuthorFilesLines
2021-03-29Add regress coverage for TLSv1.2 record number increment.jsing1-8/+151
2021-03-28The failure mode of test-tls13-version-negotiation.py has changed.tb1-4/+2
Update comment.
2021-03-27Enable test-sig-algs-renegotiation-resumption.py.tb1-5/+6
This test covers various scenarios with renegotiation and session resumption. In particular it crashes the OpenSSL 1.1.1j server due to the sigalg NULL deref fixed this week. We need --sig-algs-drop-ok since we do not currently implement signature_algorithms_cert.
2021-03-26Add test-sig-algs-renegotiation-resumption.pytb1-1/+5
This test currently fails but may soon be fixed.
2021-03-24The server only sends a cookie during a HRR, not a SHtb1-4/+4
2021-03-24Update regress for new_cipher rename.jsing2-6/+6
2021-03-22Plug a few memory leaks reported by Ilya Shipitsintb1-9/+7
2021-03-21Revise regress to match handshake struct changes.jsing1-18/+18
2021-03-20typotb1-2/+2
2021-03-20Add new test-tls13-multiple-ccs-messages.pytb1-1/+8
This is a test that checks for NSS's CCS flood DoS CVE-2020-25648. The test script currently fails on LibreSSL and OpenSSL 1.1.1j because it sends invalid records with version 0x0300 instead of 0x0303. We have the ccs_seen logic corresponding to NSS's fix: https://hg.mozilla.org/projects/nss/rev/57bbefa793232586d27cee83e74411171e128361 but we do allow up to two CCS due to an interop issue with Fizz, so at least one of the tests will likey be broken once the record version is fixed.
2021-03-17Update for DTLSv1.2 being enabled.jsing1-4/+4
2021-03-17Update for DTLSv1.2 version handling.jsing1-6/+90
2021-03-10Revise TLS extension regress to match version handling changes.jsing1-57/+25
2021-02-25Update regress to match TLS versions change.jsing1-6/+6
2021-02-20Revise regress to match change in SSL{_CTX,}_get_{min,max}_proto_version().jsing1-34/+45
2021-02-08Update DTLS client hello due to ECC changes.jsing1-5/+8
2021-02-07Enable auto DHE and disable session tickets for some tests.jsing1-12/+13
This allows us to drop the server messages that we intend on dropping.
2021-02-06Only hexdump packets/messages on higher debug levels.jsing1-3/+4
2021-02-06Test reads and writes between the client and server.jsing1-3/+49
2021-01-27wrap an overlong linetb1-2/+3
2021-01-22Avoid NULL deref on BIO_new{_mem_buf,}() failure.tb1-4/+6
2021-01-22Avoid NULL deref on BIO_new{_mem_buf,}() failure.tb1-3/+5
2021-01-21don't set AUTO_RETRY. it's a remnant of an experiment.tb1-3/+1
2021-01-12A few minor tweaks to make my OCD happy.tb1-12/+9
Sort headers, unwrap a line, fix grammar in spelling and simplify the check for test failure.
2021-01-11Print error if SSL_{connect,accept,shutdown}(3) don't run to completion.tb1-3/+13
2021-01-11Shut down the TLS connections properly.tb1-3/+28
2021-01-11Include headers used instead of relying on ssl.h pulling in the world.tb1-1/+7
2021-01-10Merge handshake_loop() into handshake(). There's no benefit in havingtb1-18/+7
this factored into a separate function.
2021-01-10tweak a commenttb1-2/+2
2021-01-10Link shared ciphers test to buildtb1-1/+3
2021-01-10Add a regress for SSL_get_shared_ciphers() for the change of returnedtb1-0/+457
ciphers in ssl_lib.c r1.240 and TLSv1.3 support in tls13_server.c r1.69. requested by jsing
2021-01-09whitespacetb2-7/+7
2020-12-25Add to *FLAGS and *ADD rather than overwriting themtb1-6/+6
This makes CFLAGS pick up -O2, which shaves a few seconds runtime off these very slow tests.
2020-12-17Remove echo headlines.bluhm11-35/+11
2020-12-01Extend the methods test to cover dtls methods as welltb1-1/+57
2020-12-01Enable ssl_methods unit test.tb1-1/+2
2020-12-01Add an ssl_methods() unit test that currently only covers thetb1-0/+192
behavior of SSL_is_server(). This would have caught the regression introduced in the method unification.
2020-11-19$OpenBSD$tb1-0/+1
2020-10-30botan2 uses C++11, so use ports-gcc on gcc-archstb1-1/+12
This makes this interop test pass on sparc64.
2020-10-29Do not fail with obscure error messages on 'make'tb3-6/+12
Fix some tests that fail with obscure error messages on 'make' if the required package (either version of OpenSSL or Botan 2) isn't installed. This can be avoided by doing 'make regress' instead. I'll try to adjust my finger memory for the many tests outside the LibreSSL tree that have the same "problem". The fix here is unintrusive and I've been wasting enough time with this to want to change it. ok bluhm
2020-10-16make this test compile and pass on sparc64tb1-2/+2
Two functions missed (void) in their declaration which made gcc whine "warning: function declaration isn't a prototype".
2020-10-16Add an explicit cast to make this test compile and pass with gcc.tb1-2/+2
gcc emits a signed vs unsigned comparison warning which breaks the build due to -Werror.
2020-10-15Test DTLS timeouts and retransmissions by dropping specific messages.jsing1-5/+299
Provide a BIO that can drop specific messages in order to trigger and test DTLS timeouts and retransmissions. Note that the SSL buffering BIO (bbio) has to be removed to ensure that handshake messages are sent individually. This would have detected the recent DTLS breakage with retransmissions for a flight that includes a CCS.
2020-10-15Improve poll and event handling.jsing1-8/+27
In particular, ensure we clear events when the client or server side has completed and fix timeouts to ensure we use a non-zero timeout if present.
2020-10-14Hook up dtls regress.jsing1-1/+2
2020-10-14Add regress tests for DTLS.jsing2-0/+411
Test the operation of a DTLS client and server, with and without cookies, using the default MTU and a specifically lowered MTU. Further regress tests will be built on this to exercise other parts of the DTLS code base (such as retransmission, fragmentation and reassembly).
2020-10-11No longer need to cast away const in srtp_find_profile_by_name()tb1-2/+2
2020-10-11Update regress for method changes.jsing1-4/+4
2020-10-11Unbreak regress following SRTP_PROTECTION_PROFILE const change.jsing1-2/+2
2020-10-07zap trailing whitespacetb1-21/+21