summaryrefslogtreecommitdiffstats
path: root/test/handshake_helper.h
diff options
context:
space:
mode:
authorEmilia Kasper <emilia@openssl.org>2016-07-04 20:16:14 +0200
committerEmilia Kasper <emilia@openssl.org>2016-07-19 14:17:48 +0200
commitce2cdac2787da32bcde210c7d6acdcbe41b1cd40 (patch)
treeaa513a318f435fd51c82df0f83aa09219d55e1cc /test/handshake_helper.h
parent02f730b34706150f8f40715d647cce3be5baf2ab (diff)
SSL test framework: port NPN and ALPN tests
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test/handshake_helper.h')
-rw-r--r--test/handshake_helper.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/handshake_helper.h b/test/handshake_helper.h
index 4a51ad4a6e..56c0aac28a 100644
--- a/test/handshake_helper.h
+++ b/test/handshake_helper.h
@@ -32,10 +32,17 @@ typedef struct handshake_result {
ssl_session_ticket_t session_ticket;
/* Was this called on the second context? */
int session_ticket_do_not_call;
+ char *client_npn_negotiated;
+ char *server_npn_negotiated;
+ char *client_alpn_negotiated;
+ char *server_alpn_negotiated;
} HANDSHAKE_RESULT;
+HANDSHAKE_RESULT *HANDSHAKE_RESULT_new(void);
+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);
+HANDSHAKE_RESULT *do_handshake(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
+ SSL_CTX *client_ctx, const SSL_TEST_CTX *test_ctx);
#endif /* HEADER_HANDSHAKE_HELPER_H */