[openssl-dev] [openssl.org #3731] BUG darwin FIPS openssl-1.0.2 ssl/t1_lib.c line 472

Paul Nelson via RT rt at openssl.org
Fri Mar 6 15:02:51 UTC 2015


OS is darwin
openssl version is 1.0.2

Bug only happens when building the FIPS version of SSL.  In t1_lib.c at line 472 the assignment to *pcurveslen should be to pcurveslen instead.

Here is the diff for the fix:

diff -ur openssl-1.0.2/ssl/t1_lib.c openssl-1.0.2_patched/ssl/t1_lib.c
--- openssl-1.0.2/ssl/t1_lib.c  2015-01-22 08:58:32.000000000 -0600
+++ openssl-1.0.2_patched/ssl/t1_lib.c  2015-03-05 16:40:35.000000000 -0600
@@ -470,7 +470,7 @@
 # ifdef OPENSSL_FIPS
             if (FIPS_mode()) {
                 *pcurves = fips_curves_default;
-                *pcurveslen = sizeof(fips_curves_default);
+                pcurveslen = sizeof(fips_curves_default);
             } else
 # endif
             {




More information about the openssl-dev mailing list