diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-04-10 21:23:00 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-04-10 21:23:00 +0000 |
commit | 1fbc74661f6b47d452e58eac22c3e55f90d692c2 (patch) | |
tree | c8ea4526dc7cd2d30a2dabde459f63222c2b40da /src/or/test.c | |
parent | 37c77c71f798cdbd2b7b06e178772640a4516747 (diff) | |
download | tor-1fbc74661f6b47d452e58eac22c3e55f90d692c2.tar.gz tor-1fbc74661f6b47d452e58eac22c3e55f90d692c2.zip |
Remove DER64 functions in trunk: they will never be used again unless the directory authorities switch back to 0.0.9tooearly.
svn:r6376
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/or/test.c b/src/or/test.c index 6cb6c8d375..2fff4d7097 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -416,19 +416,6 @@ test_crypto(void) test_eq(0, crypto_pk_cmp_keys(pk1, pk2)); tor_free(cp); - /* Check DER encoding */ - i=crypto_pk_DER64_encode_public_key(pk1, &cp); - test_assert(i>0); - test_assert(cp); - test_assert(!strchr(cp, ' ')); - test_assert(!strchr(cp, '\n')); - test_eq(0, crypto_pk_cmp_keys(pk1, pk1)); - crypto_free_pk_env(pk2); - pk2 = crypto_pk_DER64_decode_public_key(cp); - test_assert(pk2); - test_eq(0, crypto_pk_cmp_keys(pk1, pk2)); - tor_free(cp); - test_eq(128, crypto_pk_keysize(pk1)); test_eq(128, crypto_pk_keysize(pk2)); |