mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
allow up to and including CTC_MAX_SKID_SIZE (32 byte hash)
This commit is contained in:
@ -44499,7 +44499,7 @@ void* wolfSSL_GetHKDFExtractCtx(WOLFSSL* ssl)
|
|||||||
cert->isCA = wolfSSL_X509_get_isCA(x509);
|
cert->isCA = wolfSSL_X509_get_isCA(x509);
|
||||||
|
|
||||||
#ifdef WOLFSSL_CERT_EXT
|
#ifdef WOLFSSL_CERT_EXT
|
||||||
if (x509->subjKeyIdSz < CTC_MAX_SKID_SIZE) {
|
if (x509->subjKeyIdSz <= CTC_MAX_SKID_SIZE) {
|
||||||
if (x509->subjKeyId) {
|
if (x509->subjKeyId) {
|
||||||
XMEMCPY(cert->skid, x509->subjKeyId, x509->subjKeyIdSz);
|
XMEMCPY(cert->skid, x509->subjKeyId, x509->subjKeyIdSz);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user