aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/socks_request_st.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:06:53 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:06:53 +0200
commitd28b6792cb99f25d42607eb46985ac4553013dd8 (patch)
tree62209d549df1c21f4502c99fa3a96fa028ba5421 /src/core/or/socks_request_st.h
parentc34fb3413dee5be00be7299a63c294ddb86b0599 (diff)
parentd60ed5a6a2586bdf4feb266e44b7db4703d3c4a6 (diff)
downloadtor-d28b6792cb99f25d42607eb46985ac4553013dd8.tar.gz
tor-d28b6792cb99f25d42607eb46985ac4553013dd8.zip
Merge branch 'tor-github/pr/1423'
Diffstat (limited to 'src/core/or/socks_request_st.h')
-rw-r--r--src/core/or/socks_request_st.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/or/socks_request_st.h b/src/core/or/socks_request_st.h
index 2931543ee2..0396f5abbd 100644
--- a/src/core/or/socks_request_st.h
+++ b/src/core/or/socks_request_st.h
@@ -12,6 +12,8 @@
#ifndef SOCKS_REQUEST_ST_H
#define SOCKS_REQUEST_ST_H
+#include "lib/net/socks5_status.h"
+
#define MAX_SOCKS_REPLY_LEN 1024
#define SOCKS_NO_AUTH 0x00
@@ -63,6 +65,11 @@ struct socks_request_t {
* "username/password" authentication if both are offered. Used as input to
* parse_socks. */
unsigned int socks_prefer_no_auth : 1;
+ /** If set, we can send back the extended error code in the reply. */
+ unsigned int socks_use_extended_errors : 1;
+ /** If non zero, this contains the extended error code that should be used
+ * if the port was configured to use them. */
+ socks5_reply_status_t socks_extended_error_code;
/** Number of bytes in username; 0 if username is NULL */
size_t usernamelen;