summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2021-12-18 19:55:26 +0000
committerschwarze <>2021-12-18 19:55:26 +0000
commitae6969cf35707478148b96dda1cbedaefc5ffb96 (patch)
treee3c611576be8880cf2b6cf7de41fcf98f44f461d
parenta5445a7461ee94eb225205523915482194d3341f (diff)
downloadopenbsd-ae6969cf35707478148b96dda1cbedaefc5ffb96.tar.gz
openbsd-ae6969cf35707478148b96dda1cbedaefc5ffb96.tar.bz2
openbsd-ae6969cf35707478148b96dda1cbedaefc5ffb96.zip
support processing <openssl/bn.h>
-rwxr-xr-xsrc/regress/lib/libcrypto/man/check_complete.pl27
1 files changed, 24 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/man/check_complete.pl b/src/regress/lib/libcrypto/man/check_complete.pl
index 3e53a15443..8e69126894 100755
--- a/src/regress/lib/libcrypto/man/check_complete.pl
+++ b/src/regress/lib/libcrypto/man/check_complete.pl
@@ -26,8 +26,12 @@ my %internal = (
26 ASN1_STRING_FLAG_MSTRING ASN1_STRING_FLAG_NDEF 26 ASN1_STRING_FLAG_MSTRING ASN1_STRING_FLAG_NDEF
27 CHARTYPE_FIRST_ESC_2253 CHARTYPE_LAST_ESC_2253 CHARTYPE_PRINTABLESTRING 27 CHARTYPE_FIRST_ESC_2253 CHARTYPE_LAST_ESC_2253 CHARTYPE_PRINTABLESTRING
28 )], 28 )],
29 bn => [qw(
30 BN_MUL_COMBA BN_RECURSION BN_SQR_COMBA
31 )],
29 objects => [qw( 32 objects => [qw(
30 OBJ_bsearch OBJ_bsearch_ OBJ_bsearch_ex OBJ_bsearch_ex_ 33 OBJ_bsearch OBJ_bsearch_ OBJ_bsearch_ex OBJ_bsearch_ex_
34 USE_OBJ_MAC
31 )], 35 )],
32 x509_vfy => [qw( 36 x509_vfy => [qw(
33 X509_VERIFY_PARAM_ID 37 X509_VERIFY_PARAM_ID
@@ -214,13 +218,13 @@ try_again:
214 /^DECLARE_STACK_OF\(\w+\)$/ || 218 /^DECLARE_STACK_OF\(\w+\)$/ ||
215 /^TYPEDEF_D2I2D_OF\(\w+\);$/ || 219 /^TYPEDEF_D2I2D_OF\(\w+\);$/ ||
216 /^#define HEADER_\w+_H$/ || 220 /^#define HEADER_\w+_H$/ ||
217 /^#define USE_OBJ_MAC$/ ||
218 /^#endif$/ || 221 /^#endif$/ ||
219 /^#else$/ || 222 /^#else$/ ||
220 /^extern\s+const\s+ASN1_ITEM\s+\w+_it;$/ || 223 /^extern\s+const\s+ASN1_ITEM\s+\w+_it;$/ ||
221 /^#include\s/ || 224 /^#include\s/ ||
222 /^#ifn?def\s/ || 225 /^#ifn?def\s/ ||
223 /^#if defined/) { 226 /^#if !?defined/ ||
227 /^#undef\s+BN_LLONG$/) {
224 print "-- $line\n" if $verbose; 228 print "-- $line\n" if $verbose;
225 next; 229 next;
226 } 230 }
@@ -255,7 +259,7 @@ try_again:
255 print "D- $line\n" if $verbose; 259 print "D- $line\n" if $verbose;
256 next; 260 next;
257 } 261 }
258 if ($id =~ /^(?:ASN1|X509(?:V3)?)_[FR]_\w+$/) { 262 if ($id =~ /^(?:ASN1|BN|X509(?:V3)?)_[FR]_\w+$/) {
259 print "D- $line\n" if $verbose; 263 print "D- $line\n" if $verbose;
260 next; 264 next;
261 } 265 }
@@ -302,6 +306,19 @@ try_again:
302 } 306 }
303 next; 307 next;
304 } 308 }
309 if (my ($id) = /^#\s*define\s+(\w+)$/) {
310 if ($undoc{$id}) {
311 print "-- $line\n" if $verbose;
312 delete $undoc{$id};
313 next;
314 }
315 if ($verbose) {
316 print "XX $line\n";
317 } else {
318 warn "not found: #define $id";
319 }
320 next;
321 }
305 322
306 # Handle global variables. 323 # Handle global variables.
307 324
@@ -408,6 +425,10 @@ try_again:
408 } 425 }
409 next; 426 next;
410 } 427 }
428 if (/^int$/) {
429 $_ .= ' ' . <$in_fh>;
430 goto try_again;
431 }
411 if (/ \*$/) { 432 if (/ \*$/) {
412 $_ .= <$in_fh>; 433 $_ .= <$in_fh>;
413 goto try_again; 434 goto try_again;