Fix OCSP_sendreq_nbio arg order
authorjwalch <jeremy.walch@gmail.com>
Tue, 25 May 2021 23:43:23 +0000 (19:43 -0400)
committerPauli <pauli@openssl.org>
Thu, 27 May 2021 03:20:38 +0000 (13:20 +1000)
Fixes #15470

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15471)

include/openssl/ocsp.h.in

index 869c3ad41549fecca4d4ba932861081f7a89e137..a9ff4e565c051eab3b4b81300bd8ea08b26a9854 100644 (file)
@@ -189,7 +189,7 @@ typedef OSSL_HTTP_REQ_CTX OCSP_REQ_CTX;
         OCSP_REQ_CTX_i2d(r, ASN1_ITEM_rptr(OCSP_REQUEST), (ASN1_VALUE *)(req))
 #   define OCSP_REQ_CTX_nbio OSSL_HTTP_REQ_CTX_nbio
 #   define OCSP_REQ_CTX_nbio_d2i OSSL_HTTP_REQ_CTX_nbio_d2i
-#   define OCSP_sendreq_nbio(r, p) \
+#   define OCSP_sendreq_nbio(p, r) \
         OSSL_HTTP_REQ_CTX_nbio_d2i(r, (ASN1_VALUE **)(p), \
                                    ASN1_ITEM_rptr(OCSP_RESPONSE))
 #   define OCSP_REQ_CTX_get0_mem_bio OSSL_HTTP_REQ_CTX_get0_mem_bio