diff --git a/src/ssl.c b/src/ssl.c index da2658151..b19b2c7f2 100644 --- a/src/ssl.c +++ b/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: