ERR: Drop or deprecate dangerous or overly confusing functions
authorRichard Levitte <levitte@openssl.org>
Fri, 20 Nov 2020 21:13:11 +0000 (22:13 +0100)
committerPauli <paul.dale@oracle.com>
Sat, 28 Nov 2020 05:28:46 +0000 (15:28 +1000)
commitaf2f14ace581d30b186429cb3f9f5d14c0b5b4ec
tree7b2fc7268982869c2505d331f96568c96d8d3113
parentb8fa02e8a4a4a9c274aafdb4fc834ba051301afb
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)
CHANGES.md
NEWS.md
crypto/err/err.c
doc/man3/ERR_get_error.pod
include/openssl/err.h.in
util/libcrypto.num