commit c94f6b228b0f6296a1fd74a5e12373754d5f07a9 Author: Nick Mathewson nickm@torproject.org Date: Mon Jun 10 13:51:53 2013 -0400
Fix "make check-spaces" --- src/test/test_crypto.c | 8 ++++---- src/test/test_tortls.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index e45fbb8..f391cce 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -526,15 +526,15 @@ test_crypto_digests(void) r = crypto_pk_get_digest(k, digest); test_assert(r == 0); test_memeq(hex_str(digest, DIGEST_LEN), - AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN); + AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN);
r = crypto_pk_get_all_digests(k, &pkey_digests);
test_memeq(hex_str(pkey_digests.d[DIGEST_SHA1], DIGEST_LEN), - AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN); + AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN); test_memeq(hex_str(pkey_digests.d[DIGEST_SHA256], DIGEST256_LEN), - AUTHORITY_SIGNKEY_1_DIGEST256, HEX_DIGEST256_LEN); -done: + AUTHORITY_SIGNKEY_1_DIGEST256, HEX_DIGEST256_LEN); + done: crypto_pk_free(k); }
diff --git a/src/test/test_tortls.c b/src/test/test_tortls.c index 28ffbb1..5409ced 100644 --- a/src/test/test_tortls.c +++ b/src/test/test_tortls.c @@ -9,7 +9,6 @@ #include "or.h" #include "test.h"
- static void test_tortls_evp_pkey_eq(void) { @@ -27,7 +26,7 @@ test_tortls_evp_pkey_eq(void) test_assert(tor_tls_evp_pkey_eq(evp1, evp2) == 0); test_assert(tor_tls_evp_pkey_eq(evp1, evp1) == 1);
-done: + done: crypto_pk_free(pk1); crypto_pk_free(pk2); if (evp1) @@ -43,3 +42,4 @@ struct testcase_t tortls_tests[] = { TORTLS_LEGACY(evp_pkey_eq), END_OF_TESTCASES }; +