/third_party/openssl/test/ |
D | sslapitest.c | 319 SSL *clientssl = NULL, *serverssl = NULL; in test_keylog() local 357 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog() 359 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog() 379 if (!TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog() 380 SSL_get_session(serverssl), &expected))) in test_keylog() 386 SSL_free(serverssl); in test_keylog() 399 SSL *clientssl = NULL, *serverssl = NULL; in test_keylog_no_master_key() local 435 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, in test_keylog_no_master_key() 437 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_keylog_no_master_key() 454 || !TEST_true(test_keylog_output(server_log_buffer, serverssl, in test_keylog_no_master_key() [all …]
|
D | dtlstest.c | 152 SSL *serverssl = NULL, *clientssl = NULL; in test_dtls_drop_records() local 167 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records() 169 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_dtls_drop_records() 175 SSL_shutdown(serverssl); in test_dtls_drop_records() 176 SSL_free(serverssl); in test_dtls_drop_records() 178 serverssl = clientssl = NULL; in test_dtls_drop_records() 195 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records() 205 DTLS_set_timer_cb(serverssl, timer_cb); in test_dtls_drop_records() 209 mempackbio = SSL_get_wbio(serverssl); in test_dtls_drop_records() 226 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in test_dtls_drop_records() [all …]
|
D | sslbuffertest.c | 49 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()
|
D | recordlentest.c | 83 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()
|
D | gosttest.c | 38 SSL *clientssl = NULL, *serverssl = NULL; in test_tls13() local 54 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_tls13() 59 if (!TEST_false(create_ssl_connection(serverssl, clientssl, in test_tls13() 63 if (!TEST_true(create_ssl_connection(serverssl, clientssl, in test_tls13() 73 SSL_free(serverssl); in test_tls13()
|
D | servername_test.c | 184 SSL *clientssl = NULL, *serverssl = NULL; in server_setup_sni() local 191 || !TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in server_setup_sni() 196 SSL_set_tlsext_host_name(serverssl, host); in server_setup_sni() 198 if (!TEST_true(create_ssl_connection(serverssl, clientssl, SSL_ERROR_NONE))) in server_setup_sni() 201 if (!TEST_ptr_null(SSL_get_servername(serverssl, in server_setup_sni() 209 SSL_free(serverssl); in server_setup_sni()
|
D | asynciotest.c | 292 SSL *serverssl = NULL, *clientssl = NULL; in test_asyncio() local 324 if (!TEST_true(create_ssl_objects(serverctx, clientctx, &serverssl, in test_asyncio() 326 || !TEST_true(create_ssl_connection(serverssl, clientssl, in test_asyncio() 365 ret = SSL_read(serverssl, buf + len, sizeof(buf) - len); in test_asyncio() 369 int ssl_error = SSL_get_error(serverssl, ret); in test_asyncio() 382 SSL_free(serverssl); in test_asyncio() 383 clientssl = serverssl = NULL; in test_asyncio() 389 SSL_free(serverssl); in test_asyncio()
|
D | ssltestlib.c | 772 SSL *serverssl = NULL, *clientssl = NULL; in create_ssl_objects() local 776 serverssl = *sssl; in create_ssl_objects() 777 else if (!TEST_ptr(serverssl = SSL_new(serverctx))) in create_ssl_objects() 806 SSL_set_bio(serverssl, c_to_s_bio, s_to_c_bio); in create_ssl_objects() 810 *sssl = serverssl; in create_ssl_objects() 815 SSL_free(serverssl); in create_ssl_objects() 832 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want, in create_bare_ssl_connection() argument 837 int isdtls = SSL_is_dtls(serverssl); in create_bare_ssl_connection() 856 rets = SSL_accept(serverssl); in create_bare_ssl_connection() 858 err = SSL_get_error(serverssl, rets); in create_bare_ssl_connection() [all …]
|
D | ssltestlib.h | 21 int create_bare_ssl_connection(SSL *serverssl, SSL *clientssl, int want, 23 int create_ssl_connection(SSL *serverssl, SSL *clientssl, int want); 24 void shutdown_ssl_connection(SSL *serverssl, SSL *clientssl);
|