diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-06-03 17:49:04 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-06-13 16:13:13 +0200 |
commit | 74726750ef041ba5fdf0516cbd060a202f7092c1 (patch) | |
tree | b136ba0cdd4e05abf40716a372fcdc03faaacebc /test/ssl_test_ctx.h | |
parent | 81fc33c951b645f31727dc811e02200bde4a0982 (diff) | |
download | openssl-74726750ef041ba5fdf0516cbd060a202f7092c1.tar.gz |
Port DTLS version negotiation tests
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/ssl_test_ctx.h')
-rw-r--r-- | test/ssl_test_ctx.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ssl_test_ctx.h b/test/ssl_test_ctx.h index e1541c0c98..b75cf082dd 100644 --- a/test/ssl_test_ctx.h +++ b/test/ssl_test_ctx.h @@ -39,6 +39,11 @@ typedef enum { SSL_TEST_SESSION_TICKET_BROKEN, /* Special test */ } ssl_session_ticket_t; +typedef enum { + SSL_TEST_METHOD_TLS = 0, /* Default */ + SSL_TEST_METHOD_DTLS, +} ssl_test_method_t; + typedef struct ssl_test_ctx { /* Test expectations. */ /* Defaults to SUCCESS. */ @@ -57,6 +62,8 @@ typedef struct ssl_test_ctx { /* One of a number of predefined server names use by the client */ ssl_servername_t servername; ssl_session_ticket_t session_ticket_expected; + /* Whether the server/client CTX should use DTLS or TLS. */ + ssl_test_method_t method; } SSL_TEST_CTX; const char *ssl_test_result_name(ssl_test_result_t result); @@ -65,6 +72,7 @@ const char *ssl_protocol_name(int protocol); const char *ssl_verify_callback_name(ssl_verify_callback_t verify_callback); const char *ssl_servername_name(ssl_servername_t server); const char *ssl_session_ticket_name(ssl_session_ticket_t server); +const char *ssl_test_method_name(ssl_test_method_t method); /* * Load the test case context from |conf|. |