Skip to content

Commit

Permalink
fix type of ocsp_stapling_cb variable in ocsp_stapling_cb() of certst…
Browse files Browse the repository at this point in the history
…atus/ocsp.c
  • Loading branch information
DDvO committed Jan 15, 2024
1 parent 1d75026 commit 32bd54d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/certstatus/ocsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ int ocsp_stapling_cb(SSL* ssl, OPTIONAL STACK_OF(X509) *untrusted)
STACK_OF(X509) *chain = SSL_get0_verified_chain(ssl);
X509* cert = sk_X509_value(chain, 0); /* multi-stapling is not supported */
const unsigned char* resp_der;
int resp_der_len = SSL_get_tlsext_status_ocsp_resp(ssl, &resp_der);
long resp_der_len = SSL_get_tlsext_status_ocsp_resp(ssl, &resp_der);
OCSP_RESPONSE* resp = 0;
X509_STORE_CTX* ctx = 0;
int ret = -1; /* tls_process_initial_server_flight reports
Expand All @@ -349,7 +349,7 @@ 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, (char*)resp_der, resp_der_len, 4);
BIO_dump_indent(bio_trace, resp_der, (int)resp_der_len, 4);
BIO_flush(bio_trace);
goto end;
}
Expand Down

0 comments on commit 32bd54d

Please sign in to comment.