aboutsummaryrefslogtreecommitdiff
path: root/src/test/testing_rsakeys.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-19 17:09:23 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-21 12:24:08 -0400
commitb94e7de7dbf31a9b9bfe2d376013e279f15500f8 (patch)
tree18692f4a38925073afea5a24a323d56e75547262 /src/test/testing_rsakeys.c
parent9566ed6fd9e4aab2ce6b84afc2f7112550cf0483 (diff)
downloadtor-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/testing_rsakeys.c')
-rw-r--r--src/test/testing_rsakeys.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/testing_rsakeys.c b/src/test/testing_rsakeys.c
index a8c9ce4ce8..c8062b82d5 100644
--- a/src/test/testing_rsakeys.c
+++ b/src/test/testing_rsakeys.c
@@ -490,7 +490,7 @@ crypto_pk_generate_key_with_bits__get_cached(crypto_pk_t *env, int bits)
{
if (bits == 1024 || bits == 2048) {
crypto_pk_t *newkey = pk_generate_internal(bits);
- crypto_pk_assign_(env, newkey);
+ crypto_pk_assign_private(env, newkey);
crypto_pk_free(newkey);
} else {
return crypto_pk_generate_key_with_bits__real(env, bits);
@@ -544,4 +544,3 @@ init_pregenerated_keys(void)
crypto_pk_generate_key_with_bits__get_cached);
#endif /* defined(USE_PREGENERATED_RSA_KEYS) */
}
-