提交 a8b07aa4 编写于 作者: R Richard Levitte

First of all, with the current macros, we should never get any

type-specific stack function.  Second, even when we don't build any of
those functions, DECLARE_STACK_OF lines should not find themselves
into $def.
上级 3f39e5ae
...@@ -49,7 +49,7 @@ foreach (@ARGV, split(/ /, $options)) ...@@ -49,7 +49,7 @@ foreach (@ARGV, split(/ /, $options))
$do_update=1 if $_ eq "update"; $do_update=1 if $_ eq "update";
$do_ctest=1 if $_ eq "ctest"; $do_ctest=1 if $_ eq "ctest";
$rsaref=1 if $_ eq "rsaref"; $rsaref=1 if $_ eq "rsaref";
$safe_stack_def=1 if $_ eq "-DDEBUG_SAFESTACK"; #$safe_stack_def=1 if $_ eq "-DDEBUG_SAFESTACK";
if (/^no-rc2$/) { $no_rc2=1; } if (/^no-rc2$/) { $no_rc2=1; }
elsif (/^no-rc4$/) { $no_rc4=1; } elsif (/^no-rc4$/) { $no_rc4=1; }
...@@ -270,7 +270,10 @@ sub do_defs ...@@ -270,7 +270,10 @@ sub do_defs
} elsif (/^\#/) { } elsif (/^\#/) {
next; next;
} }
if ($safe_stack_def && if (!$safe_stack_def &&
/^\s*DECLARE_STACK_OF\s*\(\s*(\w*)\s*\)/) {
next;
} elsif ($safe_stack_def &&
/^\s*DECLARE_STACK_OF\s*\(\s*(\w*)\s*\)/) { /^\s*DECLARE_STACK_OF\s*\(\s*(\w*)\s*\)/) {
$funcs{"sk_${1}_new"} = 1; $funcs{"sk_${1}_new"} = 1;
$funcs{"sk_${1}_new_null"} = 1; $funcs{"sk_${1}_new_null"} = 1;
...@@ -291,6 +294,9 @@ sub do_defs ...@@ -291,6 +294,9 @@ sub do_defs
$funcs{"sk_${1}_shift"} = 1; $funcs{"sk_${1}_shift"} = 1;
$funcs{"sk_${1}_pop"} = 1; $funcs{"sk_${1}_pop"} = 1;
$funcs{"sk_${1}_sort"} = 1; $funcs{"sk_${1}_sort"} = 1;
} if (!$safe_stack_def &&
/^\s*DECLARE_ASN1_SET_OF\s*\(\s*(\w*)\s*\)/) {
next;
} elsif ($safe_stack_def && } elsif ($safe_stack_def &&
/^\s*DECLARE_ASN1_SET_OF\s*\(\s*(\w*)\s*\)/) { /^\s*DECLARE_ASN1_SET_OF\s*\(\s*(\w*)\s*\)/) {
$funcs{"d2i_ASN1_SET_OF_${1}"} = 1; $funcs{"d2i_ASN1_SET_OF_${1}"} = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册