LibCrypto: Print all descriptive OpenSSL errors

The code was printing one error message only, but multiple can be
generated in one call. Additionally, using this builtin produces
a much more descriptive output.
This commit is contained in:
devgianlu 2025-01-26 20:32:18 +01:00 committed by Ali Mohammad Pur
commit de6f77e7e3
Notes: github-actions[bot] 2025-01-27 11:26:35 +00:00
2 changed files with 9 additions and 10 deletions

View file

@ -14,8 +14,7 @@ typedef struct evp_md_ctx_st EVP_MD_CTX;
typedef struct evp_pkey_st EVP_PKEY;
typedef struct evp_pkey_ctx_st EVP_PKEY_CTX;
long unsigned int ERR_get_error();
char* ERR_error_string(long unsigned int, char*);
void ERR_print_errors_cb(int (*cb)(char const* str, size_t len, void* u), void* u);
EVP_MD_CTX* EVP_MD_CTX_new();
void EVP_MD_CTX_free(EVP_MD_CTX*);