-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for proxy username/password authentication #1547
base: master
Are you sure you want to change the base?
Conversation
Reviewed 3 of 5 files at r1. toxcore/TCP_client.c, line 142 [r1] (raw file): toxcore/TCP_client.c, line 198 [r1] (raw file): toxcore/TCP_client.c, line 987 [r1] (raw file): toxcore/tox.c, line 198 [r1] (raw file): Comments from the review on Reviewable.io |
Review status: 3 of 5 files reviewed at latest revision, 4 unresolved discussions, some commit checks failed. toxcore/TCP_client.c, line 142 [r1] (raw file): toxcore/TCP_client.c, line 198 [r1] (raw file): toxcore/TCP_client.c, line 987 [r1] (raw file): toxcore/tox.c, line 198 [r1] (raw file): Comments from the review on Reviewable.io |
What about tox.h version tick? I guess the version will be ticked manually by @irungentoo whenever he feels like releasing new version. |
Reviewed 2 of 5 files at r1. toxcore/TCP_client.c, line 142 [r1] (raw file): toxcore/TCP_client.c, line 987 [r1] (raw file): Also it's wrong now isn't a reason to leave it wrong. If I'm going to implement this in µTox I need to know if the server rejected the connection, or the auth. Comments from the review on Reviewable.io |
Review status: 2 of 5 files reviewed at latest revision, 1 unresolved discussion. toxcore/TCP_client.c, line 142 [r1] (raw file): toxcore/TCP_client.c, line 987 [r1] (raw file): Comments from the review on Reviewable.io |
Reviewed 3 of 3 files at r2. other/apidsl/tox.in.h, line 604 [r2] (raw file): Comments from the review on Reviewable.io |
Review status: all files reviewed at latest revision, 2 unresolved discussions. other/apidsl/tox.in.h, line 604 [r2] (raw file): Comments from the review on Reviewable.io |
Reviewed 1 of 2 files at r3. Comments from the review on Reviewable.io |
Reviewed 1 of 2 files at r3. Comments from the review on Reviewable.io |
static void proxy_socks5_generate_auth_request(TCP_Client_Connection *TCP_conn) | ||
{ | ||
uint8_t username_len = strlen(TCP_conn->proxy_info.username); | ||
uint8_t password_len = strlen(TCP_conn->proxy_info.password); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can use string functions in tox.c but not here.
Save the length in the proxy settings struct.
@irungentoo Fixed. EDIT: I lied, sorry. This is what happens when I don't test things. |
@Impyy reopen on toktok/toxcore? |
Progress:
Figured I'd submit this in advance so you guys can take a look and scrutinize my horrid C skills if needed.
This change is