Skip to content

Commit 8511b2d

Browse files
committed
ProcessBuffer(): in WOLFSSL_DUAL_ALG_CERTS code path, fall through without disrupting ret, if cert->sapkiOID and cert->sapkiLen are unset.
1 parent 9bfab33 commit 8511b2d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8096,6 +8096,10 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff,
80968096
keySz = 0;
80978097
/* check alternative key size of cert */
80988098
switch (cert->sapkiOID) {
8099+
case 0:
8100+
if (cert->sapkiLen != 0)
8101+
ret = NOT_COMPILED_IN;
8102+
break;
80998103
#ifndef NO_RSA
81008104
#ifdef WC_RSA_PSS
81018105
case RSAPSSk:

0 commit comments

Comments
 (0)