]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
OpenSSL::ParseC: handle OSSL_CORE_MAKE_FUNC
authorRichard Levitte <levitte@openssl.org>
Mon, 5 Oct 2020 05:55:14 +0000 (07:55 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 12 Oct 2020 06:29:31 +0000 (08:29 +0200)
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13074)

util/perl/OpenSSL/ParseC.pm

index e08d4637b3deee8fabd2a6610fa0e96604f7a3d4..5cc5f28bf32a6d5f6887b6bc61aacd1b743b8120 100644 (file)
@@ -282,6 +282,20 @@ EOF
       massager => sub { return "$1 $2"; },
     },
 
+    #####
+    # Core stuff
+
+    # OSSL_CORE_MAKE_FUNC is a macro to create the necessary data and inline
+    # function the libcrypto<->provider interface
+    { regexp   => qr/OSSL_CORE_MAKE_FUNC<<<\((.*?),(.*?),(.*?)\)>>>/,
+      massager => sub {
+          return (<<"EOF");
+typedef $1 OSSL_FUNC_$2_fn$3;
+static ossl_inline OSSL_FUNC_$2_fn *OSSL_FUNC_$2(const OSSL_DISPATCH *opf);
+EOF
+      },
+    },
+
     #####
     # LHASH stuff