diff options
author | Taylor Yu <catalyst@torproject.org> | 2019-06-25 10:34:53 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2019-06-25 11:42:34 -0500 |
commit | 5faf54970de4bc3c80a268b5b139c713413562fd (patch) | |
tree | fb6badd2dd0d60431e66ec747e242b2456501ad9 /src/feature/control/control_cmd.h | |
parent | e5e6953be74ab5d09608dcf6af48caae4e57464c (diff) | |
download | tor-5faf54970de4bc3c80a268b5b139c713413562fd.tar.gz tor-5faf54970de4bc3c80a268b5b139c713413562fd.zip |
Fix some onion helpers
Fix add_onion_helper_clientauth() and add_onion_helper_keyarg() to
explicitly call the appropriate control reply abstractions instead of
allocating a string to pass to their callers.
Part of ticket 30889.
Diffstat (limited to 'src/feature/control/control_cmd.h')
-rw-r--r-- | src/feature/control/control_cmd.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/feature/control/control_cmd.h b/src/feature/control/control_cmd.h index 5c3d1a1cec..4b6d54abe7 100644 --- a/src/feature/control/control_cmd.h +++ b/src/feature/control/control_cmd.h @@ -91,10 +91,11 @@ STATIC int add_onion_helper_keyarg(const char *arg, int discard_pk, const char **key_new_alg_out, char **key_new_blob_out, add_onion_secret_key_t *decoded_key, - int *hs_version, char **err_msg_out); + int *hs_version, + control_connection_t *conn); STATIC rend_authorized_client_t *add_onion_helper_clientauth(const char *arg, - int *created, char **err_msg_out); + int *created, control_connection_t *conn); STATIC control_cmd_args_t *control_cmd_parse_args( const char *command, |