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

/freebsd-10.1-release/contrib/unbound/smallapp/
H A Dunbound-control.c138 char* s_cert, *c_key, *c_cert; local
141 s_cert = fname_after_chroot(cfg->server_cert_file, cfg, 1);
144 if(!s_cert || !c_key || !c_cert)
155 if (SSL_CTX_load_verify_locations(ctx, s_cert, NULL) != 1)
159 free(s_cert);
/freebsd-10.1-release/contrib/unbound/daemon/
H A Dremote.c137 char* s_cert; local
163 s_cert = fname_after_chroot(cfg->server_cert_file, cfg, 1);
165 if(!s_cert || !s_key) {
170 if (!SSL_CTX_use_certificate_file(rc->ctx,s_cert,SSL_FILETYPE_PEM)) {
171 log_err("Error for server-cert-file: %s", s_cert);
185 if(!SSL_CTX_load_verify_locations(rc->ctx, s_cert, NULL)) {
188 free(s_cert);
193 SSL_CTX_set_client_CA_list(rc->ctx, SSL_load_client_CA_file(s_cert));
195 free(s_cert);
/freebsd-10.1-release/crypto/openssl/apps/
H A Ds_server.c1038 X509 *s_cert = NULL, *s_dcert = NULL; local
1464 s_cert = load_cert(bio_err, s_cert_file, s_cert_format,
1467 if (!s_cert) {
1751 if (!set_cert_key_stuff(ctx, s_cert, s_key))
1891 if (s_cert)
1892 X509_free(s_cert);

Completed in 163 milliseconds