summaryrefslogtreecommitdiff
path: root/test/helpers
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-05-16 18:08:54 +0200
committerPauli <pauli@openssl.org>2022-06-03 12:07:18 +1000
commit08e4901298df12931b45c7115254a0e159727683 (patch)
treec76090a6a3c1aef6a4b34e57cada580e7782dfa0 /test/helpers
parente44795bd5db081260ef05c7be6fd17c080ed9437 (diff)
downloadopenssl-new-08e4901298df12931b45c7115254a0e159727683.tar.gz
Add a test_ssl_new testcase
This requires some code being pulled into the empty protocol implementation so the state machinery works. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18307)
Diffstat (limited to 'test/helpers')
-rw-r--r--test/helpers/ssl_test_ctx.c1
-rw-r--r--test/helpers/ssl_test_ctx.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/test/helpers/ssl_test_ctx.c b/test/helpers/ssl_test_ctx.c
index a0e2e794c6..2ce70405d7 100644
--- a/test/helpers/ssl_test_ctx.c
+++ b/test/helpers/ssl_test_ctx.c
@@ -328,6 +328,7 @@ const char *ssl_session_id_name(ssl_session_id_t server)
static const test_enum ssl_test_methods[] = {
{"TLS", SSL_TEST_METHOD_TLS},
{"DTLS", SSL_TEST_METHOD_DTLS},
+ {"QUIC", SSL_TEST_METHOD_QUIC}
};
__owur static int parse_test_method(SSL_TEST_CTX *test_ctx, const char *value)
diff --git a/test/helpers/ssl_test_ctx.h b/test/helpers/ssl_test_ctx.h
index 7b35dcb998..c7820d9764 100644
--- a/test/helpers/ssl_test_ctx.h
+++ b/test/helpers/ssl_test_ctx.h
@@ -65,7 +65,8 @@ typedef enum {
typedef enum {
SSL_TEST_METHOD_TLS = 0, /* Default */
- SSL_TEST_METHOD_DTLS
+ SSL_TEST_METHOD_DTLS,
+ SSL_TEST_METHOD_QUIC
} ssl_test_method_t;
typedef enum {