eccCaKeyFile in RSA/ECC test

This commit is contained in:
Takashi Kojo
2017-03-20 13:46:26 +09:00
parent 52215b3ecf
commit e35489fd75

View File

@ -5329,7 +5329,8 @@ byte GetEntropy(ENTROPY_CMD cmd, byte* out)
static const char* eccPubKeyDerFile = CERT_PREFIX "ecc-public-key.der"; static const char* eccPubKeyDerFile = CERT_PREFIX "ecc-public-key.der";
#endif #endif
#if defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN) #if defined(WOLFSSL_CERT_GEN) || defined(WOLFSSL_KEY_GEN)
static const char* eccCaKeyFile = CERT_PREFIX "ecc-key.der"; static const char* eccCaKeyFile = CERT_ROOT "ecc-key.der";
static const char* eccCaKeyTemp = CERT_PREFIX "ecc-key.der";
#endif #endif
#if defined(WOLFSSL_CERT_GEN) || \ #if defined(WOLFSSL_CERT_GEN) || \
(defined(WOLFSSL_CERT_EXT) && defined(WOLFSSL_TEST_CERT)) (defined(WOLFSSL_CERT_EXT) && defined(WOLFSSL_TEST_CERT))
@ -9767,7 +9768,7 @@ static int ecc_test_key_gen(WC_RNG* rng, int keySize)
} }
#ifndef NO_FILESYSTEM #ifndef NO_FILESYSTEM
keyFile = fopen(eccCaKeyFile, "wb"); keyFile = fopen(eccCaKeyTemp, "wb");
if (!keyFile) { if (!keyFile) {
ERROR_OUT(-1025, done); ERROR_OUT(-1025, done);
} }