Home
last modified time | relevance | path

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

/freebsd/crypto/openssl/test/
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 Ddtlstest.c233 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()
300 SSL_free(serverssl); in test_dtls_drop_records()
341 SSL_free(serverssl); in test_cookie()
384 SSL_free(serverssl); in test_dtls_duplicate_records()
400 SSL *serverssl = NULL; in test_just_finished() local
428 serverssl = SSL_new(sctx); in test_just_finished()
436 SSL_set0_rbio(serverssl, rbio); in test_just_finished()
437 SSL_set0_wbio(serverssl, wbio); in test_just_finished()
[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 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()
H A Dsslapitest.c419 SSL_free(serverssl); in test_keylog()
497 SSL_free(serverssl); in test_keylog_no_master_key()
536 SSL_free(serverssl); in test_keylog_no_master_key()
786 SSL_free(serverssl); in test_client_hello_cb()
831 SSL_free(serverssl); in test_no_ems()
941 SSL_free(serverssl); in test_ccs_change_cipher()
1279 if (serverssl) { in execute_test_ktls()
1410 if (serverssl) { in execute_test_ktls_sendfile()
1929 serverssl = NULL; in test_tlsext_status_type()
1946 serverssl = NULL; in test_tlsext_status_type()
[all …]
H A Dsslbuffertest.c49 SSL *serverssl = NULL, *clientssl = NULL; in test_func() local
55 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, &clientssl, in test_func()
61 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) { in test_func()
115 if (test >= 5 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
118 if (test >= 6 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
120 if (test >= 7 && !TEST_true(SSL_alloc_buffers(serverssl))) in test_func()
122 if (test >= 8 && !TEST_true(SSL_free_buffers(serverssl))) in test_func()
125 ret = SSL_read(serverssl, buf + len, sizeof(buf) - len); in test_func()
129 int ssl_error = SSL_get_error(serverssl, ret); in test_func()
148 SSL_free(serverssl); in test_func()
/freebsd/crypto/openssl/test/helpers/
H A Dssltestlib.c968 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects2() local
972 serverssl = *sssl; in create_ssl_objects2()
986 *sssl = serverssl; in create_ssl_objects2()
991 SSL_free(serverssl); in create_ssl_objects2()
1009 serverssl = *sssl; in create_ssl_objects()
1043 *sssl = serverssl; in create_ssl_objects()
1048 SSL_free(serverssl); in create_ssl_objects()
1073 int isdtls = SSL_is_dtls(serverssl); in create_bare_ssl_connection()
1094 rets = SSL_accept(serverssl); in create_bare_ssl_connection()
1181 SSL_shutdown(serverssl); in shutdown_ssl_connection()
[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);