diff options
author | meejah <meejah@meejah.ca> | 2017-01-28 13:49:18 -0700 |
---|---|---|
committer | meejah <meejah@meejah.ca> | 2017-01-28 13:59:29 -0700 |
commit | fc58c37e334fec71a204b7b0787d347b647618b8 (patch) | |
tree | 0b838926387ec4879da645977a4181260c5afa38 /src/or/control.h | |
parent | 67eb6470d711b36d1b855e6423ce7bbb302af834 (diff) | |
download | tor-fc58c37e334fec71a204b7b0787d347b647618b8.tar.gz tor-fc58c37e334fec71a204b7b0787d347b647618b8.zip |
Ticket #21329: GETINFO onions/current returns empty list
If there are no ephemeral or detached onion services, then
"GETINFO onions/current" or "GETINFO onions/detached" should
return an empty list instead of an error
Diffstat (limited to 'src/or/control.h')
-rw-r--r-- | src/or/control.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/control.h b/src/or/control.h index 6330c85571..16ba1ed8f0 100644 --- a/src/or/control.h +++ b/src/or/control.h @@ -262,6 +262,11 @@ STATIC crypto_pk_t *add_onion_helper_keyarg(const char *arg, int discard_pk, STATIC rend_authorized_client_t * add_onion_helper_clientauth(const char *arg, int *created, char **err_msg_out); +STATIC int getinfo_helper_onions( + control_connection_t *control_conn, + const char *question, + char **answer, + const char **errmsg); STATIC void getinfo_helper_downloads_networkstatus( const char *flavor, download_status_t **dl_to_emit, |