From: Dr. Stephen Henson Date: Wed, 12 Nov 2008 18:27:17 +0000 (+0000) Subject: Update mk1mf.pl for new JPAKE options. Update jpaketest.c for WIN32. X-Git-Tag: OpenSSL_0_9_8j~45 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a1bb2d6c2fa4433b71c5657a14e2c531cf7057fe;p=oweals%2Fopenssl.git Update mk1mf.pl for new JPAKE options. Update jpaketest.c for WIN32. --- diff --git a/crypto/jpake/jpaketest.c b/crypto/jpake/jpaketest.c index c3a83ba3d6..a7df76a4cf 100644 --- a/crypto/jpake/jpaketest.c +++ b/crypto/jpake/jpaketest.c @@ -1,6 +1,14 @@ #include #include +#ifndef OPENSSL_EXPERIMENTAL_JPAKE +int main(int argc, char *argv[]) +{ + printf("No RSA support\n"); + return(0); +} +#else + static void showbn(const char *name, const BIGNUM *bn) { fputs(name, stdout); @@ -174,3 +182,5 @@ int main(int argc, char **argv) return 0; } + +#endif diff --git a/util/mk1mf.pl b/util/mk1mf.pl index 2f7a0b34ed..632e617097 100755 --- a/util/mk1mf.pl +++ b/util/mk1mf.pl @@ -242,7 +242,7 @@ $cflags.=" -DOPENSSL_NO_ECDH" if $no_ecdh; $cflags.=" -DOPENSSL_NO_ENGINE" if $no_engine; $cflags.=" -DOPENSSL_NO_HW" if $no_hw; $cflags.=" -DOPENSSL_FIPS" if $fips; - +$cflags.=" -DOPENSSL_EXPERIMENTAL_JPAKE" if $jpake; $cflags.= " -DZLIB" if $zlib_opt; $cflags.= " -DZLIB_SHARED" if $zlib_opt == 2; @@ -1022,6 +1022,7 @@ sub var_add return("") if $no_ec && $dir =~ /\/ec/; return("") if $no_cms && $dir =~ /\/cms/; return("") if !$fips && $dir =~ /^fips/; + return("") if !$jpake && $dir =~ /\/jpake/; if ($no_des && $dir =~ /\/des/) { if ($val =~ /read_pwd/) @@ -1319,6 +1320,8 @@ sub read_options "fips" => \$fips, "fipscanisterbuild" => [\$fips, \$fipscanisterbuild], "fipsdso" => [\$fips, \$fipscanisterbuild, \$fipsdso], + "no-experimental-jpake" => 0, + "enable-experimental-jpake" => \$jpake, ); if (exists $valid_options{$_})