diff --git a/src/ssl.c b/src/ssl.c index 02fc4e8ff..2d56dcf85 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -14690,7 +14690,7 @@ int AddSessionToCache(WOLFSSL_CTX* ctx, WOLFSSL_SESSION* addSession, cacheSession->ticketNonce.data = cacheSession->ticketNonce.dataStatic; cacheSession->ticketNonce.len = 0; } -#endif /* WOFLSSL_TLS13 && WOLFSSL_TICKET_NONCE_MALLOC && FIPS_VERSION_GE(5,3)*/ +#endif /* WOLFSSL_TLS13 && WOLFSSL_TICKET_NONCE_MALLOC && FIPS_VERSION_GE(5,3)*/ #endif #ifdef SESSION_CERTS if (overwrite && diff --git a/wolfcrypt/src/evp.c b/wolfcrypt/src/evp.c index f92fb0492..f3ba308e4 100644 --- a/wolfcrypt/src/evp.c +++ b/wolfcrypt/src/evp.c @@ -5992,8 +5992,8 @@ void wolfSSL_EVP_init(void) } else #endif /* HAVE_CHACHA && HAVE_POLY1305 */ -#if defined(WOFLSSL_SM4_GCM) - if (ctx->cipherType == WOLFSSL_SM4_GCM) { +#if defined(WOLFSSL_SM4_GCM) + if (ctx->cipherType == SM4_GCM_TYPE) { if ((arg <= 0) || (arg > SM4_BLOCK_SIZE) || (ptr == NULL)) { break; } @@ -6005,8 +6005,8 @@ void wolfSSL_EVP_init(void) } else #endif -#if defined(WOFLSSL_SM4_CCM) - if (ctx->cipherType == WOLFSSL_SM4_CCM) { +#if defined(WOLFSSL_SM4_CCM) + if (ctx->cipherType == SM4_CCM_TYPE) { if ((arg <= 0) || (arg > SM4_BLOCK_SIZE) || (ptr == NULL)) { break; } @@ -6040,7 +6040,7 @@ void wolfSSL_EVP_init(void) else #endif /* HAVE_CHACHA && HAVE_POLY1305 */ #if defined(WOLFSSL_SM4_GCM) - if (ctx->cipherType == WOLFSSL_SM4_GCM) { + if (ctx->cipherType == SM4_GCM_TYPE) { if (arg <= 0 || arg > SM4_BLOCK_SIZE) { break; } @@ -6048,7 +6048,7 @@ void wolfSSL_EVP_init(void) else #endif #if defined(WOLFSSL_SM4_CCM) - if (ctx->cipherType == WOLFSSL_SM4_CCM) { + if (ctx->cipherType == SM4_CCM_TYPE) { if (arg <= 0 || arg > SM4_BLOCK_SIZE) { break; }