X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=util%2Fmkstack.pl;h=64371386837d184d70d492c6df8e5b3eff7f7d50;hp=ec76351bcae10068f74263471edba8a0b50773a1;hb=7ef8206859f9a52f48e817c023c744fe00e82c5d;hpb=438fa2fdc1f7fe01579ce1a62fe114c8475136f9 diff --git a/util/mkstack.pl b/util/mkstack.pl index ec76351bca..6437138683 100755 --- a/util/mkstack.pl +++ b/util/mkstack.pl @@ -31,12 +31,17 @@ foreach $file (@source) { while() { if (/^DECLARE_STACK_OF\(([^)]+)\)/) { push @stacklst, $1; + } if (/^DECLARE_ASN1_SET_OF\(([^)]+)\)/) { + push @asn1setlst, $1; + } if (/^DECLARE_PKCS12_STACK_OF\(([^)]+)\)/) { + push @p12stklst, $1; } } close(IN); } + my $old_stackfile = ""; my $new_stackfile = ""; my $inside_block = 0; @@ -79,6 +84,26 @@ while() { #define sk_${type_thing}_shift(st) SKM_sk_shift($type_thing, (st)) #define sk_${type_thing}_pop(st) SKM_sk_pop($type_thing, (st)) #define sk_${type_thing}_sort(st) SKM_sk_sort($type_thing, (st)) +EOF + } + foreach $type_thing (@asn1setlst) { + $new_stackfile .= <