Hugo Landau
3887546dcf
QUIC CC TEST: Fix memory leak
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
451055d288
QUIC FC: TEST: Coverity
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
dbf247ad1d
QUIC TEST: Coverity - Ensure stream names are non-NULL
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
839f6ac32f
QUIC SSTREAM: Fix test which was not being executed fully
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
ec2b45f59b
QUIC TXP: Re-enable accidentially disabled tests
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
1623bf374d
QUIC TEST: STREAM, MAX_DATA and MAX_STREAM_DATA testing
...
Fixes https://github.com/openssl/project/issues/76
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
d63b8cbb1b
QUIC TEST: RESET_STREAM, STOP_SENDING
...
Fixes https://github.com/openssl/project/issues/80
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
d49a1634f4
QUIC TEST: Connection closure reason testing
...
Fixes https://github.com/openssl/project/issues/82
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:50 +01:00
Hugo Landau
d56b81ac9f
QUIC TEST: Test repeated HANDSHAKE_DONE, non-minimal encoding
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:45 +01:00
Hugo Landau
ed75eb32f3
QUIC TEST: Test NEW_CONN_ID frames
...
Fixes https://github.com/openssl/project/issues/86
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:45 +01:00
Hugo Landau
de56eebd6a
QUIC TEST: Test malformed crypto stream data, excess buffering
...
Fixes https://github.com/openssl/project/issues/85
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:45 +01:00
Hugo Landau
477944b67b
QUIC TEST: Ensure bogus BLOCKED frames are ignored
...
Fixes https://github.com/openssl/project/issues/81
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:44 +01:00
Hugo Landau
a1aff2c63f
QUIC TEST: Ensure PATH_RESPONSE is ignored
...
Fixes https://github.com/openssl/project/issues/77
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:44 +01:00
Hugo Landau
ed0d6ba458
QUIC TEST: Test ACK frame generation
...
Fixes https://github.com/openssl/project/issues/75
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:44 +01:00
Hugo Landau
17340e8785
QUIC TEST: Ensure PING causes ACK generation
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:44 +01:00
Hugo Landau
97684a1517
QUIC TEST: Fault Injection: PADDING
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21565 )
2023-08-10 18:19:44 +01:00
Olga Batyshkina
13342efbb9
Do not raise CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA error in CMS_ContentInfo_free
...
This happens if this function is called for signed content.
Added ossl_cms_env_enc_content_free() for cleaning enveloped content.
Fixed indentation in ossl_cms_env_enc_content_free
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21676 )
2023-08-10 12:09:38 +02:00
Tomas Mraz
40e28577dd
QUIC fault testing TODOs are changed into regular comments
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21539 )
2023-08-08 15:57:56 +02:00
Hugo Landau
741170bef3
QUIC CHANNEL: Improve error reporting
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
ab6c63456f
QUIC: Test crypto stream FC limits
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
27c2f62f96
QUIC CONFORMANCE: Test that CRYPTO frames with bad offsets/lengths are rejected
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
869ab3e707
QUIC QRX: Test for 1-RTT processing restriction
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
2a6f1f2f6e
QUIC QRX: Don't process 1-RTT packets until handshake is complete
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
457678d682
QUIC: Update no-TPARAM test for correct error code
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
371c29582a
QUIC CFQ: Unreliable transmission for PATH_RESPONSE
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Hugo Landau
7eb330ff7a
QUIC: Echo PATH_CHALLENGE frames as PATH_RESPONSE frames
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547 )
2023-08-08 14:33:42 +01:00
Tomas Mraz
4c50610bda
endecode_test.c: Add tests for decoding with 0 selection
...
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21519 )
2023-08-04 10:09:44 -04:00
Pauli
9a255aa2bd
test: skip FIPS config auto loading based tests if feature is disabled
...
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621 )
2023-08-04 11:57:27 +10:00
Pauli
a9dde74950
provider test: don't run configuration based tests if configuration isn't loaded
...
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621 )
2023-08-04 11:57:27 +10:00
Pauli
52ea255d9d
PBE test: load providers if auto config load is turned off
...
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621 )
2023-08-04 11:57:27 +10:00
Pauli
badf3c162d
testutil: allow a failure return from setup_tests that doesn't print help
...
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/21621 )
2023-08-04 11:57:27 +10:00
Hugo Landau
1e7cc86b75
QUIC: Fix incompatible merges causing CI breakage
...
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/21641 )
2023-08-03 13:31:53 +02:00
Dr. David von Oheimb
2c8d9f19e3
crypto/cmp: fix clash of OSSL_CMP_CERTREQID_NONE with error result of ossl_cmp_asn1_get_int()
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/21579 )
2023-08-03 09:29:41 +02:00
Matt Caswell
c9fb65b8c8
Add support into qtest_shutdown for blocking mode
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21591 )
2023-08-02 20:27:07 +01:00
Matt Caswell
cf355bd6e5
Extend the test_quic_write_read() test to include resumption
...
We add an additional loop around test_quic_write_read() to repeat the
test but using a session obtained from the initial iteration to confirm
that we can successfully resume the session.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21591 )
2023-08-02 20:27:07 +01:00
Matt Caswell
829eec9f86
Add the ability for tserver to use a pre-existing SSL_CTX
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21591 )
2023-08-02 20:27:07 +01:00
Matt Caswell
a1c87f64dd
Add a QUIC test for back pressure
...
Check that if one endpoint is sending data faster than its peer can handle
then we eventually see back pressure.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21368 )
2023-08-01 20:11:14 +02:00
Matt Caswell
df3d609030
Add a test for PEM_read_bio_Parameters()
...
We must not ask for a password when attempting to read parameters.
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21603 )
2023-08-01 20:08:36 +02:00
Hugo Landau
63fac76c24
QUIC: Automatically drain non-concluded streams, bugfixes
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21484 )
2023-07-31 14:03:42 +01:00
Hugo Landau
cd5e438065
QUIC MULTISTREAM TEST: Shutdown flush test
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21484 )
2023-07-31 14:03:42 +01:00
Hugo Landau
0786483adf
QUIC MULTISTREAM TEST: Better failure logging with failing script ID
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21484 )
2023-07-31 14:03:25 +01:00
Tomas Mraz
ad5d355726
dhtest.c: Add test of DH_check() with q = p + 1
...
This must fail with DH_CHECK_INVALID_Q_VALUE and
with DH_CHECK_Q_NOT_PRIME unset.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Todd Short <todd.short@me.com>
(Merged from https://github.com/openssl/openssl/pull/21550 )
2023-07-27 09:48:22 -04:00
Hugo Landau
833840be97
QUIC TXP: Add extra test
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21513 )
2023-07-25 11:05:26 +10:00
Bernd Edlinger
06a0d40322
Fix error handling in pipelining test
...
When an early error happens in the test_pipelining
function and idx == 5 the error handling would try
to call OPENSSL_free(msg), but msg is at that time
just a string constant in read-only memory, so a
crash would be the result. Fixed that by using
fragsize as an indication when to free msg.
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21512 )
2023-07-24 11:02:26 +02:00
Hugo Landau
9441624ee9
QUIC TXP: Update tests for refactor
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21458 )
2023-07-21 08:43:52 +02:00
Hugo Landau
d49c6ca7b9
QUIC TXP: Test packet size boundary cases
...
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21458 )
2023-07-21 08:43:52 +02:00
Matt Caswell
ede782b4c8
Add a test for CVE-2023-3446
...
Confirm that the only errors DH_check() finds with DH parameters with an
excessively long modulus is that the modulus is too large. We should not
be performing time consuming checks using that modulus.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21451 )
2023-07-19 11:20:04 +02:00
Hugo Landau
709ef40935
Fixup tests
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21349 )
2023-07-19 13:03:11 +10:00
Hugo Landau
76908b4582
QUIC ACKM: RFC 9000 s. 13.2.1: max_ack_delay taken as 0 in INITIAL/HANDSHAKE
...
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21349 )
2023-07-19 13:03:11 +10:00
Tomas Mraz
2b8126d8a8
Raise SSL_R_QUIC_PROTOCOL_ERROR on any QUIC protocol error
...
QUIC error code, frame type and reason is in error data
Fixes #21337
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21476 )
2023-07-18 20:37:52 +02:00