Skip to content

Commit 8571a67

Browse files
committed
fix PR test
1 parent 0e8af03 commit 8571a67

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/internal.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26595,8 +26595,9 @@ int SendAlert(WOLFSSL* ssl, int severity, int type)
2659526595
#include <wolfssl/debug-untrace-error-codes.h>
2659626596
#endif
2659726597

26598-
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL) || \
26599-
defined(HAVE_WEBSERVER) || defined(HAVE_MEMCACHED)
26598+
#if !defined(NO_ERROR_STRINGS) && (defined(OPENSSL_EXTRA) || \
26599+
defined(OPENSSL_EXTRA_X509_SMALL) || \
26600+
defined(HAVE_WEBSERVER) || defined(HAVE_MEMCACHED))
2660026601
static const char* wolfSSL_ERR_reason_error_string_OpenSSL(unsigned long e)
2660126602
{
2660226603
switch (e) {
@@ -26668,7 +26669,7 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
2666826669
if (error > 0) {
2666926670
#if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL) || \
2667026671
defined(HAVE_WEBSERVER) || defined(HAVE_MEMCACHED)
26671-
/* try OpenSSL error strings first */
26672+
/* Check the OpenSSL error strings first. */
2667226673
const char* ossl_err = wolfSSL_ERR_reason_error_string_OpenSSL(e);
2667326674
if (ossl_err != NULL) {
2667426675
return ossl_err;

0 commit comments

Comments
 (0)