/freebsd/crypto/openssl/test/ |
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() 306 sess = SSL_get1_session(cssl); in test_tls13ccs() 309 SSL_shutdown(cssl); in test_tls13ccs() 312 SSL_free(cssl); 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() 345 if (!TEST_true(SSL_set_session(cssl, sess)) in test_tls13ccs() 346 || !TEST_true(SSL_write_early_data(cssl, msg, strlen(msg), in test_tls13ccs() [all …]
|
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() 50 wbio = SSL_get_wbio(cssl); in test_fatalerr() 57 if (!TEST_false(create_ssl_connection(sssl, cssl, SSL_ERROR_NONE))) in test_fatalerr() 78 SSL_free(cssl); in test_fatalerr()
|
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() 503 if (!TEST_int_le(SSL_connect(cssl), 0)) in test_swap_records() 511 if (!TEST_int_le(SSL_connect(cssl), 0)) in test_swap_records() 516 bio = SSL_get_wbio(cssl); in test_swap_records() 552 if (!TEST_int_gt(SSL_connect(cssl), 0)) in test_swap_records() 557 if (!TEST_int_eq(SSL_pending(cssl), 0) in test_swap_records() 558 || !TEST_false(SSL_has_pending(cssl))) in test_swap_records() 563 if (!TEST_int_eq(SSL_pending(cssl), (int)sizeof(msg)) in test_swap_records() 564 || !TEST_true(SSL_has_pending(cssl))) in test_swap_records() [all …]
|
H A D | sslapitest.c | 2422 static int post_handshake_verify(SSL *sssl, SSL *cssl) in post_handshake_verify() argument 2430 || !TEST_int_le(SSL_read(cssl, 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 | 20 SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio); 24 SSL **cssl, int sfd, int cfd);
|
H A D | ssltestlib.c | 975 SSL **cssl, int sfd, int cfd) in create_ssl_objects2() 984 if (*cssl != NULL) in create_ssl_objects2() 985 clientssl = *cssl; in create_ssl_objects2() 996 *cssl = clientssl; in create_ssl_objects2() 1012 SSL **cssl, BIO *s_to_c_fbio, BIO *c_to_s_fbio) in create_ssl_objects() 1021 if (*cssl != NULL) in create_ssl_objects() 1022 clientssl = *cssl; in create_ssl_objects() 1053 *cssl = clientssl; in create_ssl_objects() 966 create_ssl_objects2(SSL_CTX * serverctx,SSL_CTX * clientctx,SSL ** sssl,SSL ** cssl,int sfd,int cfd) create_ssl_objects2() argument 1003 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
|