openssl: sync an AWS-LC guard with BoringSSL

BoringSSL always used the same type:
https://boringssl.googlesource.com/boringssl/+/103ed08549a74af9f03363c633028faf9a475066
103ed08549

But, this codepath isn't built with BoringSSL, because it defines
`OPENSSL_NO_OCSP` via `opensslconf.h`.

Also drop an out-of-place `#endif` comment.

Ref: 20f4e94eeb #11568

Closes #18384
This commit is contained in:
Viktor Szakats 2025-08-23 20:52:16 +02:00
parent 1fc622db8e
commit f67090679f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -2504,7 +2504,7 @@ static CURLcode verifystatus(struct Curl_cfilter *cf,
struct ossl_ctx *octx)
{
int i, ocsp_status;
#ifdef OPENSSL_IS_AWSLC
#ifdef HAVE_BORINGSSL_LIKE
const uint8_t *status;
#else
unsigned char *status;
@ -5580,7 +5580,7 @@ size_t Curl_ossl_version(char *buffer, size_t size)
(ssleay_value >> 20) & 0xff,
(ssleay_value >> 12) & 0xff,
sub);
#endif /* OPENSSL_IS_BORINGSSL */
#endif
}
/* can be called with data == NULL */