Skip to content

Commit

Permalink
ocsp.c: restore compatibility of ocsp_stapling_cb() with OpenSSL 1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
DDvO committed Feb 2, 2024
1 parent 1c2b3b3 commit 8f6bf98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/certstatus/ocsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f6bf98

Please sign in to comment.