From 292a17fff86786df41af7117405f057d28160786 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 28 Feb 2017 11:31:52 +1000 Subject: [PATCH] wc_EccPublicKeyDecode changes from review --- wolfcrypt/src/asn.c | 2 ++ wolfcrypt/test/test.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 74c92ad87..3ed4c87cc 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -9190,6 +9190,7 @@ int wc_EccPrivateKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key, return ret; } +#ifdef WOLFSSL_CERT_EXT int wc_EccPublicKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key, word32 inSz) { @@ -9243,6 +9244,7 @@ int wc_EccPublicKeyDecode(const byte* input, word32* inOutIdx, return 0; } +#endif #ifdef WOLFSSL_KEY_GEN diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index d072ff8d5..afa4a475e 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -10385,6 +10385,7 @@ done: return ret; } +#ifdef WOLFSSL_CERT_EXT static int ecc_decode_test(void) { int ret; @@ -10520,15 +10521,18 @@ done: wc_ecc_free(&key); return ret; } +#endif /* WOLFSSL_CERT_EXT */ int ecc_test(void) { int ret; WC_RNG rng; +#ifdef WOLFSSL_CERT_EXT ret = ecc_decode_test(); if (ret < 0) return ret; +#endif ret = wc_InitRng(&rng); if (ret != 0)