diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 80b3ce76e..b1c22578b 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -31689,7 +31689,7 @@ static int MakeSignature(CertSignCtx* certSignCtx, const byte* buf, word32 sz, certSignCtx->state = CERTSIGN_STATE_DO; ret = -1; /* default to error, reassigned to ALGO_ID_E below. */ - #ifndef NO_RSA + #if !defined(NO_RSA) && !defined(WOLFSSL_RSA_PUBLIC_ONLY) && !defined(WOLFSSL_RSA_VERIFY_ONLY) if (rsaKey) { /* signature */ ret = wc_RsaSSL_Sign(certSignCtx->encSig,