From 20a2ec0fc19a301170b0bd046b736ea9aaa81da2 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 27 Jun 2025 07:43:55 -0700 Subject: [PATCH 1/2] Fix typo from MacOS signal fix improvement in PR #8928. --- wolfcrypt/src/wc_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/wc_port.c b/wolfcrypt/src/wc_port.c index a5b864a95ad..524745e14e7 100644 --- a/wolfcrypt/src/wc_port.c +++ b/wolfcrypt/src/wc_port.c @@ -3974,7 +3974,7 @@ char* mystrnstr(const char* s1, const char* s2, unsigned int n) */ if (dispatch_semaphore_signal(s->sem) < 0) { dispatch_release(s->sem); - return return MEMORY_E; + return MEMORY_E; } #elif defined(__OS2__) DosCreateMutexSem( NULL, &cond->mutex, 0, FALSE ); From 3a200387c0cf84b665b85b658ddf6f8054899477 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 27 Jun 2025 08:59:05 -0700 Subject: [PATCH 2/2] Fix a copy/paste typo `WC_MAX_BLOCK_SIZE` from PR #8909. --- wolfssl/wolfcrypt/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 1003827123e..ef4274db3a1 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -2084,7 +2084,7 @@ enum Max_ASN { #ifndef WC_MAX_DIGEST_SIZE #define WC_MAX_DIGEST_SIZE 64 #endif -#ifndef WC_MAX_DIGEST_SIZE +#ifndef WC_MAX_BLOCK_SIZE #define WC_MAX_BLOCK_SIZE 128 #endif