diff options
author | Richard Levitte <levitte@openssl.org> | 2020-11-20 22:13:11 +0100 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-11-28 15:28:46 +1000 |
commit | af2f14ace581d30b186429cb3f9f5d14c0b5b4ec (patch) | |
tree | 7b2fc7268982869c2505d331f96568c96d8d3113 /util | |
parent | b8fa02e8a4a4a9c274aafdb4fc834ba051301afb (diff) |
ERR: Drop or deprecate dangerous or overly confusing functions
ERR_get_error_line() is deprecated, and ERR_get_error_func() and
ERR_get_error_data() are removed in favor of ERR_get_error_all(),
since they pop the error record, leaving the caller with only partial
error record data and no way to get the rest if the wish.
If it's desirable to retrieve data piecemeal, the caller should
consider using the diverse ERR_peek functions and finish off with
ERR_get_error().
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13466)
Diffstat (limited to 'util')
-rw-r--r-- | util/libcrypto.num | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util/libcrypto.num b/util/libcrypto.num index 54a04d6d31..77afc6eeb4 100644 --- a/util/libcrypto.num +++ b/util/libcrypto.num @@ -3176,7 +3176,7 @@ ERR_load_EVP_strings 3241 3_0_0 EXIST::FUNCTION:DEPRECATEDIN_ X509_ATTRIBUTE_set1_data 3242 3_0_0 EXIST::FUNCTION: d2i_X509_fp 3243 3_0_0 EXIST::FUNCTION:STDIO MD2_Init 3244 3_0_0 EXIST::FUNCTION:DEPRECATEDIN_3_0,MD2 -ERR_get_error_line 3245 3_0_0 EXIST::FUNCTION: +ERR_get_error_line 3245 3_0_0 EXIST::FUNCTION:DEPRECATEDIN_3_0 X509_CRL_get_ext_by_NID 3246 3_0_0 EXIST::FUNCTION: OPENSSL_INIT_free 3247 3_0_0 EXIST::FUNCTION: PBE2PARAM_free 3248 3_0_0 EXIST::FUNCTION: @@ -4693,8 +4693,6 @@ EVP_PKEY_CTX_get_params ? 3_0_0 EXIST::FUNCTION: EVP_PKEY_CTX_gettable_params ? 3_0_0 EXIST::FUNCTION: EVP_PKEY_CTX_settable_params ? 3_0_0 EXIST::FUNCTION: EVP_CIPHER_CTX_tag_length ? 3_0_0 EXIST::FUNCTION: -ERR_get_error_func ? 3_0_0 EXIST::FUNCTION: -ERR_get_error_data ? 3_0_0 EXIST::FUNCTION: ERR_get_error_all ? 3_0_0 EXIST::FUNCTION: ERR_peek_error_func ? 3_0_0 EXIST::FUNCTION: ERR_peek_error_data ? 3_0_0 EXIST::FUNCTION: |