diff options
author | Richard Levitte <levitte@openssl.org> | 2016-03-19 20:03:56 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-03-19 22:19:12 +0100 |
commit | ad2c5ed74ed16018779681ea603c96cb7b2b02fa (patch) | |
tree | 565e56f6d9b53ca7dce7def85878d68bd8352082 /apps/progs.pl | |
parent | 37bbfd48377d7e952e2f293e406fd7fe48fa735c (diff) |
apps/progs.pl: add back the INCLUDE_FUNCTION_TABLE wrapper
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'apps/progs.pl')
-rw-r--r-- | apps/progs.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/progs.pl b/apps/progs.pl index 50b6cee53f..669e82b940 100644 --- a/apps/progs.pl +++ b/apps/progs.pl @@ -67,6 +67,8 @@ foreach (@ARGV) { printf "extern OPTIONS %s_options[];\n", $_; } +print "\n#ifdef INCLUDE_FUNCTION_TABLE\n"; +print "static FUNCTION functions[] = {\n"; my %cmd_disabler = ( ciphers => "sock", genrsa => "rsa", @@ -78,7 +80,6 @@ my %cmd_disabler = ( ecparam => "ec", pkcs12 => "des", ); -print "\nstatic FUNCTION functions[] = {\n"; foreach my $cmd (@ARGV) { my $str=" { FT_general, \"$cmd\", ${cmd}_main, ${cmd}_options },\n"; if ($cmd =~ /^s_/) { @@ -157,3 +158,4 @@ foreach my $cmd ( } print " { 0, NULL, NULL}\n};\n"; +print "#endif\n"; |