diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-19 17:09:23 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-21 12:24:08 -0400 |
commit | b94e7de7dbf31a9b9bfe2d376013e279f15500f8 (patch) | |
tree | 18692f4a38925073afea5a24a323d56e75547262 /src/test/test_crypto.c | |
parent | 9566ed6fd9e4aab2ce6b84afc2f7112550cf0483 (diff) | |
download | tor-b94e7de7dbf31a9b9bfe2d376013e279f15500f8.tar.gz tor-b94e7de7dbf31a9b9bfe2d376013e279f15500f8.zip |
Refactor crypto_rsa to use pem module.
This cleans up a lot of junk from crypto_rsa_openssl, and will
save us duplicated code in crypto_rsa_nss (when it exists).
(Actually, it already exists, but I am going to use git rebase so
that this commit precedes the creation of crypto_rsa_nss.)
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index 81d43ff13f..90fb8d468b 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -1519,7 +1519,8 @@ test_crypto_digests(void *arg) (void)arg; k = crypto_pk_new(); tt_assert(k); - r = crypto_pk_read_private_key_from_string(k, AUTHORITY_SIGNKEY_3, -1); + r = crypto_pk_read_private_key_from_string(k, AUTHORITY_SIGNKEY_3, + strlen(AUTHORITY_SIGNKEY_3)); tt_assert(!r); r = crypto_pk_get_digest(k, digest); |