diff options
author | George Kadianakis <desnacked@riseup.net> | 2019-05-30 15:58:20 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2019-11-18 19:16:01 +0200 |
commit | 00fdaaee1e3cdfe40230a866c497d3648c43940c (patch) | |
tree | 684128731393d2cd563098e9290d286313d0b0ed /src/feature/control/control_cmd.c | |
parent | d28b6792cb99f25d42607eb46985ac4553013dd8 (diff) | |
download | tor-00fdaaee1e3cdfe40230a866c497d3648c43940c.tar.gz tor-00fdaaee1e3cdfe40230a866c497d3648c43940c.zip |
control-port: Implement ONION_CLIENT_AUTH_ADD.
Diffstat (limited to 'src/feature/control/control_cmd.c')
-rw-r--r-- | src/feature/control/control_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c index e1a8292c9f..3c16722e15 100644 --- a/src/feature/control/control_cmd.c +++ b/src/feature/control/control_cmd.c @@ -26,6 +26,7 @@ #include "feature/control/control.h" #include "feature/control/control_auth.h" #include "feature/control/control_cmd.h" +#include "feature/control/control_hs.h" #include "feature/control/control_events.h" #include "feature/control/control_getinfo.h" #include "feature/control/control_proto.h" @@ -1970,6 +1971,7 @@ add_onion_helper_keyarg(const char *arg, int discard_pk, decoded_key->v2 = pk; *hs_version = HS_VERSION_TWO; } else if (!strcasecmp(key_type_ed25519_v3, key_type)) { + /* parsing of private ed25519 key */ /* "ED25519-V3:<Base64 Blob>" - Loading a pre-existing ed25519 key. */ ed25519_secret_key_t *sk = tor_malloc_zero(sizeof(*sk)); if (base64_decode((char *) sk->seckey, sizeof(sk->seckey), key_blob, @@ -2317,6 +2319,7 @@ static const control_cmd_def_t CONTROL_COMMANDS[] = MULTLINE(hspost, 0), ONE_LINE(add_onion, CMD_FL_WIPE), ONE_LINE(del_onion, CMD_FL_WIPE), + ONE_LINE(onion_client_auth_add, CMD_FL_WIPE), }; /** |