Home
last modified time | relevance | path

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

/netbsd-src/usr.bin/nc/
H A Dnetcat.c149 void report_tls(struct tls *tls_ctx, char * host, char *tlsexpectname);
171 struct tls *tls_ctx = NULL; in main() local
565 if ((tls_ctx = tls_server()) == NULL) in main()
567 if (tls_configure(tls_ctx, tls_cfg) == -1) in main()
569 tls_error(tls_ctx)); in main()
622 (tls_cctx = tls_setup_server(tls_ctx, connfd, host))) in main()
677 if ((tls_ctx = tls_client()) == NULL) in main()
679 if (tls_configure(tls_ctx, tls_cfg) == -1) in main()
681 tls_error(tls_ctx)); in main()
724 tls_setup_client(tls_ctx, s, host); in main()
[all …]
/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dldap-tls.h24 struct tls_ctx;
27 typedef struct tls_ctx tls_ctx; typedef
33 typedef tls_ctx *(TI_ctx_new)(struct ldapoptions *lo);
34 typedef void (TI_ctx_ref)(tls_ctx *ctx);
35 typedef void (TI_ctx_free)(tls_ctx *ctx);
38 typedef tls_session *(TI_session_new)(tls_ctx *ctx, int is_server);
H A Dtls_g.c103 static tls_ctx *
120 return (tls_ctx *)ctx; in tlsg_ctx_new()
124 tlsg_ctx_ref( tls_ctx *ctx ) in tlsg_ctx_ref()
133 tlsg_ctx_free ( tls_ctx *ctx ) in tlsg_ctx_free()
387 tlsg_session_new ( tls_ctx * ctx, int is_server ) in tlsg_session_new()
H A Dtls_o.c260 static tls_ctx *
263 return (tls_ctx *) SSL_CTX_new( SSLv23_method() ); in tlso_ctx_new()
267 tlso_ctx_ref( tls_ctx *ctx ) in tlso_ctx_ref()
277 tlso_ctx_free ( tls_ctx *ctx ) in tlso_ctx_free()
615 tlso_session_new( tls_ctx *ctx, int is_server ) in tlso_session_new()
H A Dtls2.c91 tls_ctx_ref( tls_ctx *ctx ) in tls_ctx_ref()
306 tls_ctx *ctx; in alloc_handle()
359 tls_ctx *ctx; in ldap_int_tls_connect()
/netbsd-src/external/mpl/bind/dist/bin/tests/
H A Dtest_server.c47 static isc_tlsctx_t *tls_ctx = NULL;
177 if (tls_ctx) {
178 isc_tlsctx_free(&tls_ctx); in setup()
259 isc_tlsctx_createserver(NULL, NULL, &tls_ctx); in accept_cb()
263 accept_cb, NULL, 0, NULL, tls_ctx, ISC_NM_PROXY_NONE,
273 isc_tlsctx_createserver(NULL, NULL, &tls_ctx); in run()
282 tls_ctx, eps, 0, ISC_NM_PROXY_NONE, &sock); in run()
46 static isc_tlsctx_t *tls_ctx = NULL; global() variable
H A Dtest_client.c71 static isc_tlsctx_t *tls_ctx = NULL;
300 if (tls_ctx) { in setup()
301 isc_tlsctx_free(&tls_ctx); in setup()
388 isc_tlsctx_createclient(&tls_ctx); in connect_cb()
392 NULL, timeout, tls_ctx, NULL, ISC_NM_PROXY_NONE, NULL); in connect_cb()
409 isc_tlsctx_createclient(&tls_ctx); in run()
412 req_url, is_post, connect_cb, NULL, tls_ctx, in run()
70 static isc_tlsctx_t *tls_ctx = NULL; global() variable
/netbsd-src/external/ibm-public/postfix/dist/src/posttls-finger/
H A Dposttls-finger.c494 TLS_APPL_STATE *tls_ctx; /* Application TLS context */ member
907 ctx = state->tls_ctx, in starttls()
952 tls_update_app_logmask(state->tls_ctx, state->log_mask); in starttls()
988 if ((state->wrapper_mode || words) && state->tls_ctx) in doproto()
1678 tls_client_stop(state->tls_ctx, state->stream, in disconnect_dest()
1792 if (state->tls_ctx != 0) in cleanup()
1793 tls_free_app_context(state->tls_ctx); in cleanup()
1857 state->tls_ctx = in tls_init()
/netbsd-src/external/bsd/nsd/dist/
H A Dnsd.h376 SSL_CTX *tls_ctx; member
H A Dnsd.c1196 nsd.tls_ctx = NULL; in main()
1562 if(!(nsd.tls_ctx = server_tls_ctx_create(&nsd, NULL, in main()
H A Dserver.c1615 if (nsd->tls_ctx) in server_shutdown()
1616 SSL_CTX_free(nsd->tls_ctx); in server_shutdown()
3046 if (nsd->tls_ctx && in add_tcp_handler()
5160 tcp_data->tls = incoming_ssl_fd(tcp_data->nsd->tls_ctx, s); in handle_tcp_accept()
H A Dxfrd.c408 if (xfrd->nsd->tls_ctx) in xfrd_shutdown()
409 SSL_CTX_free(xfrd->nsd->tls_ctx); in xfrd_shutdown()
/netbsd-src/external/bsd/unbound/dist/util/
H A Dnet_help.c1278 add_WIN_cacerts_to_openssl_store(SSL_CTX* tls_ctx) in add_WIN_cacerts_to_openssl_store() argument
1288 if (!tls_ctx) in add_WIN_cacerts_to_openssl_store()
1305 store = SSL_CTX_get_cert_store(tls_ctx); in add_WIN_cacerts_to_openssl_store()