Home
last modified time | relevance | path

Searched refs:server_ctx (Results 1 – 8 of 8) sorted by relevance

/netbsd-src/external/ibm-public/postfix/dist/src/tls/
H A Dtls_server.c392 SSL_CTX *server_ctx; in tls_server_init() local
486 server_ctx = SSL_CTX_new(TLS_server_method()); in tls_server_init()
487 if (server_ctx == 0) { in tls_server_init()
494 SSL_CTX_free(server_ctx); in tls_server_init()
501 SSL_CTX_set_security_level(server_ctx, 0); in tls_server_init()
508 SSL_CTX_set_verify_depth(server_ctx, props->verifydepth + 1); in tls_server_init()
566 SSL_CTX_set_tlsext_ticket_key_evp_cb(server_ctx, ticket_cb); in tls_server_init()
568 SSL_CTX_set_tlsext_ticket_key_cb(server_ctx, ticket_cb); in tls_server_init()
583 SSL_CTX_set_num_tickets(server_ctx, 1); in tls_server_init()
589 SSL_CTX_set_options(server_ctx, off); in tls_server_init()
[all …]
/netbsd-src/external/mit/libuv/dist/test/
H A Dbenchmark-multi-accept.c67 struct server_ctx { struct
205 struct server_ctx* servers) { in send_listen_handles()
258 struct server_ctx *ctx; in server_cb()
283 struct server_ctx* ctx; in sv_async_cb()
284 ctx = container_of(handle, struct server_ctx, async_handle); in sv_async_cb()
292 struct server_ctx* ctx; in sv_connection_cb()
294 ctx = container_of(server_handle, struct server_ctx, server_handle); in sv_connection_cb()
363 struct server_ctx* servers; in test_tcp()
383 struct server_ctx* ctx = servers + i; in test_tcp()
411 struct server_ctx* ctx = servers + i; in test_tcp()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dhandshake_helper.c500 static int configure_handshake_ctx(SSL_CTX *server_ctx, SSL_CTX *server2_ctx, in configure_handshake_ctx() argument
511 if (!TEST_int_eq(SSL_CTX_set_max_send_fragment(server_ctx, in configure_handshake_ctx()
553 SSL_CTX_set_tlsext_servername_callback(server_ctx, servername_ignore_cb); in configure_handshake_ctx()
554 SSL_CTX_set_tlsext_servername_arg(server_ctx, server2_ctx); in configure_handshake_ctx()
557 SSL_CTX_set_tlsext_servername_callback(server_ctx, servername_reject_cb); in configure_handshake_ctx()
558 SSL_CTX_set_tlsext_servername_arg(server_ctx, server2_ctx); in configure_handshake_ctx()
563 SSL_CTX_set_client_hello_cb(server_ctx, client_hello_ignore_cb, server2_ctx); in configure_handshake_ctx()
566 SSL_CTX_set_client_hello_cb(server_ctx, client_hello_reject_cb, server2_ctx); in configure_handshake_ctx()
569 SSL_CTX_set_client_hello_cb(server_ctx, client_hello_nov12_cb, server2_ctx); in configure_handshake_ctx()
576 SSL_CTX_set_tlsext_status_cb(server_ctx, server_ocsp_cb); in configure_handshake_ctx()
[all …]
H A Dssl_test.c394 SSL_CTX *server_ctx = NULL, *server2_ctx = NULL, *client_ctx = NULL, in test_handshake() local
408 server_ctx = SSL_CTX_new(DTLS_server_method()); in test_handshake()
409 if (!TEST_true(SSL_CTX_set_max_proto_version(server_ctx, in test_handshake()
437 server_ctx = SSL_CTX_new(TLS_server_method()); in test_handshake()
438 if (!TEST_true(SSL_CTX_set_max_proto_version(server_ctx, in test_handshake()
475 if (!TEST_ptr(server_ctx) in test_handshake()
480 if (!SSL_CTX_config(server_ctx, "server") in test_handshake()
494 result = do_handshake(server_ctx, server2_ctx, client_ctx, in test_handshake()
502 SSL_CTX_free(server_ctx); in test_handshake()
H A Dhandshake_helper.h76 HANDSHAKE_RESULT *do_handshake(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dssl_test.c397 SSL_CTX *server_ctx = NULL, *server2_ctx = NULL, *client_ctx = NULL, in test_handshake() local
411 server_ctx = SSL_CTX_new_ex(libctx, NULL, DTLS_server_method()); in test_handshake()
412 if (!TEST_true(SSL_CTX_set_options(server_ctx, in test_handshake()
414 || !TEST_true(SSL_CTX_set_max_proto_version(server_ctx, 0))) in test_handshake()
454 server_ctx = SSL_CTX_new_ex(libctx, NULL, TLS_server_method()); in test_handshake()
455 if (!TEST_true(SSL_CTX_set_max_proto_version(server_ctx, maxversion)) in test_handshake()
456 || !TEST_true(SSL_CTX_set_options(server_ctx, in test_handshake()
499 if (!TEST_ptr(server_ctx) in test_handshake()
504 if (!SSL_CTX_config(server_ctx, "server") in test_handshake()
518 result = do_handshake(server_ctx, server2_ctx, client_ctx, in test_handshake()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/helpers/
H A Dhandshake_srp.c41 int configure_handshake_ctx_for_srp(SSL_CTX *server_ctx, SSL_CTX *server2_ctx, in configure_handshake_ctx_for_srp() argument
49 SSL_CTX_set_srp_username_callback(server_ctx, server_srp_cb); in configure_handshake_ctx_for_srp()
59 SSL_CTX_set_srp_cb_arg(server_ctx, server_ctx_data); in configure_handshake_ctx_for_srp()
H A Dhandshake.h86 HANDSHAKE_RESULT *do_handshake(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,
91 int configure_handshake_ctx_for_srp(SSL_CTX *server_ctx, SSL_CTX *server2_ctx,