summaryrefslogtreecommitdiffstats
path: root/crypto/params_idx.c.in
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2023-05-05 11:52:58 +1000
committerPauli <pauli@openssl.org>2023-06-02 15:13:20 +1000
commite84b5fcc1b1d599173eaab07790c06a532981e50 (patch)
treee0984d67a638a6ba958d99d41182db126b7558f1 /crypto/params_idx.c.in
parentcee0628e0d53be82bd644ce258c3d3e90e64eced (diff)
params: provide a faster TRIE based param lookup.
The separate file is a Perl script that generates the appropriate define directives for inclusion in core_names.h. By having this separation it will be possible to prebuild data structures to give faster access when looking up parameters by name. Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20935)
Diffstat (limited to 'crypto/params_idx.c.in')
-rw-r--r--crypto/params_idx.c.in21
1 files changed, 21 insertions, 0 deletions
diff --git a/crypto/params_idx.c.in b/crypto/params_idx.c.in
new file mode 100644
index 0000000000..f04939b597
--- /dev/null
+++ b/crypto/params_idx.c.in
@@ -0,0 +1,21 @@
+/*
+ * {- join("\n * ", @autowarntext) -}
+ *
+ * Copyright 2023 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
+ */
+{-
+use OpenSSL::paramnames qw(produce_decoder);
+-}
+
+#include "internal/e_os.h"
+#include "internal/param_names.h"
+#include <string.h>
+
+/* Machine generated TRIE -- generated by util/perl/OpenSSL/paramnames.pm */
+{- produce_decoder(); -}
+/* End of TRIE */