diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-19 08:56:51 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-08-21 12:24:08 -0400 |
commit | 0f971d7c915e45556c582b8e02017927bf196f7e (patch) | |
tree | 65dafe1f54701d5092d4e68edeb73b177465ee69 /src/test/test_controller.c | |
parent | 752ffa21973c67a789c34511e13d079d8bec3858 (diff) | |
download | tor-0f971d7c915e45556c582b8e02017927bf196f7e.tar.gz tor-0f971d7c915e45556c582b8e02017927bf196f7e.zip |
Rename functions that encode/decode private keys
It is not nice to expose a private key's contents without having the
function name advertise the fact. Fortunately, we weren't misusing
these yet.
Diffstat (limited to 'src/test/test_controller.c')
-rw-r--r-- | src/test/test_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_controller.c b/src/test/test_controller.c index d0aa868448..d5d51758fb 100644 --- a/src/test/test_controller.c +++ b/src/test/test_controller.c @@ -161,7 +161,7 @@ test_add_onion_helper_keyarg_v2(void *arg) /* Test loading a RSA1024 key. */ tor_free(err_msg); pk1 = pk_generate(0); - tt_int_op(0, OP_EQ, crypto_pk_base64_encode(pk1, &encoded)); + tt_int_op(0, OP_EQ, crypto_pk_base64_encode_private(pk1, &encoded)); tor_asprintf(&arg_str, "RSA1024:%s", encoded); ret = add_onion_helper_keyarg(arg_str, 0, &key_new_alg, &key_new_blob, &pk, &hs_version, &err_msg); |