Skip to content

Commit

Permalink
util/perl/OpenSSL/ParseC.pm: correctly parse OSSL_DEPRECATEDIN_..._FOR
Browse files Browse the repository at this point in the history
Suggested by Matt Caswell.

Signed-off-by: Alexander Kanavin <[email protected]>

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Neil Horman <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#24307)
  • Loading branch information
Alexander Kanavin authored and t8m committed May 30, 2024
1 parent a5e93f1 commit 1fb51de
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util/perl/OpenSSL/ParseC.pm
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,15 @@ my @opensslchandlers = (
{ regexp => qr/OSSL_DEPRECATEDIN_\d+_\d+(?:_\d+)?\s+(.*)/,
massager => sub { return $1; },
},
{ regexp => qr/OSSL_DEPRECATEDIN_\d+_\d+(?:_\d+)?_FOR<<<.*>>>(.*)/,
massager => sub { return $1; },
},
{ regexp => qr/(.*?)\s+OSSL_DEPRECATEDIN_\d+_\d+(?:_\d+)?\s+(.*)/,
massager => sub { return "$1 $2"; },
},
{ regexp => qr/(.*?)\s+OSSL_DEPRECATEDIN_\d+_\d+(?:_\d+)?_FOR<<<.*>>>(.*)/,
massager => sub { return "$1 $2"; },
},

#####
# Core stuff
Expand Down

0 comments on commit 1fb51de

Please sign in to comment.