ocsp.h: Fix backward compatibility declaration of OCSP_parse_url()
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 5 Oct 2020 20:56:54 +0000 (22:56 +0200)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 7 Oct 2020 13:50:44 +0000 (15:50 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13077)

include/openssl/ocsp.h.in

index bf1e5a37fddf26c256c9f6d8afb5889ccf88f41d..1a2fb93c4f7ee0cc0814f008ad34e92ebde46c9e 100644 (file)
@@ -261,7 +261,8 @@ int OCSP_check_validity(ASN1_GENERALIZEDTIME *thisupd,
 int OCSP_request_verify(OCSP_REQUEST *req, STACK_OF(X509) *certs,
                         X509_STORE *store, unsigned long flags);
 
-#  define OCSP_parse_url OSSL_HTTP_parse_url /* for backward compatibility */
+#  define OCSP_parse_url(url, host, port, path, ssl) \
+    OSSL_HTTP_parse_url(url, host, port, NULL, path, ssl) /* backward compat */
 
 int OCSP_id_issuer_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);
 int OCSP_id_cmp(const OCSP_CERTID *a, const OCSP_CERTID *b);