Blame SOURCES/nss-softokn-fix-ecc-post.patch

1a6f0f
diff -up ./nss/lib/freebl/fipsfreebl.c.ecc_post ./nss/lib/freebl/fipsfreebl.c
1a6f0f
--- ./nss/lib/freebl/fipsfreebl.c.ecc_post	2017-07-21 18:33:27.946809392 -0700
1a6f0f
+++ ./nss/lib/freebl/fipsfreebl.c	2017-07-21 18:34:09.065510689 -0700
1a6f0f
@@ -15,9 +15,7 @@
1a6f0f
 #include "secerr.h"
1a6f0f
 #include "prtypes.h"
1a6f0f
 
1a6f0f
-#ifdef NSS_ENABLE_ECC
1a6f0f
 #include "ec.h" /* Required for ECDSA */
1a6f0f
-#endif
1a6f0f
 
1a6f0f
 /*
1a6f0f
  * different platforms have different ways of calling and initial entry point
1a6f0f
@@ -1077,7 +1075,6 @@ rsa_loser:
1a6f0f
     return (SECFailure);
1a6f0f
 }
1a6f0f
 
1a6f0f
-#ifdef NSS_ENABLE_ECC
1a6f0f
 
1a6f0f
 static SECStatus
1a6f0f
 freebl_fips_ECDSA_Test(ECParams *ecparams,
1a6f0f
@@ -1275,8 +1272,6 @@ freebl_fips_ECDSA_PowerUpSelfTest()
1a6f0f
     return (SECSuccess);
1a6f0f
 }
1a6f0f
 
1a6f0f
-#endif /* NSS_ENABLE_ECC */
1a6f0f
-
1a6f0f
 static SECStatus
1a6f0f
 freebl_fips_DSA_PowerUpSelfTest(void)
1a6f0f
 {
1a6f0f
@@ -1559,13 +1554,11 @@ freebl_fipsPowerUpSelfTest(unsigned int
1a6f0f
         if (rv != SECSuccess)
1a6f0f
             return rv;
1a6f0f
 
1a6f0f
-#ifdef NSS_ENABLE_ECC
1a6f0f
         /* ECDSA Power-Up SelfTest(s). */
1a6f0f
         rv = freebl_fips_ECDSA_PowerUpSelfTest();
1a6f0f
 
1a6f0f
         if (rv != SECSuccess)
1a6f0f
             return rv;
1a6f0f
-#endif
1a6f0f
     }
1a6f0f
     /* Passed Power-Up SelfTest(s). */
1a6f0f
     return (SECSuccess);