ERR: Add new building blocks for reporting errors
authorRichard Levitte <levitte@openssl.org>
Wed, 24 Jul 2019 11:03:32 +0000 (13:03 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 31 Jul 2019 04:42:45 +0000 (06:42 +0200)
commit7c0e20dc6f11aa506abc99ccc90b3a39c48c3052
tree9826a7692351ef85ee1c06bd015670ccf84b1f95
parent8a4dc425cc73040c55bc01d89c5541e37dab939a
ERR: Add new building blocks for reporting errors

The new building block are ERR_new(), ERR_set_debug(),
ERR_set_error(), ERR_vset_error(), which allocate a new error record
and set the diverse data in them.  They are designed in such a way
that it's reasonably easy to create macros that use all of them but
then rely completely on the function signature of ERR_set_error() or
ERR_vset_error().

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9452)
crypto/err/build.info
crypto/err/err_blocks.c [new file with mode: 0644]
doc/man3/ERR_new.pod [new file with mode: 0644]
include/openssl/err.h
util/libcrypto.num