mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix 'make check-spaces'
This commit is contained in:
parent
1ed615ded7
commit
9b3f48c074
@ -1691,7 +1691,7 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req,
|
||||
req->socks_version = 5; /* remember we've already negotiated auth */
|
||||
log_debug(LD_APP,"socks5: accepted method 0 (no authentication)");
|
||||
r=0;
|
||||
}else if (memchr(data+2, SOCKS_USER_PASS,nummethods)) {
|
||||
} else if (memchr(data+2, SOCKS_USER_PASS,nummethods)) {
|
||||
req->reply[1] = SOCKS_USER_PASS; /* tell client to use "user/pass"
|
||||
auth method */
|
||||
req->socks_version = 5; /* remember we've already negotiated auth */
|
||||
|
@ -210,7 +210,7 @@ test_buffers_socks4_unsupported_commands_helper(const char *cp, buf_t *buf,
|
||||
test_eq(4, socks->socks_version);
|
||||
test_eq(0, socks->replylen); /* XXX: shouldn't tor reply? */
|
||||
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -248,7 +248,7 @@ test_buffers_socks4_supported_commands_helper(const char *cp, buf_t *buf,
|
||||
test_eq(0, socks->replylen); /* XXX: shouldn't tor reply? */
|
||||
test_streq("tor.org", socks->address);
|
||||
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -279,7 +279,7 @@ test_buffers_socks5_unsupported_commands_helper(const char *cp, buf_t *buf,
|
||||
test_eq(0, socks->reply[1]); /* XXX: shouldn't tor reply 'command
|
||||
not supported' [07]? */
|
||||
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -334,7 +334,7 @@ test_buffers_socks5_supported_commands_helper(const char *cp, buf_t *buf,
|
||||
test_eq(0, socks->reply[1]);
|
||||
test_streq("2.2.2.2", socks->address);
|
||||
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -364,7 +364,7 @@ test_buffers_socks5_no_authenticate_helper(const char *cp, buf_t *buf,
|
||||
test_eq(5, socks->reply[0]);
|
||||
test_eq(0, socks->reply[1]);
|
||||
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -394,7 +394,7 @@ test_buffers_socks5_authenticate_helper(const char *cp, buf_t *buf,
|
||||
test_eq(2, socks->replylen);
|
||||
test_eq(5, socks->reply[0]);
|
||||
test_eq(0, socks->reply[1]);
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -434,7 +434,7 @@ test_buffers_socks5_authenticate_with_data_helper(const char *cp, buf_t *buf,
|
||||
test_eq(0, socks->reply[1]);
|
||||
test_streq("2.2.2.2", socks->address);
|
||||
test_eq(4369, socks->port);
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
@ -454,7 +454,7 @@ test_buffers_socks5_auth_before_negotiation_helper(const char *cp, buf_t *buf,
|
||||
test_eq(0, socks->reply[0]);
|
||||
test_eq(0, socks->reply[1]);
|
||||
|
||||
done:
|
||||
done:
|
||||
;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user