Change ERR_add_error_[v]data to append
authorRich Salz <rsalz@akamai.com>
Tue, 18 Jun 2019 16:06:17 +0000 (12:06 -0400)
committerRichard Levitte <levitte@openssl.org>
Tue, 18 Jun 2019 21:21:38 +0000 (23:21 +0200)
commit8908d18cb1020f225170dd9090206842dbb6bbe6
tree461d6e6e12596998c90804ff7487eec4aed56139
parent7f02a0932c8c182bc2f6320748d81e86d650c1a6
Change ERR_add_error_[v]data to append

The "add error data" functions now append to the current error.
Add a test for this.
Cleanup some of the ERR_put functions.
In the FIPS module, always append "(in the FIPS module)" to any errors.

Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9181)
crypto/err/err.c
doc/man3/ERR_put_error.pod
providers/fips/fipsprov.c
test/errtest.c