From 8f6bf98952b9300996543105dafd052edde7eb99 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 2 Feb 2024 19:10:45 +0100 Subject: [PATCH] ocsp.c: restore compatibility of ocsp_stapling_cb() with OpenSSL 1.x --- src/certstatus/ocsp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/certstatus/ocsp.c b/src/certstatus/ocsp.c index 5a876f3..cb92532 100644 --- a/src/certstatus/ocsp.c +++ b/src/certstatus/ocsp.c @@ -349,7 +349,11 @@ int ocsp_stapling_cb(SSL* ssl, OPTIONAL STACK_OF(X509) *untrusted) { LOG(FL_ERR, "error parsing stapled OCSP response"); /* well, this is likely not an internal error (malloc failure) */ - BIO_dump_indent(bio_trace, resp_der, (int)resp_der_len, 4); + BIO_dump_indent(bio_trace, +# if OPENSSL_VERSION_NUMBER < 0x30000000L + (char *) +# endif + resp_der, (int)resp_der_len, 4); BIO_flush(bio_trace); goto end; }