Make sure KDF reason codes are conserved in their current state
authorRichard Levitte <levitte@openssl.org>
Sun, 10 Nov 2019 12:07:46 +0000 (13:07 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 12 Nov 2019 12:30:35 +0000 (13:30 +0100)
commit4d301427a96010468da2bb67bf1025fa8d886ab9
tree48d9d375970cb7c7c056a814c4066ada8c1491cc
parent905b097fd586ed0279aee05b5961224212014ec9
Make sure KDF reason codes are conserved in their current state

Because KDF errors are deprecated and only conserved for backward
compatibilty, we must make sure that they remain untouched.  A simple
way to signal that is by modifying crypto/err/openssl.ec and replace
the main header file (include/openssl/kdf.h in this case) with 'NONE',
while retaining the error table file (crypto/kdf/kdf_err.c).

util/mkerr.pl is modified to silently ignore anything surrounding a
conserved lib when such a .ec line is found.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10368)
crypto/err/openssl.ec
util/mkerr.pl