mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-04 23:14:12 +02:00
wolfssl/wolfcrypt/error-crypt.h, wolfcrypt/src/error.c: add WC_FAILURE ("wolfCrypt generic failure") with value -1, for traceable error return of -1 in wolfCrypt.
configure.ac: add OPENSSL_EXTRA to --enable-wolfsentry. linuxkm/linuxkm_wc_port.h, linuxkm/module_hooks.c, wolfssl/ssl.h: accommodate backward dependencies for wolfSSL_X509_NAME_add_entry_by_NID, wolfSSL_X509_NAME_free, and wolfSSL_X509_NAME_new_ex. linuxkm/lkcapi_glue.c: if CONFIG_CRYPTO_MANAGER, assert match of CONFIG_CRYPTO_FIPS and HAVE_FIPS. src/ssl_crypto.c, wolfcrypt/src/wc_lms.c, wolfcrypt/src/wc_lms_impl.c, wolfcrypt/src/wc_xmss.c, wolfcrypt/test/test.c: add missing casts for XMALLOC()s. src/ssl_crypto.c: in wolfSSL_AES_decrypt(), fix gate for wc_AesDecryptDirect() return type. wolfcrypt/test/test.c: smallstack refactor in test_dilithium_decode_level(). tests/api.c: fix uninited vars and "embedding a directive within macro arguments is not portable" in test_wc_dilithium_der().
This commit is contained in:
@@ -44,6 +44,9 @@ const char* wc_GetErrorString(int error)
|
||||
{
|
||||
switch ((enum wolfCrypt_ErrorCodes)error) {
|
||||
|
||||
case WC_FAILURE:
|
||||
return "wolfCrypt generic failure";
|
||||
|
||||
case MP_MEM :
|
||||
return "MP integer dynamic memory allocation failed";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user