Home
last modified time | relevance | path

Searched refs:s_cert (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/unbound/smallapp/
H A Dunbound-control.c532 char* s_cert=NULL, *c_key=NULL, *c_cert=NULL; in setup_ctx() local
537 s_cert = fname_after_chroot(cfg->server_cert_file, cfg, 1); in setup_ctx()
540 if(!s_cert || !c_key || !c_cert) in setup_ctx()
565 if(SSL_CTX_load_verify_locations(ctx, s_cert, NULL) != 1) in setup_ctx()
567 s_cert); in setup_ctx()
570 free(s_cert); in setup_ctx()
/freebsd/contrib/unbound/daemon/
H A Dremote.c121 char* s_cert; in remote_setup_ctx() local
132 s_cert = fname_after_chroot(cfg->server_cert_file, cfg, 1); in remote_setup_ctx()
134 if(!s_cert || !s_key) { in remote_setup_ctx()
139 if (!SSL_CTX_use_certificate_chain_file(rc->ctx,s_cert)) { in remote_setup_ctx()
140 log_err("Error for server-cert-file: %s", s_cert); in remote_setup_ctx()
155 if(!SSL_CTX_load_verify_locations(rc->ctx, s_cert, NULL)) { in remote_setup_ctx()
158 free(s_cert); in remote_setup_ctx()
162 SSL_CTX_set_client_CA_list(rc->ctx, SSL_load_client_CA_file(s_cert)); in remote_setup_ctx()
164 free(s_cert); in remote_setup_ctx()
/freebsd/crypto/openssl/apps/
H A Ds_server.c987 X509 *s_cert = NULL, *s_dcert = NULL; in s_server_main() local
1736 s_cert = load_cert_pass(s_cert_file, s_cert_format, 1, pass, in s_server_main()
1739 if (s_cert == NULL) in s_server_main()
2093 if (!set_cert_key_stuff(ctx, s_cert, s_key, s_chain, build_chain)) in s_server_main()
2242 X509_free(s_cert); in s_server_main()