summaryrefslogtreecommitdiffstats
path: root/providers/common/der/der_digests_gen.c.in
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-05-19 10:43:49 +0200
committerRichard Levitte <levitte@openssl.org>2020-05-20 21:07:09 +0200
commita30027b680c4ccf69f0600b3a5406821b2d7fe0b (patch)
treece951c593645fe6287217dd7b1d8f7c0863004f3 /providers/common/der/der_digests_gen.c.in
parentc2f2db9b6fb75ca2d672bb50f4f1f5a23991a6c3 (diff)
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)
Diffstat (limited to 'providers/common/der/der_digests_gen.c.in')
-rw-r--r--providers/common/der/der_digests_gen.c.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/providers/common/der/der_digests_gen.c.in b/providers/common/der/der_digests_gen.c.in
new file mode 100644
index 0000000000..433c107420
--- /dev/null
+++ b/providers/common/der/der_digests_gen.c.in
@@ -0,0 +1,18 @@
+/*
+ * Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
+ *
+ * Licensed under the Apache License 2.0 (the "License"). You may not use
+ * this file except in compliance with the License. You can obtain a copy
+ * in the file LICENSE in the source distribution or at
+ * https://www.openssl.org/source/license.html
+ */
+
+#include "prov/der_digests.h"
+
+/* Well known OIDs precompiled */
+{-
+ $OUT = oids_to_c::process_leaves('providers/common/der/NIST.asn1',
+ 'providers/common/der/DIGESTS.asn1',
+ { dir => $config{sourcedir},
+ filter => \&oids_to_c::filter_to_C });
+-}