[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/6] torture: Fix guard


* tests/unittests/torture_pki.c (setup_ecdsa_key*): Check for
'HAVE_ECC' instead of 'HAVE_OPENSSL_ECC'.

Signed-off-by: Justus Winter <justus@xxxxxxxxxxx>
---
 tests/unittests/torture_pki.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/unittests/torture_pki.c b/tests/unittests/torture_pki.c
index 41fa452..a2bfdbc 100644
--- a/tests/unittests/torture_pki.c
+++ b/tests/unittests/torture_pki.c
@@ -47,7 +47,7 @@ static int setup_dsa_key(void **state) {
     return 0;
 }
 
-#ifdef HAVE_OPENSSL_ECC
+#ifdef HAVE_ECC
 static int setup_ecdsa_key(void **state, int ecdsa_bits) {
 
     (void) state; /* unused */
-- 
2.1.4


Follow-Ups:
[PATCH 4/6] pki_gcrypt: Burn key materialJustus Winter <justus@xxxxxxxxxxx>
[PATCH 3/6] pki_gcrypt: Generalize asn1_get_intJustus Winter <justus@xxxxxxxxxxx>
[PATCH 2/6] pki_gcrypt: Fix memory leakJustus Winter <justus@xxxxxxxxxxx>
[PATCH 5/6] pki_gcrypt: Fix memory leakJustus Winter <justus@xxxxxxxxxxx>
[PATCH 6/6] pki: Mention relevant RFC for EC key encodingJustus Winter <justus@xxxxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org