summaryrefslogtreecommitdiffstats
path: root/crypto/ocsp
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-02-21 21:41:56 +0100
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-02-21 21:41:56 +0100
commite8d0819d52b2741fcb4ddb79ced4d824c3056918 (patch)
tree751519d69bc54c407c7431f1a0efd1d1017a177a /crypto/ocsp
parent745fc918e7eeb86b2ac541325a8ae5c6e374ee56 (diff)
Don't exclude quite so much in a no-sock build
We were excluding more code than we needed to in the OCSP/HTTP code in the event of no-sock. We should also not assume that a BIO passed to our API is socket based. This fixes the no-sock build Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/11134)
Diffstat (limited to 'crypto/ocsp')
-rw-r--r--crypto/ocsp/ocsp_http.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/ocsp/ocsp_http.c b/crypto/ocsp/ocsp_http.c
index 39277c1bba..1e270100ad 100644
--- a/crypto/ocsp/ocsp_http.c
+++ b/crypto/ocsp/ocsp_http.c
@@ -35,7 +35,6 @@ OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
return res;
}
-# ifndef OPENSSL_NO_SOCK
int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx)
{
*presp = (OCSP_RESPONSE *)
@@ -60,6 +59,4 @@ OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req)
return rv == 1 ? resp : NULL;
}
-# endif /* !defined(OPENSSL_NO_SOCK) */
-
#endif /* !defined(OPENSSL_NO_OCSP) */