From d406f0fe679a571af3f2cfd48b4d830b3d743694 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 5 Oct 2020 07:55:14 +0200 Subject: [PATCH] OpenSSL::ParseC: handle OSSL_CORE_MAKE_FUNC Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/13074) --- util/perl/OpenSSL/ParseC.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/util/perl/OpenSSL/ParseC.pm b/util/perl/OpenSSL/ParseC.pm index e08d4637b3d..5cc5f28bf32 100644 --- a/util/perl/OpenSSL/ParseC.pm +++ b/util/perl/OpenSSL/ParseC.pm @@ -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 -- 2.47.3