diff options
author | julien.pierre.bugs%sun.com <devnull@localhost> | 2005-12-23 03:14:36 +0000 |
---|---|---|
committer | julien.pierre.bugs%sun.com <devnull@localhost> | 2005-12-23 03:14:36 +0000 |
commit | f5241d7cf4104dade46c588efaf1ce78585fe90f (patch) | |
tree | bf71994bd8f3171f17f867e15bf06f0c01f39cdb | |
parent | 8c9e606152161db1e1e3d958c0070bb65bf7e0b1 (diff) | |
download | nss-hg-f5241d7cf4104dade46c588efaf1ce78585fe90f.tar.gz |
Fix the build busted by checkin for bug 318968
-rw-r--r-- | security/nss/cmd/fipstest/fipstest.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/security/nss/cmd/fipstest/fipstest.c b/security/nss/cmd/fipstest/fipstest.c index 8b59c1207..48d47f9f1 100644 --- a/security/nss/cmd/fipstest/fipstest.c +++ b/security/nss/cmd/fipstest/fipstest.c @@ -49,9 +49,13 @@ #include "../../lib/freebl/mpi/mpi.h" #endif +#ifdef NSS_ENABLE_ECC + extern SECStatus EC_DecodeParams(const SECItem *encodedParams, ECParams **ecparams); +#endif + #define ENCRYPT 1 #define DECRYPT 0 #define BYTE unsigned char @@ -2315,6 +2319,8 @@ static CurveNameTagPair nameTagPair[] = { "sect131r2", SEC_OID_SECG_EC_SECT131R2}, }; +#ifdef NSS_ENABLE_ECC + static SECKEYECParams * getECParams(const char *curve) { @@ -2903,6 +2909,8 @@ loser: fclose(ecdsareq); } +#endif + void do_random() { int i, j, k = 0; @@ -3374,6 +3382,12 @@ int main(int argc, char **argv) } else if (strcmp(argv[1], "dss") == 0) { dss_test(argv[2], argv[3]); /*************/ + /* RNG */ + /*************/ + } else if (strcmp(argv[1], "rng") == 0) { + do_random(); +#ifdef NSS_ENABLE_ECC + /*************/ /* ECDSA */ /*************/ } else if (strcmp(argv[1], "ecdsa") == 0) { @@ -3391,11 +3405,7 @@ int main(int argc, char **argv) /* Signature Verification Test */ ecdsa_sigver_test(argv[3]); } - /*************/ - /* RNG */ - /*************/ - } else if (strcmp(argv[1], "rng") == 0) { - do_random(); +#endif } return 0; } |