diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-09 12:20:29 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-20 11:02:30 -0500 |
commit | 49f21b6ba30a07369ff3282615465d0f3ad40e5b (patch) | |
tree | 43dff6c77f8420086cfb2bdb81ace5329f4e8aad /src/or/control.h | |
parent | 660de600a036d0048fa6ba52bc2562f5a5ca6895 (diff) | |
download | tor-49f21b6ba30a07369ff3282615465d0f3ad40e5b.tar.gz tor-49f21b6ba30a07369ff3282615465d0f3ad40e5b.zip |
control: Support HSv3 interface for ADD_ONION
At this commit, the key handling and generation is supported for a v3 service
(ED25519-V3). However, the service creation is not yet implemented. This only
adds the interface and code to deal with the new ED25519-V3 key type.
Tests have been updated for RSA key type but nothing yet for ED25519-v3.
Part of #20699
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/control.h')
-rw-r--r-- | src/or/control.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/control.h b/src/or/control.h index 7ec182cb78..74601b9784 100644 --- a/src/or/control.h +++ b/src/or/control.h @@ -256,10 +256,11 @@ void format_cell_stats(char **event_string, circuit_t *circ, cell_stats_t *cell_stats); STATIC char *get_bw_samples(void); -STATIC crypto_pk_t *add_onion_helper_keyarg(const char *arg, int discard_pk, - const char **key_new_alg_out, - char **key_new_blob_out, - char **err_msg_out); +STATIC int add_onion_helper_keyarg(const char *arg, int discard_pk, + const char **key_new_alg_out, + char **key_new_blob_out, void **decoded_key, + int *hs_version, char **err_msg_out); + STATIC rend_authorized_client_t * add_onion_helper_clientauth(const char *arg, int *created, char **err_msg_out); |