Lines Matching refs:sctx
73 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_unprocessed() local
83 &sctx, &cctx, cert, privkey))) in test_dtls_unprocessed()
91 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "AES128-SHA:@SECLEVEL=0")) in test_dtls_unprocessed()
102 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl1, &clientssl1, in test_dtls_unprocessed()
140 SSL_CTX_free(sctx); in test_dtls_unprocessed()
193 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_drop_records() local
205 &sctx, &cctx, cert, privkey))) in test_dtls_drop_records()
210 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_dtls_drop_records()
216 if (!TEST_true(SSL_CTX_set_dh_auto(sctx, 1))) in test_dtls_drop_records()
219 SSL_CTX_set_options(sctx, SSL_OP_COOKIE_EXCHANGE); in test_dtls_drop_records()
220 SSL_CTX_set_cookie_generate_cb(sctx, generate_cookie_cb); in test_dtls_drop_records()
221 SSL_CTX_set_cookie_verify_cb(sctx, verify_cookie_cb); in test_dtls_drop_records()
225 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
255 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_drop_records()
302 SSL_CTX_free(sctx); in test_dtls_drop_records()
311 SSL_CTX *sctx = NULL, *cctx = NULL; in test_cookie() local
318 &sctx, &cctx, cert, privkey))) in test_cookie()
321 SSL_CTX_set_options(sctx, SSL_OP_COOKIE_EXCHANGE); in test_cookie()
322 SSL_CTX_set_cookie_generate_cb(sctx, generate_cookie_cb); in test_cookie()
323 SSL_CTX_set_cookie_verify_cb(sctx, verify_cookie_cb); in test_cookie()
327 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_cookie()
333 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_cookie()
343 SSL_CTX_free(sctx); in test_cookie()
351 SSL_CTX *sctx = NULL, *cctx = NULL; in test_dtls_duplicate_records() local
358 &sctx, &cctx, cert, privkey))) in test_dtls_duplicate_records()
363 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_dtls_duplicate_records()
369 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_dtls_duplicate_records()
386 SSL_CTX_free(sctx); in test_dtls_duplicate_records()
399 SSL_CTX *sctx = NULL; in test_just_finished() local
425 &sctx, NULL, cert, privkey))) in test_just_finished()
430 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0"))) in test_just_finished()
434 serverssl = SSL_new(sctx); in test_just_finished()
466 SSL_CTX_free(sctx); in test_just_finished()
480 SSL_CTX *sctx = NULL, *cctx = NULL; in test_swap_records() local
490 &sctx, &cctx, cert, privkey))) in test_swap_records()
498 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "AES128-SHA:@SECLEVEL=0")) in test_swap_records()
504 if (!TEST_true(create_ssl_objects(sctx, cctx, &sssl, &cssl, in test_swap_records()
585 SSL_CTX_free(sctx); in test_swap_records()
593 SSL_CTX *sctx = NULL, *cctx = NULL; in test_listen() local
600 &sctx, &cctx, cert, privkey))) in test_listen()
605 if (!TEST_true(SSL_CTX_set_cipher_list(sctx, "DEFAULT:@SECLEVEL=0")) in test_listen()
611 SSL_CTX_set_cookie_generate_cb(sctx, generate_cookie_cb); in test_listen()
612 SSL_CTX_set_cookie_verify_cb(sctx, verify_cookie_cb); in test_listen()
614 if (!TEST_true(create_ssl_objects(sctx, cctx, &serverssl, &clientssl, in test_listen()
633 SSL_CTX_free(sctx); in test_listen()