Explorar o código

ProcessBuffer(): in WOLFSSL_DUAL_ALG_CERTS code path, fall through without disrupting ret, if cert->sapkiOID and cert->sapkiLen are unset.

Daniel Pouzzner hai 5 meses
pai
achega
8511b2dc6b
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/ssl.c

+ 4 - 0
src/ssl.c

@@ -8096,6 +8096,10 @@ int ProcessBuffer(WOLFSSL_CTX* ctx, const unsigned char* buff,
         keySz = 0;
         /* check alternative key size of cert */
         switch (cert->sapkiOID) {
+            case 0:
+                if (cert->sapkiLen != 0)
+                    ret = NOT_COMPILED_IN;
+                break;
         #ifndef NO_RSA
             #ifdef WC_RSA_PSS
             case RSAPSSk: