Modify the ERR init functions to use the internal ERR string loaders
authorRichard Levitte <levitte@openssl.org>
Thu, 12 Nov 2020 08:19:24 +0000 (09:19 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 24 Nov 2020 14:21:44 +0000 (15:21 +0100)
commitf5a46ed7fe66520c6f1016eb96e96cb241ba229f
treeaad7f22a6fbca9e545fa6f3af18b73c97059c6e1
parent9343d3fe3bc5a4a2d6461c640d34a96e950177ad
Modify the ERR init functions to use the internal ERR string loaders

This deprecates all the ERR_load_ functions, and moves their definition to
separate C source files that can easily be removed when those functions are
finally removed.

This also reduces include/openssl/kdferr.h to include cryptoerr_legacy.h,
moves the declaration of ERR_load_ERR_strings() from include/openssl/err.h
to include/openssl/cryptoerr_legacy.h, and finally removes the declaration
of ERR_load_DSO_strings(), which was entirely internal anyway.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13390)
19 files changed:
CHANGES.md
Configurations/unix-Makefile.tmpl
NEWS.md
crypto/err/build.info
crypto/err/err.c
crypto/err/err_all.c
crypto/err/err_all_legacy.c [new file with mode: 0644]
include/crypto/err.h
include/internal/dso.h
include/openssl/cryptoerr_legacy.h [new file with mode: 0644]
include/openssl/err.h.in
include/openssl/kdferr.h
include/openssl/sslerr_legacy.h [new file with mode: 0644]
ssl/build.info
ssl/ssl_err_legacy.c [new file with mode: 0644]
ssl/ssl_init.c
util/libcrypto.num
util/libssl.num
util/missingcrypto.txt