~ubuntu-branches/ubuntu/lucid/openssl/lucid-proposed

« back to all changes in this revision

Viewing changes to util/mkdef.pl

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-06-13 18:15:46 UTC
  • mto: (11.1.5 squeeze)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20090613181546-vbfntai3b009dl1u
Tags: upstream-0.9.8k
ImportĀ upstreamĀ versionĀ 0.9.8k

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
my $safe_stack_def = 0;
80
80
 
81
81
my @known_platforms = ( "__FreeBSD__", "PERL5", "NeXT",
82
 
                        "EXPORT_VAR_AS_FUNCTION" );
 
82
                        "EXPORT_VAR_AS_FUNCTION", "ZLIB", "OPENSSL_FIPS"); 
83
83
my @known_ossl_platforms = ( "VMS", "WIN16", "WIN32", "WINNT", "OS2" );
84
84
my @known_algorithms = ( "RC2", "RC4", "RC5", "IDEA", "DES", "BF",
85
85
                         "CAST", "MD2", "MD4", "MD5", "SHA", "SHA0", "SHA1",
98
98
                         "RFC3779",
99
99
                         # TLS extension support
100
100
                         "TLSEXT",
 
101
                         # CMS
 
102
                         "CMS",
 
103
                         # CryptoAPI Engine
 
104
                         "CAPIENG",
 
105
                         # JPAKE
 
106
                         "JPAKE",
101
107
                         # Deprecated functions
102
108
                         "DEPRECATED" );
103
109
 
118
124
my $no_ec; my $no_ecdsa; my $no_ecdh; my $no_engine; my $no_hw; my $no_camellia;
119
125
my $no_seed;
120
126
my $no_fp_api; my $no_static_engine; my $no_gmp; my $no_deprecated;
121
 
my $no_rfc3779; my $no_tlsext;
 
127
my $no_rfc3779; my $no_tlsext; my $no_cms; my $no_capieng; my $no_jpake;
 
128
my $fips;
122
129
 
123
130
 
124
131
foreach (@ARGV, split(/ /, $options))
140
147
        }
141
148
        $VMS=1 if $_ eq "VMS";
142
149
        $OS2=1 if $_ eq "OS2";
 
150
        $fips=1 if /^fips/;
 
151
 
 
152
        if ($_ eq "zlib" || $_ eq "zlib-dynamic"
 
153
                         || $_ eq "enable-zlib-dynamic") {
 
154
                $zlib = 1;
 
155
        }
143
156
 
144
157
        $do_ssl=1 if $_ eq "ssleay";
145
158
        if ($_ eq "ssl") {
198
211
        elsif (/^no-gmp$/)      { $no_gmp=1; }
199
212
        elsif (/^no-rfc3779$/)  { $no_rfc3779=1; }
200
213
        elsif (/^no-tlsext$/)   { $no_tlsext=1; }
 
214
        elsif (/^no-cms$/)      { $no_cms=1; }
 
215
        elsif (/^no-capieng$/)  { $no_capieng=1; }
 
216
        elsif (/^no-jpake$/)    { $no_jpake=1; }
201
217
        }
202
218
 
203
219
 
293
309
$crypto.=" crypto/tmdiff.h";
294
310
$crypto.=" crypto/store/store.h";
295
311
$crypto.=" crypto/pqueue/pqueue.h";
 
312
$crypto.=" crypto/cms/cms.h";
 
313
$crypto.=" crypto/jpake/jpake.h";
 
314
$crypto.=" fips/fips.h fips/rand/fips_rand.h";
296
315
 
297
316
my $symhacks="crypto/symhacks.h";
298
317
 
1078
1097
                        if ($keyword eq "EXPORT_VAR_AS_FUNCTION" && ($VMSVAX || $W32 || $W16)) {
1079
1098
                                return 1;
1080
1099
                        }
 
1100
                        if ($keyword eq "OPENSSL_FIPS" && $fips) {
 
1101
                                return 1;
 
1102
                        }
 
1103
                        if ($keyword eq "ZLIB" && $zlib) { return 1; }
1081
1104
                        return 0;
1082
1105
                } else {
1083
1106
                        # algorithms
1120
1143
                        if ($keyword eq "GMP" && $no_gmp) { return 0; }
1121
1144
                        if ($keyword eq "RFC3779" && $no_rfc3779) { return 0; }
1122
1145
                        if ($keyword eq "TLSEXT" && $no_tlsext) { return 0; }
 
1146
                        if ($keyword eq "CMS" && $no_cms) { return 0; }
 
1147
                        if ($keyword eq "CAPIENG" && $no_capieng) { return 0; }
 
1148
                        if ($keyword eq "JPAKE" && $no_jpake) { return 0; }
1123
1149
                        if ($keyword eq "DEPRECATED" && $no_deprecated) { return 0; }
1124
1150
 
1125
1151
                        # Nothing recognise as true