From: jwalch Date: Tue, 25 May 2021 23:43:23 +0000 (-0400) Subject: Fix OCSP_sendreq_nbio arg order X-Git-Tag: openssl-3.0.0-beta1~353 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dcc780cf8d03309e62e5c135f250bd4fd0b7fe41;p=thirdparty%2Fopenssl.git Fix OCSP_sendreq_nbio arg order Fixes #15470 Reviewed-by: Richard Levitte Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15471) --- diff --git a/include/openssl/ocsp.h.in b/include/openssl/ocsp.h.in index 869c3ad4154..a9ff4e565c0 100644 --- a/include/openssl/ocsp.h.in +++ b/include/openssl/ocsp.h.in @@ -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