diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-08-05 18:56:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-08-05 18:56:30 -0400 |
commit | e511a3a4dd4cacd8d2cd4f076ea321f75e5dfd22 (patch) | |
tree | 25664f3f24bdf71574064fff3d2d1f751e8767a7 /src | |
parent | 8054e81e14e20101e355a7c58d7e5ea7ec231d96 (diff) | |
download | tor-e511a3a4dd4cacd8d2cd4f076ea321f75e5dfd22.tar.gz tor-e511a3a4dd4cacd8d2cd4f076ea321f75e5dfd22.zip |
Handle storing much longer socks4 authentication data.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/or.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index e7670bb530..eb271b5ee4 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2524,7 +2524,7 @@ typedef struct origin_circuit_t { char *dest_address; int session_group; unsigned nym_epoch; - uint8_t socks_username_len; + size_t socks_username_len; uint8_t socks_password_len; /* Note that the next two values are NOT NUL-terminated; see socks_username_len and socks_password_len for their lengths. */ @@ -3404,7 +3404,7 @@ struct socks_request_t { unsigned int got_auth : 1; /**< Have we received any authentication data? */ /** Number of bytes in username; 0 if username is NULL */ - uint8_t usernamelen; + size_t usernamelen; /** Number of bytes in password; 0 if password is NULL */ uint8_t passwordlen; /** The negotiated username value if any (for socks5), or the entire |