From: Richard Levitte Date: Mon, 5 Oct 2020 05:55:14 +0000 (+0200) Subject: OpenSSL::ParseC: handle OSSL_CORE_MAKE_FUNC X-Git-Tag: openssl-3.0.0-alpha7~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d406f0fe679a571af3f2cfd48b4d830b3d743694;p=thirdparty%2Fopenssl.git OpenSSL::ParseC: handle OSSL_CORE_MAKE_FUNC Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/13074) --- 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