Skip to content

Commit a472d7f

Browse files
committed
Comment returned CRL Content-Type
1 parent 27172a0 commit a472d7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

osslsigncode.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,14 @@ static BIO *bio_get_http(char *url, BIO *req, char *proxy, int rfc3161, char *ca
929929
info.ssl_ctx = ssl_ctx;
930930

931931
if (!req) { /* GET */
932+
/*
933+
* HTTP server implementations accessed via the URI SHOULD specify the
934+
* media type application/pkix-crl in the Content-Type header field of
935+
* the response (RFC 5280, section 4.2.1.13).
936+
* In practice, some CRL distribution points return "application/octet-stream"
937+
* instead. Therefore, do not enforce the Content-Type and rely on the CRL
938+
* parser to validate the response content.
939+
*/
932940
s_bio = OSSL_HTTP_get(url, proxy, NULL, NULL, NULL, http_tls_cb, &info, 0,
933941
NULL, NULL, 0, 0, timeout);
934942
} else { /* POST */

0 commit comments

Comments
 (0)