mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
wolfcrypt/src/asn.c: fix for copy-paste error in FillSigner() WOLFSSL_DUAL_ALG_CERTS path.
This commit is contained in:
@@ -24067,7 +24067,7 @@ int FillSigner(Signer* signer, DecodedCert* cert, int type, DerBuffer *der)
|
|||||||
if (ret == 0 && signer != NULL) {
|
if (ret == 0 && signer != NULL) {
|
||||||
if (cert->extSapkiSet && cert->sapkiLen > 0) {
|
if (cert->extSapkiSet && cert->sapkiLen > 0) {
|
||||||
/* Allocated space for alternative public key. */
|
/* Allocated space for alternative public key. */
|
||||||
signer->sapkiDer = (byte*)XMALLOC(cert->sapkiLen, cm->heap,
|
signer->sapkiDer = (byte*)XMALLOC(cert->sapkiLen, cert->heap,
|
||||||
DYNAMIC_TYPE_PUBLIC_KEY);
|
DYNAMIC_TYPE_PUBLIC_KEY);
|
||||||
if (signer->sapkiDer == NULL) {
|
if (signer->sapkiDer == NULL) {
|
||||||
ret = MEMORY_E;
|
ret = MEMORY_E;
|
||||||
@@ -24083,7 +24083,8 @@ int FillSigner(Signer* signer, DecodedCert* cert, int type, DerBuffer *der)
|
|||||||
|
|
||||||
#if defined(WOLFSSL_AKID_NAME) || defined(HAVE_CRL)
|
#if defined(WOLFSSL_AKID_NAME) || defined(HAVE_CRL)
|
||||||
if (ret == 0 && signer != NULL)
|
if (ret == 0 && signer != NULL)
|
||||||
ret = CalcHashId(cert->serial, (word32)cert->serialSz, signer->serialHash);
|
ret = CalcHashId(cert->serial, (word32)cert->serialSz,
|
||||||
|
signer->serialHash);
|
||||||
#endif
|
#endif
|
||||||
if (ret == 0 && signer != NULL) {
|
if (ret == 0 && signer != NULL) {
|
||||||
#ifdef WOLFSSL_SIGNER_DER_CERT
|
#ifdef WOLFSSL_SIGNER_DER_CERT
|
||||||
|
Reference in New Issue
Block a user