[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torspec/master] control-spec: Add error codes to the commands.



commit 13928996f4928773605527b561cdb212c1d93766
Author: George Kadianakis <desnacked@xxxxxxxxxx>
Date:   Tue May 7 18:15:09 2019 +0300

    control-spec: Add error codes to the commands.
---
 control-spec.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/control-spec.txt b/control-spec.txt
index bc57639..21e104e 100644
--- a/control-spec.txt
+++ b/control-spec.txt
@@ -1826,6 +1826,11 @@
   should be used for this client, and "Nickname" is an optional nickname for
   the client.
 
+  On success, "250 OK" is returned. Otherwise, the following error codes exist:
+    251 - Client with with this "PrivateKeyBlob" already existed.
+    512 - Syntax error in "HSAddress", or "PrivateKeyBlob" or "Nickname"
+    551 - Client with with this "Nickname" already exists
+
 3.31. REMOVE_ONION_CLIENT_AUTH
 
   The syntax is:
@@ -1835,6 +1840,10 @@
   Tells the server to remove the client-side v3 client auth credentials for the
   onion service with "HSAddress" and client with key "PrivateKeyBlob".
 
+  On success "250 OK" is returned. Otherwise, the following error codes exist:
+    512 - Syntax error in "HSAddress", or "PrivateKeyBlob".
+    251 - Client with "PrivateKeyBlob" did not exist.
+
 3.32. VIEW_ONION_CLIENT_AUTH
 
   The syntax is:
@@ -1857,6 +1866,9 @@
   it's the filename of this client if the credentials are stored in the
   filesystem.
 
+  On success "250 OK" is returned. Otherwise, the following error codes exist:
+    512 - Syntax error in "HSAddress".
+
 3.33. DROPOWNERSHIP
 
   The syntax is:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits