FIPS build fixes.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 22 Jan 2015 19:43:27 +0000 (19:43 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 23 Jan 2015 00:12:39 +0000 (00:12 +0000)
PR#3673

Reviewed-by: Tim Hudson <tjh@openssl.org>
crypto/ec/ec_curve.c
crypto/ec/ec_cvt.c
ssl/t1_lib.c

index 023bd0ec66df8a0202d91a86cb871f440eff8253..6dbe9d8258de4318a6de42de6f12f070830f9d83 100644 (file)
  *
  */
 
-#ifdef OPENSSL_FIPS
-# include <openssl/fips.h>
-#endif
-
 #include <string.h>
 #include "ec_lcl.h"
 #include <openssl/err.h>
 #include <openssl/obj_mac.h>
 #include <openssl/opensslconf.h>
 
+#ifdef OPENSSL_FIPS
+# include <openssl/fips.h>
+#endif
+
 typedef struct {
     int field_type,             /* either NID_X9_62_prime_field or
                                  * NID_X9_62_characteristic_two_field */
index 73cc123e8aef6ced47e6020a75ac8b8fa3dcafb3..5a832ba1cfa4a1fccb951d2bc972e094e0328ca7 100644 (file)
  *
  */
 
+#include <openssl/err.h>
+#include "ec_lcl.h"
+
 #ifdef OPENSSL_FIPS
 # include <openssl/fips.h>
 #endif
 
-#include <openssl/err.h>
-#include "ec_lcl.h"
-
 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
                                  const BIGNUM *b, BN_CTX *ctx)
 {
index 72be01dd6334f2b5fcba143bf2614ef38eb7e4cf..90ef867931487c56e98f3b0d250e97b0c6e11f00 100644 (file)
@@ -470,7 +470,7 @@ static int tls1_get_curvelist(SSL *s, int sess,
 # ifdef OPENSSL_FIPS
             if (FIPS_mode()) {
                 *pcurves = fips_curves_default;
-                *pcurveslen = sizeof(fips_curves_default);
+                pcurveslen = sizeof(fips_curves_default);
             } else
 # endif
             {