Home
last modified time | relevance | path

Searched refs:clientssl (Results 1 – 16 of 16) sorted by relevance

/freebsd/crypto/openssl/test/
H A Drpktest.c102 SSL *clientssl = NULL, *serverssl = NULL; in test_rpk() local
258 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_rpk()
264 if (!TEST_int_gt(SSL_dane_enable(clientssl, "example.com"), 0)) in test_rpk()
290 if (!TEST_true(SSL_add_expected_rpk(clientssl, pkey))) in test_rpk()
294 if (!TEST_true(SSL_add_expected_rpk(clientssl, pkey))) in test_rpk()
298 if (!TEST_true(SSL_add_expected_rpk(clientssl, pkey))) in test_rpk()
303 if (!TEST_int_eq(SSL_use_PrivateKey_file(clientssl, privkey_file, SSL_FILETYPE_PEM), 1)) in test_rpk()
305 if (!TEST_int_eq(SSL_use_certificate_file(clientssl, cert_file, SSL_FILETYPE_PEM), 1)) in test_rpk()
307 if (!TEST_int_eq(SSL_check_private_key(clientssl), 1)) in test_rpk()
313 if (!TEST_true(SSL_add_expected_rpk(clientssl, pkey))) in test_rpk()
[all …]
H A Dsslapitest.c361 SSL *clientssl = NULL, *serverssl = NULL; in test_keylog() local
401 &clientssl, NULL, NULL)) in test_keylog()
402 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog()
417 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog()
418 SSL_get_session(clientssl), &expected))) in test_keylog()
430 SSL_free(clientssl); in test_keylog()
442 SSL *clientssl = NULL, *serverssl = NULL; in test_keylog_no_master_key() local
480 &clientssl, NULL, NULL)) in test_keylog_no_master_key()
481 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog_no_master_key()
496 if (!TEST_true(test_keylog_output(client_log_buffer, clientssl, in test_keylog_no_master_key()
[all …]
H A Dsslbuffertest.c81 SSL *serverssl = NULL, *clientssl = NULL; in test_func() local
87 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, &clientssl, in test_func()
93 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) { in test_func()
113 …if (test >= 1 && (!TEST_true(SSL_free_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 0)… in test_func()
115 …if (test >= 2 && (!TEST_true(SSL_alloc_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 1… in test_func()
118 …if (test >= 3 && (!TEST_true(SSL_alloc_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 1… in test_func()
120 …if (test >= 4 && (!TEST_true(SSL_free_buffers(clientssl)) || !TEST_true(checkbuffers(clientssl, 0)… in test_func()
123 ret = SSL_write(clientssl, testdata + len, in test_func()
128 int ssl_error = SSL_get_error(clientssl, ret); in test_func()
175 SSL_free(clientssl); in test_func()
[all …]
H A Ddtlstest.c189 SSL *serverssl = NULL, *clientssl = NULL; in test_dtls_drop_records() local
220 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
222 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_dtls_drop_records()
224 || !TEST_ptr(sess = SSL_get1_session(clientssl))) in test_dtls_drop_records()
227 SSL_shutdown(clientssl); in test_dtls_drop_records()
230 SSL_free(clientssl); in test_dtls_drop_records()
231 serverssl = clientssl = NULL; in test_dtls_drop_records()
250 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
255 if (!TEST_true(SSL_set_session(clientssl, sess))) in test_dtls_drop_records()
259 DTLS_set_timer_cb(clientssl, timer_cb); in test_dtls_drop_records()
[all …]
H A Dtls13groupselection_test.c368 SSL *clientssl = NULL, *serverssl = NULL; in test_invalidsyntax() local
387 &serverssl, &clientssl, in test_invalidsyntax()
392 TEST_false_or_end(SSL_set1_groups_list(clientssl, current_test_vector->client_groups)); in test_invalidsyntax()
398 SSL_free(clientssl); in test_invalidsyntax()
412 SSL *clientssl = NULL, *serverssl = NULL; in test_groupnegotiation() local
439 &serverssl, &clientssl, in test_groupnegotiation()
446 TEST_true_or_end(SSL_set1_groups_list(clientssl, current_test_vector->client_groups)); in test_groupnegotiation()
451 TEST_true_or_end(SSL_set_min_proto_version(clientssl, TLS1_3_VERSION)); in test_groupnegotiation()
460 SSL_set_msg_callback_arg(clientssl, &server_response); /* add it to the callback */ in test_groupnegotiation()
461 SSL_set_msg_callback(clientssl, server_response_check_cb); /* and activate callback */ in test_groupnegotiation()
[all …]
H A Dcert_comp_test.c126 SSL *clientssl = NULL, *serverssl = NULL; in test_ssl_cert_comp() local
193 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_ssl_cert_comp()
197 if (!TEST_true(SSL_set_app_data(clientssl, &client_seen))) in test_ssl_cert_comp()
201 SSL_set_info_callback(clientssl, cert_comp_info_cb); in test_ssl_cert_comp()
209 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_ssl_cert_comp()
219 if (!TEST_false(*(int *)SSL_get_app_data(clientssl))) in test_ssl_cert_comp()
227 if (!TEST_true(*(int *)SSL_get_app_data(clientssl))) in test_ssl_cert_comp()
241 SSL_free(clientssl); in test_ssl_cert_comp()
H A Dasynciotest.c292 SSL *serverssl = NULL, *clientssl = NULL; in test_asyncio() local
325 &clientssl, s_to_c_fbio, c_to_s_fbio)) in test_asyncio()
326 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_asyncio()
343 ret = SSL_write(clientssl, testdata + len, in test_asyncio()
348 int ssl_error = SSL_get_error(clientssl, ret); in test_asyncio()
378 SSL_free(clientssl); in test_asyncio()
380 clientssl = serverssl = NULL; in test_asyncio()
385 SSL_free(clientssl); in test_asyncio()
H A Dssl_handshake_rtt_test.c49 SSL *clientssl = NULL, *serverssl = NULL; in test_handshake_rtt() local
70 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_handshake_rtt()
74 s = SSL_CONNECTION_FROM_SSL(tst % 2 == 0 ? clientssl : serverssl); in test_handshake_rtt()
127 SSL_free(clientssl); in test_handshake_rtt()
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()
149 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_record_overflow()
178 SSL_free(clientssl); in test_record_overflow()
H A Dservername_test.c203 SSL *clientssl = NULL, *serverssl = NULL; in server_setup_sni() local
210 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in server_setup_sni()
217 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in server_setup_sni()
229 SSL_free(clientssl); in server_setup_sni()
H A Dquicapitest.c2784 SSL *clientssl = NULL, *serverssl = NULL, *qlistener = NULL; in test_ssl_accept_connection() local
2792 if (!create_quic_ssl_objects(sctx, cctx, &qlistener, &clientssl)) in test_ssl_accept_connection()
2803 ret = SSL_connect(clientssl); in test_ssl_accept_connection()
2805 || !TEST_int_eq(SSL_get_error(clientssl, ret), SSL_ERROR_WANT_READ)) in test_ssl_accept_connection()
2816 if (!TEST_true(create_bare_ssl_connection(serverssl, clientssl, in test_ssl_accept_connection()
2824 SSL_free(clientssl); in test_ssl_accept_connection()
2845 SSL *clientssl = NULL, *serverssl = NULL, *qlistener = NULL; in test_ssl_set_verify() local
2853 if (!create_quic_ssl_objects(sctx, cctx, &qlistener, &clientssl)) in test_ssl_set_verify()
2856 quic_verify_ssl = clientssl; in test_ssl_set_verify()
2857 SSL_set_verify(clientssl, SSL_VERIFY_PEER, quic_verify_cb); in test_ssl_set_verify()
[all …]
/freebsd/crypto/openssl/test/helpers/
H A Dssltestlib.c1126 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects2() local
1135 clientssl = *cssl; in create_ssl_objects2()
1136 else if (!TEST_ptr(clientssl = SSL_new(clientctx))) in create_ssl_objects2()
1143 if (!TEST_false(SSL_get_rpoll_descriptor(clientssl, &rdesc) in create_ssl_objects2()
1144 || !TEST_false(SSL_get_wpoll_descriptor(clientssl, &wdesc)))) in create_ssl_objects2()
1147 SSL_set_bio(clientssl, c_to_s_bio, c_to_s_bio); in create_ssl_objects2()
1150 if (!TEST_true(SSL_get_rpoll_descriptor(clientssl, &rdesc)) in create_ssl_objects2()
1151 || !TEST_true(SSL_get_wpoll_descriptor(clientssl, &wdesc)) in create_ssl_objects2()
1167 *cssl = clientssl; in create_ssl_objects2()
1172 SSL_free(clientssl); in create_ssl_objects2()
[all …]
H A Dssltestlib.h29 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want,
31 int create_bare_ssl_connection_ex(SSL *serverssl, SSL *clientssl, int want,
37 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want);
38 int create_ssl_connection_ex(SSL *serverssl, SSL *clientssl, int want,
40 void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl);
H A Dquictestlib.c516 int qtest_create_quic_connection_ex(QUIC_TSERVER *qtserv, SSL *clientssl, in qtest_create_quic_connection_ex() argument
529 if (clientssl != NULL) in qtest_create_quic_connection_ex()
535 if (clientssl != NULL) { in qtest_create_quic_connection_ex()
544 } else if (clientssl == NULL) { in qtest_create_quic_connection_ex()
546 } else if (SSL_get_blocking_mode(clientssl) > 0) { in qtest_create_quic_connection_ex()
574 retc = SSL_connect(clientssl); in qtest_create_quic_connection_ex()
576 err = SSL_get_error(clientssl, retc); in qtest_create_quic_connection_ex()
598 if (clientssl != NULL) in qtest_create_quic_connection_ex()
599 SSL_handle_events(clientssl); in qtest_create_quic_connection_ex()
622 if (clientssl != NULL && ++abortctr == MAXLOOPS) { in qtest_create_quic_connection_ex()
[all …]
H A Dquictestlib.h78 int qtest_create_quic_connection(QUIC_TSERVER *qtserv, SSL *clientssl);
90 int qtest_create_quic_connection_ex(QUIC_TSERVER *qtserv, SSL *clientssl,
96 int qtest_shutdown(QUIC_TSERVER *qtserv, SSL *clientssl);
/freebsd/crypto/openssl/doc/designs/quic-design/
H A Dquic-fault-injector.md229 int qtest_create_quic_connection(QUIC_TSERVER *qtserv, SSL *clientssl);
233 * clientssl indicates SSL_ERROR_WANT_XXX as specified by |wanterr|
235 int qtest_create_quic_connection_ex(QUIC_TSERVER *qtserv, SSL *clientssl,