mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Copy raw subject to issuer
This commit is contained in:
@@ -15190,12 +15190,12 @@ int wc_SetIssuerRaw(Cert* cert, const byte* der, int derSz)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
if ((((DecodedCert*)cert->decodedCert)->issuerRaw) &&
|
if ((((DecodedCert*)cert->decodedCert)->subjectRaw) &&
|
||||||
(((DecodedCert*)cert->decodedCert)->issuerRawLen <=
|
(((DecodedCert*)cert->decodedCert)->subjectRawLen <=
|
||||||
(int)sizeof(CertName))) {
|
(int)sizeof(CertName))) {
|
||||||
XMEMCPY(cert->issRaw,
|
XMEMCPY(cert->issRaw,
|
||||||
((DecodedCert*)cert->decodedCert)->issuerRaw,
|
((DecodedCert*)cert->decodedCert)->subjectRaw,
|
||||||
((DecodedCert*)cert->decodedCert)->issuerRawLen);
|
((DecodedCert*)cert->decodedCert)->subjectRawLen);
|
||||||
}
|
}
|
||||||
#ifndef WOLFSSL_CERT_GEN_CACHE
|
#ifndef WOLFSSL_CERT_GEN_CACHE
|
||||||
wc_SetCert_Free(cert);
|
wc_SetCert_Free(cert);
|
||||||
|
Reference in New Issue
Block a user