return ret;
}
-int load_cert_crl_http(const char *url, X509 **pcert, X509_CRL **pcrl)
+#ifndef OPENSSL_NO_OCSP
+static int load_cert_crl_http(const char *url, X509 **pcert, X509_CRL **pcrl)
{
char *host = NULL, *port = NULL, *path = NULL;
BIO *bio = NULL;
}
return rv;
}
+#endif
X509 *load_cert(const char *file, int format, const char *cert_descrip)
{
BIO *cert;
if (format == FORMAT_HTTP) {
+#ifndef OPENSSL_NO_OCSP
load_cert_crl_http(file, &x, NULL);
+#endif
return x;
}
BIO *in = NULL;
if (format == FORMAT_HTTP) {
+#ifndef OPENSSL_NO_OCSP
load_cert_crl_http(infile, NULL, &x);
+#endif
return x;
}