Skip to content

Commit 6429315

Browse files
committed
fix references to misnamed HAVE_SHA224, HAVE_SHA384, HAVE_SHA512 (correct names have WOLFSSL_ prefixes).
1 parent 43fe46c commit 6429315

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/ssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15108,7 +15108,7 @@ static WC_INLINE const char* wolfssl_mac_to_string(int mac)
1510815108
macStr = "SHA1";
1510915109
break;
1511015110
#endif
15111-
#ifdef HAVE_SHA224
15111+
#ifdef WOLFSSL_SHA224
1511215112
case sha224_mac:
1511315113
macStr = "SHA224";
1511415114
break;
@@ -15118,12 +15118,12 @@ static WC_INLINE const char* wolfssl_mac_to_string(int mac)
1511815118
macStr = "SHA256";
1511915119
break;
1512015120
#endif
15121-
#ifdef HAVE_SHA384
15121+
#ifdef WOLFSSL_SHA384
1512215122
case sha384_mac:
1512315123
macStr = "SHA384";
1512415124
break;
1512515125
#endif
15126-
#ifdef HAVE_SHA512
15126+
#ifdef WOLFSSL_SHA512
1512715127
case sha512_mac:
1512815128
macStr = "SHA512";
1512915129
break;

wolfssl/wolfcrypt/settings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1481,7 +1481,7 @@ extern void uITRON4_free(void *p) ;
14811481
#ifndef NO_WRITEV
14821482
#define NO_WRITEV
14831483
#endif
1484-
#ifndef HAVE_SHA512
1484+
#ifndef WOLFSSL_SHA512
14851485
#ifndef NO_SHA512
14861486
#define NO_SHA512
14871487
#endif

0 commit comments

Comments
 (0)