Home
last modified time | relevance | path

Searched refs:serverssl (Results 1 – 8 of 8) sorted by relevance

/freebsd/crypto/openssl/test/
H A Dsslapitest.c351 SSL *clientssl = NULL, *serverssl = NULL; in test_keylog() local
390 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog()
392 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog()
412 if (!TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog()
413 SSL_get_session(serverssl), &expected))) in test_keylog()
419 SSL_free(serverssl); in test_keylog()
432 SSL *clientssl = NULL, *serverssl = NULL; in test_keylog_no_master_key() local
469 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog_no_master_key()
471 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog_no_master_key()
488 || !TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog_no_master_key()
[all …]
H A Ddtlstest.c194 SSL *serverssl = NULL, *clientssl = NULL; in test_dtls_drop_records() local
225 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
227 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_dtls_drop_records()
233 SSL_shutdown(serverssl); in test_dtls_drop_records()
234 SSL_free(serverssl); in test_dtls_drop_records()
236 serverssl = clientssl = NULL; in test_dtls_drop_records()
255 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
265 DTLS_set_timer_cb(serverssl, timer_cb); in test_dtls_drop_records()
269 mempackbio = SSL_get_wbio(serverssl); in test_dtls_drop_records()
286 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_dtls_drop_records()
[all …]
H A Dsslbuffertest.c58 SSL *serverssl = NULL, *clientssl = NULL; in test_func()
64 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, &clientssl, in test_func()
70 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) { in test_func()
124 if (test >= 5 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
127 if (test >= 6 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
129 if (test >= 7 && !TEST_true(SSL_alloc_buffers(serverssl))) in test_func()
131 if (test >= 8 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
134 ret = SSL_read(serverssl, buf + len, sizeof(buf) - len); in test_func()
138 int ssl_error = SSL_get_error(serverssl, ret); in test_func()
157 SSL_free(serverssl); in setup_tests()
49 SSL *serverssl = NULL, *clientssl = NULL; test_func() local
[all...]
H A Drecordlentest.c83 SSL *clientssl = NULL, *serverssl = NULL; in test_record_overflow() local
122 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_record_overflow()
126 serverbio = SSL_get_rbio(serverssl); in test_record_overflow()
139 if (!TEST_int_le(SSL_accept(serverssl), 0)) in test_record_overflow()
149 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_record_overflow()
167 if (!TEST_false(SSL_read_ex(serverssl, &buf, sizeof(buf), &written))) in test_record_overflow()
177 SSL_free(serverssl); in test_record_overflow()
H A Dasynciotest.c292 SSL *serverssl = NULL, *clientssl = NULL; in test_asyncio() local
325 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, in test_asyncio()
327 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_asyncio()
366 ret = SSL_read(serverssl, buf + len, sizeof(buf) - len); in test_asyncio()
370 int ssl_error = SSL_get_error(serverssl, ret); in test_asyncio()
383 SSL_free(serverssl); in test_asyncio()
384 clientssl = serverssl = NULL; in test_asyncio()
390 SSL_free(serverssl); in test_asyncio()
H A Dservername_test.c205 SSL *clientssl = NULL, *serverssl = NULL; in server_setup_sni() local
212 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in server_setup_sni()
217 SSL_set_tlsext_host_name(serverssl, host); in server_setup_sni()
219 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in server_setup_sni()
222 if (!TEST_ptr_null(SSL_get_servername(serverssl, in server_setup_sni()
230 SSL_free(serverssl); in server_setup_sni()
/freebsd/crypto/openssl/test/helpers/
H A Dssltestlib.c977 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects2()
981 serverssl = *sssl; in create_ssl_objects2()
982 else if (!TEST_ptr(serverssl = SSL_new(serverctx))) in create_ssl_objects2()
994 SSL_set_bio(serverssl, s_to_c_bio, s_to_c_bio); in create_ssl_objects2()
995 *sssl = serverssl; in create_ssl_objects2()
1000 SSL_free(serverssl);
1014 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects()
1018 serverssl = *sssl; in create_ssl_objects()
1019 else if (!TEST_ptr(serverssl = SSL_new(serverctx))) in create_ssl_objects()
1048 SSL_set_bio(serverssl, c_to_s_bi in create_ssl_objects()
968 SSL *serverssl = NULL, *clientssl = NULL; create_ssl_objects2() local
1005 SSL *serverssl = NULL, *clientssl = NULL; create_ssl_objects() local
1068 create_bare_ssl_connection(SSL * serverssl,SSL * clientssl,int want,int read) create_bare_ssl_connection() argument
1151 create_ssl_connection(SSL * serverssl,SSL * clientssl,int want) create_ssl_connection() argument
1178 shutdown_ssl_connection(SSL * serverssl,SSL * clientssl) shutdown_ssl_connection() argument
[all...]
H A Dssltestlib.h21 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want,
26 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want);
27 void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl);