mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Merge pull request #7927 from douzzer/20240830-wolfSSL_ERR_reason_error_string-EnumCastOutOfRange
20240830-wolfSSL_ERR_reason_error_string-EnumCastOutOfRange
This commit is contained in:
@@ -25165,11 +25165,13 @@ const char* wolfSSL_ERR_reason_error_string(unsigned long e)
|
|||||||
return wc_GetErrorString(error);
|
return wc_GetErrorString(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef OPENSSL_EXTRA
|
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
|
#ifdef OPENSSL_EXTRA
|
||||||
return "ok";
|
return "ok";
|
||||||
}
|
#else
|
||||||
|
return "unknown error number";
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
switch ((enum wolfSSL_ErrorCodes)error) {
|
switch ((enum wolfSSL_ErrorCodes)error) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user