apps/progs.pl: add back the INCLUDE_FUNCTION_TABLE wrapper
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
parent
37bbfd4837
commit
ad2c5ed74e
@ -67,6 +67,8 @@ foreach (@ARGV) {
|
|||||||
printf "extern OPTIONS %s_options[];\n", $_;
|
printf "extern OPTIONS %s_options[];\n", $_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print "\n#ifdef INCLUDE_FUNCTION_TABLE\n";
|
||||||
|
print "static FUNCTION functions[] = {\n";
|
||||||
my %cmd_disabler = (
|
my %cmd_disabler = (
|
||||||
ciphers => "sock",
|
ciphers => "sock",
|
||||||
genrsa => "rsa",
|
genrsa => "rsa",
|
||||||
@ -78,7 +80,6 @@ my %cmd_disabler = (
|
|||||||
ecparam => "ec",
|
ecparam => "ec",
|
||||||
pkcs12 => "des",
|
pkcs12 => "des",
|
||||||
);
|
);
|
||||||
print "\nstatic FUNCTION functions[] = {\n";
|
|
||||||
foreach my $cmd (@ARGV) {
|
foreach my $cmd (@ARGV) {
|
||||||
my $str=" { FT_general, \"$cmd\", ${cmd}_main, ${cmd}_options },\n";
|
my $str=" { FT_general, \"$cmd\", ${cmd}_main, ${cmd}_options },\n";
|
||||||
if ($cmd =~ /^s_/) {
|
if ($cmd =~ /^s_/) {
|
||||||
@ -157,3 +158,4 @@ foreach my $cmd (
|
|||||||
}
|
}
|
||||||
|
|
||||||
print " { 0, NULL, NULL}\n};\n";
|
print " { 0, NULL, NULL}\n};\n";
|
||||||
|
print "#endif\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user