diff options
author | Emilia Kasper <emilia@openssl.org> | 2016-07-05 19:06:23 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2016-07-20 13:55:53 +0200 |
commit | 590ed3d7ea555b877859f6b491020112588fe1be (patch) | |
tree | 0461027d23e45e0e29fdaed81e92fbe4b324c065 /test/handshake_helper.h | |
parent | 23dd0c9f8dc6f7edf4b872d13e5644dfbbee585b (diff) |
SSL test framework: port resumption tests
Systematically test every server-side version downgrade or upgrade.
Client version upgrade or downgrade could be tested analogously but will
be done in a later change.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'test/handshake_helper.h')
-rw-r--r-- | test/handshake_helper.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/handshake_helper.h b/test/handshake_helper.h index 56c0aac28a..5027bef025 100644 --- a/test/handshake_helper.h +++ b/test/handshake_helper.h @@ -36,6 +36,9 @@ typedef struct handshake_result { char *server_npn_negotiated; char *client_alpn_negotiated; char *server_alpn_negotiated; + /* Was the handshake resumed? */ + int client_resumed; + int server_resumed; } HANDSHAKE_RESULT; HANDSHAKE_RESULT *HANDSHAKE_RESULT_new(void); @@ -43,6 +46,7 @@ void HANDSHAKE_RESULT_free(HANDSHAKE_RESULT *result); /* Do a handshake and report some information about the result. */ HANDSHAKE_RESULT *do_handshake(SSL_CTX *server_ctx, SSL_CTX *server2_ctx, - SSL_CTX *client_ctx, const SSL_TEST_CTX *test_ctx); + SSL_CTX *client_ctx, SSL_CTX *resume_server_ctx, + const SSL_TEST_CTX *test_ctx); #endif /* HEADER_HANDSHAKE_HELPER_H */ |