+ /*
+ * The expected SNI context to use.
+ * We test server-side that the server switched to the expected context.
+ * Set by the callback upon success, so if the callback wasn't called or
+ * terminated with an alert, the servername will match with
+ * SSL_TEST_SERVERNAME_NONE.
+ * Note: in the event that the servername was accepted, the client should
+ * also receive an empty SNI extension back but we have no way of probing
+ * client-side via the API that this was the case.
+ */
+ ssl_servername_t expected_servername;
+ ssl_servername_callback_t servername_callback;
+ ssl_session_ticket_t session_ticket_expected;
+ /* Whether the server/client CTX should use DTLS or TLS. */
+ ssl_test_method_t method;
+
+ /*
+ * NPN and ALPN protocols supported by the client, server, and second
+ * (SNI) server. A comma-separated list.
+ */
+ char *client_npn_protocols;
+ char *server_npn_protocols;
+ char *server2_npn_protocols;
+ char *expected_npn_protocol;
+ char *client_alpn_protocols;
+ char *server_alpn_protocols;
+ char *server2_alpn_protocols;
+ char *expected_alpn_protocol;
+
+ /* Whether to test a resumed/renegotiated handshake. */
+ ssl_handshake_mode_t handshake_mode;
+ /* Whether the second handshake is resumed or a full handshake (boolean). */
+ int resumption_expected;