summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_client.c
diff options
context:
space:
mode:
authorSuphanat Chunhapanya <haxx.pop@gmail.com>2018-05-22 00:01:52 +0700
committerDavid Goulet <dgoulet@torproject.org>2018-09-07 14:03:07 -0400
commit9f975e99953fa57a7c1f43ebd22cc9e602037b6d (patch)
treef027aa2e76b63e3f25f2088e25d6c849ff931a59 /src/feature/hs/hs_client.c
parentb61403c7870b9ee289fe61e2f2349a8d49a8d37a (diff)
downloadtor-9f975e99953fa57a7c1f43ebd22cc9e602037b6d.tar.gz
tor-9f975e99953fa57a7c1f43ebd22cc9e602037b6d.zip
hs-v3: Rename client_sk to client_auth_sk
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/hs/hs_client.c')
-rw-r--r--src/feature/hs/hs_client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/feature/hs/hs_client.c b/src/feature/hs/hs_client.c
index 0038fdfa50..b178282c18 100644
--- a/src/feature/hs/hs_client.c
+++ b/src/feature/hs/hs_client.c
@@ -1233,7 +1233,7 @@ hs_client_decode_descriptor(const char *desc_str,
uint8_t subcredential[DIGEST256_LEN];
ed25519_public_key_t blinded_pubkey;
hs_client_service_authorization_t *client_auth = NULL;
- curve25519_secret_key_t *client_sk = NULL;
+ curve25519_secret_key_t *client_auht_sk = NULL;
tor_assert(desc_str);
tor_assert(service_identity_pk);
@@ -1242,7 +1242,7 @@ hs_client_decode_descriptor(const char *desc_str,
/* Check if we have a client authorization for this service in the map. */
client_auth = find_client_auth(service_identity_pk);
if (client_auth) {
- client_sk = &client_auth->enc_seckey;
+ client_auht_sk = &client_auth->enc_seckey;
}
/* Create subcredential for this HS so that we can decrypt */
@@ -1254,7 +1254,8 @@ hs_client_decode_descriptor(const char *desc_str,
}
/* Parse descriptor */
- ret = hs_desc_decode_descriptor(desc_str, subcredential, client_sk, desc);
+ ret = hs_desc_decode_descriptor(desc_str, subcredential,
+ client_auht_sk, desc);
memwipe(subcredential, 0, sizeof(subcredential));
if (ret < 0) {
log_warn(LD_GENERAL, "Could not parse received descriptor as client.");