/freebsd/crypto/openssl/test/ |
H A D | fatalerrtest.c | 22 SSL *sssl = NULL, *cssl = NULL; in test_fatalerr() local 46 || !TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, in test_fatalerr() 57 if (!TEST_false(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_fatalerr() 67 if (!TEST_int_le(len = SSL_read(sssl, buf, sizeof(buf) - 1), 0)) { in test_fatalerr() 72 if (!TEST_int_le(SSL_write(sssl, msg, strlen(msg)), 0)) in test_fatalerr() 77 SSL_free(sssl); in test_fatalerr()
|
H A D | tls13ccstest.c | 246 SSL *sssl = NULL, *cssl = NULL; in test_tls13ccs() local 303 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, NULL, NULL)) in test_tls13ccs() 304 || !TEST_true(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_tls13ccs() 310 SSL_shutdown(sssl); in test_tls13ccs() 311 SSL_free(sssl); in test_tls13ccs() 313 sssl = cssl = NULL; in test_tls13ccs() 339 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, s_to_c_fbio, in test_tls13ccs() 349 && !TEST_int_eq(SSL_read_early_data(sssl, buf, sizeof(buf), in test_tls13ccs() 360 if (!TEST_int_eq(SSL_read_early_data(sssl, buf, sizeof(buf), in test_tls13ccs() 367 if (!TEST_true(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_tls13ccs() [all …]
|
H A D | dtlstest.c | 475 SSL *sssl = NULL, *cssl = NULL; in test_swap_records() local 498 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, in test_swap_records() 507 if (!TEST_int_le(SSL_accept(sssl), 0)) in test_swap_records() 523 if (!TEST_int_gt(SSL_accept(sssl), 0)) in test_swap_records() 527 if (!TEST_int_eq(SSL_write(sssl, msg, sizeof(msg)), (int)sizeof(msg))) in test_swap_records() 530 bio = SSL_get_wbio(sssl); in test_swap_records() 543 bio = SSL_get_wbio(sssl); in test_swap_records() 577 SSL_free(sssl); in test_swap_records()
|
H A D | sslapitest.c | 2422 static int post_handshake_verify(SSL *sssl, SSL *cssl) in post_handshake_verify() argument 2424 SSL_set_verify(sssl, SSL_VERIFY_PEER, NULL); in post_handshake_verify() 2425 if (!TEST_true(SSL_verify_client_post_handshake(sssl))) in post_handshake_verify() 2429 if (!TEST_int_eq(SSL_do_handshake(sssl), 1) in post_handshake_verify() 2431 || !TEST_int_le(SSL_read(sssl, NULL, 0), 0) in post_handshake_verify() 2432 || !TEST_true(create_ssl_connection(sssl, cssl, in post_handshake_verify()
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | ssltestlib.h | 19 int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, 23 int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl,
|
H A D | ssltestlib.c | 974 int create_ssl_objects2(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, in create_ssl_objects2() 980 if (*sssl != NULL) in create_ssl_objects2() 981 serverssl = *sssl; in create_ssl_objects2() 995 *sssl = serverssl; in create_ssl_objects2() 1011 int create_ssl_objects(SSL_CTX *serverctx, SSL_CTX *clientctx, SSL **sssl, in create_ssl_objects() 1017 if (*sssl != NULL) in create_ssl_objects() 1018 serverssl = *sssl; in create_ssl_objects() 1052 *sssl = serverssl; in create_ssl_objects() 965 create_ssl_objects2(SSL_CTX * serverctx,SSL_CTX * clientctx,SSL ** sssl,SSL ** cssl,int sfd,int cfd) create_ssl_objects2() argument 1002 create_ssl_objects(SSL_CTX * serverctx,SSL_CTX * clientctx,SSL ** sssl,SSL ** cssl,BIO * s_to_c_fbio,BIO * c_to_s_fbio) create_ssl_objects() argument
|