util/mkerr.pl: make it not depend on the function code
authorRichard Levitte <levitte@openssl.org>
Wed, 4 Sep 2019 19:45:56 +0000 (21:45 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 12 Sep 2019 15:59:52 +0000 (17:59 +0200)
commit0cd1b144f99e9aabea15a158bd567cba81592039
treefbe4e57019f33d5a8006b10fdb3339fada6bb33a
parent6beb8b39ba8e4cb005c1fcd2586ba19e17f04b95
util/mkerr.pl: make it not depend on the function code

The output C code was made to use ERR_func_error_string() to see if a
string table was already loaded or not.  Since this function returns
NULL always, this check became useless.

Change it to use ERR_reason_error_string() instead, as there's no
reason to believe we will get rid of reason strings, ever.

To top it off, we rebuild all affected C sources.

Fixes #9756

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9756)
37 files changed:
crypto/asn1/asn1_err.c
crypto/async/async_err.c
crypto/bio/bio_err.c
crypto/bn/bn_err.c
crypto/buffer/buf_err.c
crypto/cmp/cmp_err.c
crypto/cms/cms_err.c
crypto/comp/comp_err.c
crypto/conf/conf_err.c
crypto/cpt_err.c
crypto/crmf/crmf_err.c
crypto/ct/ct_err.c
crypto/dh/dh_err.c
crypto/dsa/dsa_err.c
crypto/dso/dso_err.c
crypto/ec/ec_err.c
crypto/engine/eng_err.c
crypto/ess/ess_err.c
crypto/evp/evp_err.c
crypto/objects/obj_err.c
crypto/ocsp/ocsp_err.c
crypto/pem/pem_err.c
crypto/pkcs12/pk12err.c
crypto/pkcs7/pkcs7err.c
crypto/property/property_err.c
crypto/rand/rand_err.c
crypto/rsa/rsa_err.c
crypto/sm2/sm2_err.c
crypto/store/store_err.c
crypto/ts/ts_err.c
crypto/ui/ui_err.c
crypto/x509/v3err.c
crypto/x509/x509_err.c
include/openssl/rsaerr.h
providers/common/provider_err.c
ssl/ssl_err.c
util/mkerr.pl