Home
last modified time | relevance | path

Searched refs:client_ctx (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/external/ibm-public/postfix/dist/src/tls/
H A Dtls_client.c619 SSL_CTX *client_ctx; in tls_client_init() local
694 client_ctx = SSL_CTX_new(TLS_client_method()); in tls_client_init()
695 if (client_ctx == 0) { in tls_client_init()
702 SSL_CTX_set_security_level(client_ctx, 0); in tls_client_init()
708 SSL_CTX_set_verify_depth(client_ctx, props->verifydepth + 1); in tls_client_init()
718 if (SSL_CTX_dane_enable(client_ctx) <= 0) { in tls_client_init()
723 tls_dane_digest_init(client_ctx, fpt_alg); in tls_client_init()
739 SSL_CTX_set_options(client_ctx, off); in tls_client_init()
745 SSL_CTX_set_info_callback(client_ctx, tls_info_callback); in tls_client_init()
758 if (tls_set_ca_certificate_info(client_ctx, in tls_client_init()
[all …]
H A Dtls_dane.c1260 SSL_CTX *client_ctx; in ctx_init() local
1273 if ((client_ctx = SSL_CTX_new(TLS_client_method())) == 0) in ctx_init()
1275 SSL_CTX_set_verify_depth(client_ctx, 5); in ctx_init()
1278 if (SSL_CTX_dane_enable(client_ctx) <= 0) { in ctx_init()
1282 if (tls_set_ca_certificate_info(client_ctx, CAfile, "") < 0) { in ctx_init()
1286 SSL_CTX_set_verify(client_ctx, SSL_VERIFY_NONE, in ctx_init()
1288 return (client_ctx); in ctx_init()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dcmp_server_test.c65 OSSL_CMP_CTX *client_ctx; in execute_test_handle_request() local
72 if (!TEST_ptr(client_ctx = OSSL_CMP_CTX_new(libctx, NULL)) in execute_test_handle_request()
73 || !TEST_true(OSSL_CMP_CTX_set_transfer_cb_arg(client_ctx, ctx))) in execute_test_handle_request()
96 if (!TEST_ptr(rsp = OSSL_CMP_CTX_server_perform(client_ctx, fixture->req)) in execute_test_handle_request()
108 OSSL_CMP_CTX_free(client_ctx); in execute_test_handle_request()
H A Dssl_test.c397 SSL_CTX *server_ctx = NULL, *server2_ctx = NULL, *client_ctx = NULL, in test_handshake() local
424 client_ctx = SSL_CTX_new_ex(libctx, NULL, DTLS_client_method()); in test_handshake()
425 if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx, 0))) in test_handshake()
471 client_ctx = SSL_CTX_new_ex(libctx, NULL, TLS_client_method()); in test_handshake()
472 if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx, maxversion))) in test_handshake()
500 || !TEST_ptr(client_ctx) in test_handshake()
505 || !SSL_CTX_config(client_ctx, "client")) { in test_handshake()
518 result = do_handshake(server_ctx, server2_ctx, client_ctx, in test_handshake()
528 SSL_CTX_free(client_ctx); in test_handshake()
/netbsd-src/external/mit/libuv/dist/test/
H A Dbenchmark-multi-accept.c75 struct client_ctx { struct
331 struct client_ctx* ctx = container_of(req, struct client_ctx, connect_req); in cl_connect_cb()
338 struct client_ctx* ctx = container_of(handle, struct client_ctx, idle_handle); in cl_idle_cb()
345 struct client_ctx* ctx; in cl_close_cb()
347 ctx = container_of(handle, struct client_ctx, client_handle); in cl_close_cb()
364 struct client_ctx* clients; in test_tcp()
391 struct client_ctx* ctx = clients + i; in test_tcp()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dssl_test.c394 SSL_CTX *server_ctx = NULL, *server2_ctx = NULL, *client_ctx = NULL, in test_handshake() local
417 client_ctx = SSL_CTX_new(DTLS_client_method()); in test_handshake()
418 if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx, in test_handshake()
450 client_ctx = SSL_CTX_new(TLS_client_method()); in test_handshake()
451 if (!TEST_true(SSL_CTX_set_max_proto_version(client_ctx, in test_handshake()
476 || !TEST_ptr(client_ctx) in test_handshake()
481 || !SSL_CTX_config(client_ctx, "client")) { in test_handshake()
494 result = do_handshake(server_ctx, server2_ctx, client_ctx, in test_handshake()
504 SSL_CTX_free(client_ctx); in test_handshake()
H A Dhandshake_helper.c501 SSL_CTX *client_ctx, in configure_handshake_ctx() argument
520 if (!TEST_int_eq(SSL_CTX_set_max_send_fragment(client_ctx, in configure_handshake_ctx()
526 SSL_CTX_set_cert_verify_callback(client_ctx, &verify_accept_cb, NULL); in configure_handshake_ctx()
529 SSL_CTX_set_cert_verify_callback(client_ctx, &verify_reject_cb, NULL); in configure_handshake_ctx()
542 client_ctx, extra->client.max_fragment_len_mode); in configure_handshake_ctx()
573 SSL_CTX_set_tlsext_status_type(client_ctx, TLSEXT_STATUSTYPE_ocsp); in configure_handshake_ctx()
574 SSL_CTX_set_tlsext_status_cb(client_ctx, client_ocsp_cb); in configure_handshake_ctx()
575 SSL_CTX_set_tlsext_status_arg(client_ctx, NULL); in configure_handshake_ctx()
617 SSL_CTX_set_next_proto_select_cb(client_ctx, client_npn_cb, in configure_handshake_ctx()
645 || !TEST_int_eq(SSL_CTX_set_alpn_protos(client_ctx, alpn_protos, in configure_handshake_ctx()
[all …]
H A Dhandshake_helper.h77 SSL_CTX *client_ctx, SSL_CTX *resume_server_ctx,
/netbsd-src/crypto/external/bsd/openssl/dist/test/helpers/
H A Dhandshake_srp.c42 SSL_CTX *client_ctx, in configure_handshake_ctx_for_srp() argument
77 if (!TEST_true(SSL_CTX_set_srp_username(client_ctx, in configure_handshake_ctx_for_srp()
80 SSL_CTX_set_srp_client_pwd_callback(client_ctx, client_srp_cb); in configure_handshake_ctx_for_srp()
84 SSL_CTX_set_srp_cb_arg(client_ctx, client_ctx_data); in configure_handshake_ctx_for_srp()
H A Dhandshake.h87 SSL_CTX *client_ctx, SSL_CTX *resume_server_ctx,
92 SSL_CTX *client_ctx,
/netbsd-src/crypto/external/bsd/openssl/dist/fuzz/
H A Dcmp.c172 OSSL_CMP_CTX *client_ctx = OSSL_CMP_CTX_new(NULL, NULL); in FuzzerTestOneInput() local
179 if (client_ctx != NULL) in FuzzerTestOneInput()
180 cmp_client_process_response(client_ctx, msg); in FuzzerTestOneInput()
189 OSSL_CMP_CTX_free(client_ctx); in FuzzerTestOneInput()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/cmp/
H A Dcmp_server.c649 OSSL_CMP_MSG *OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx, in OSSL_CMP_CTX_server_perform() argument
654 if (client_ctx == NULL || req == NULL) { in OSSL_CMP_CTX_server_perform()
659 if ((srv_ctx = OSSL_CMP_CTX_get_transfer_cb_arg(client_ctx)) == NULL) { in OSSL_CMP_CTX_server_perform()
/netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/
H A Dcmp.h.in408 OSSL_CMP_MSG * OSSL_CMP_CTX_server_perform(OSSL_CMP_CTX *client_ctx,