libeay32.dll to be explicitly specified.
my $exe_ext="";
my $install_prefix="";
my $fipslibdir="/usr/local/ssl/lib";
+my $baseaddr="0xFB00000";
my $no_threads=0;
my $no_shared=1;
my $zlib=0;
{
$fipslibdir="$1";
}
+ elsif (/^--with-baseaddr=(.*)$/)
+ {
+ $baseaddr="$1";
+ }
elsif (/^--with-zlib-include=(.*)$/)
{
$withargs{"zlib-include"}="-I$1";
s/^LIBKRB5=.*/LIBKRB5=$withargs{"krb5-lib"}/;
s/^LIBZLIB=.*/LIBZLIB=$withargs{"zlib-lib"}/;
s/^FIPSLIBDIR=.*/FIPSLIBDIR=$fipslibdir/;
+ s/^BASEADDR=.*/BASEADDR=$baseaddr/;
s/^ZLIB_INCLUDE=.*/ZLIB_INCLUDE=$withargs{"zlib-include"}/;
s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
FIPSLIBDIR=/usr/local/ssl/lib
+# Shared library base address. Currently only used on Windows.
+#
+
+BASEADDR=
+
# When we're prepared to use shared libraries in the programs we link here
# we might set SHLIB_MARK to '$(SHARED_LIBS)'.
SHLIB_MARK=
my $fips_sha1_exe_path = "";
my $fipslibdir = "";
+my $baseaddr = "";
my $ex_l_libs = "";
if ($key eq "FIPSLIBDIR")
{ $fipslibdir=$val;}
+ if ($key eq "BASEADDR")
+ { $baseaddr=$val;}
+
if (!($_=<IN>))
{ $_="RELATIVE_DIRECTORY=FINISHED\n"; }
}
E_PREMAIN_DSO=fips_premain_dso
FIPSLIB_D=$fipslibdir
+BASEADDR=$baseaddr
FIPS_PREMAIN_SRC=$fips_premain_c_path
O_FIPSCANISTER=$fips_canister_path
FIPS_SHA1_EXE=$fips_sha1_exe_path
$rules.= &do_lib_rule("\$(CRYPTOOBJ) \$(O_FIPSCANISTER)",
"\$(O_CRYPTO)",
"$crypto",
- $shlib, "\$(SO_CRYPTO)", "0xFB00000");
+ $shlib, "\$(SO_CRYPTO)", "\$(BASEADDR)");
}
else
{