Don't give dependency warning for fips builds.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 11 Apr 2011 00:22:42 +0000 (00:22 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 11 Apr 2011 00:22:42 +0000 (00:22 +0000)
Give error for "make depend" in restricted tarball builds.

Document how restricted tarballs work.

Configure
Makefile.fips
README.FIPS

index eca6dcf8e9724f524e3ff9562541875d8b4e0421..b30e47c161323d110bd20ce4c6197c1293280bab 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1969,7 +1969,7 @@ EOF
            &dofile("tools/c_rehash",'/usr/local/bin/perl','^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";',  '^my \$prefix;$', 'my $prefix = "' . $prefix . '";');
            &dofile("apps/CA.pl",'/usr/local/bin/perl','^#!/', '#!%s');
        }
-       if ($depflags ne $default_depflags && !$make_depend) {
+       if ($depflags ne $default_depflags && !$make_depend && $fipscanisteronly != 2) {
                print <<EOF;
 
 Since you've disabled or enabled at least one algorithm, you need to do
index 8fc9ddc6579275bbbf9363e8b9c9797029f72507..62a7fee7b9ff5c168f9c66d730b0598589a25c83 100644 (file)
@@ -540,7 +540,7 @@ report:
        @$(PERL) util/selftest.pl
 
 depend:
-       @set -e; target=depend; $(RECURSIVE_BUILD_CMD)
+       @echo make depend not supported ; false
 
 lint:
        @set -e; target=lint; $(RECURSIVE_BUILD_CMD)
index 6c5250cf44f882581a5bdac09ab22d390596aa0e..a30adea8c9b540ca85fdde7e77d10339f8e7c8f8 100644 (file)
@@ -46,6 +46,28 @@ with FIPS or fips. One way to check with GNU nm is:
 
 nm -g --defined-only fips/fipscanister.o | grep -v -i fips
 
+Restricted tarball tests.
+
+The validated module will have its own tarball containing sufficient code to
+build fipscanister.o and the associated algorithm tests. You can create a
+similar tarball yourself for testing purposes using the commands below.
+
+Standard restricted tarball:
+
+make -f Makefile.fips dist
+
+Prime field field only ECC tarball:
+
+make NOEC2M=1 -f Makefile.fips dist
+
+Once you've created the tarball extract into a fresh directory and do:
+
+./config
+make
+
+You can then run the algorithm tests as above. This build automatically uses
+fipscanisteronly and -DOPENSSL_FIPSYMS and no-ec2m as appropriate.
+
 Known issues:
 
 Algorithm tests are pre-2011.