Skip to content

Commit

Permalink
Merge pull request #7927 from douzzer/20240830-wolfSSL_ERR_reason_err…
Browse files Browse the repository at this point in the history
…or_string-EnumCastOutOfRange

20240830-wolfSSL_ERR_reason_error_string-EnumCastOutOfRange
  • Loading branch information
dgarske authored Aug 30, 2024
2 parents 13ec0f0 + 126df1d commit 72fc08e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -25165,11 +25165,13 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
return wc_GetErrorString(error);
}

#ifdef OPENSSL_EXTRA
if (error == 0) {
#ifdef OPENSSL_EXTRA
return "ok";
}
#else
return "unknown error number";
#endif
}

switch ((enum wolfSSL_ErrorCodes)error) {

Expand Down

0 comments on commit 72fc08e

Please sign in to comment.