Refactor the provider side DER constants and writers
authorRichard Levitte <levitte@openssl.org>
Tue, 19 May 2020 08:43:49 +0000 (10:43 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 20 May 2020 19:07:09 +0000 (21:07 +0200)
commita30027b680c4ccf69f0600b3a5406821b2d7fe0b
treece951c593645fe6287217dd7b1d8f7c0863004f3
parentc2f2db9b6fb75ca2d672bb50f4f1f5a23991a6c3
Refactor the provider side DER constants and writers

This splits up all the providers/common/der/*.c.in so the generated
portion is on its own and all related DER writing routines are in
their own files.  This also ensures that the DIGEST consstants aren't
reproduced in several files (resulting in symbol clashes).

Finally, the production of OID macros is moved to the generated header
files, allowing other similar macros, or DER constant arrays, to be
built on top of them.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11868)
24 files changed:
providers/common/der/DIGESTS.asn1
providers/common/der/RSA.asn1
providers/common/der/build.info
providers/common/der/der_digests.c.in [deleted file]
providers/common/der/der_digests_gen.c.in [new file with mode: 0644]
providers/common/der/der_dsa.c.in [deleted file]
providers/common/der/der_dsa.h.in
providers/common/der/der_dsa_gen.c.in [new file with mode: 0644]
providers/common/der/der_dsa_key.c [new file with mode: 0644]
providers/common/der/der_dsa_sig.c [new file with mode: 0644]
providers/common/der/der_ec.c.in [deleted file]
providers/common/der/der_ec.h.in
providers/common/der/der_ec_gen.c.in [new file with mode: 0644]
providers/common/der/der_ec_key.c [new file with mode: 0644]
providers/common/der/der_ec_sig.c [new file with mode: 0644]
providers/common/der/der_rsa.c.in [deleted file]
providers/common/der/der_rsa.h.in
providers/common/der/der_rsa_gen.c.in [new file with mode: 0644]
providers/common/der/der_rsa_key.c [new file with mode: 0644]
providers/common/der/der_rsa_sig.c [new file with mode: 0644]
providers/common/der/oids_to_c.pm
providers/implementations/signature/dsa.c
providers/implementations/signature/ecdsa.c
providers/implementations/signature/rsa.c