-
Notifications
You must be signed in to change notification settings - Fork 291
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
Make friend requests stateless #60
Conversation
We discussed it a bit with iphy on IRC. Internal layers' callbacks have their own userdata which is actually called Review status: 0 of 11 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
Can you do the reformat and amend dance? |
5dee222
to
b7a1d01
Compare
done |
Review status: 0 of 11 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. toxcore/friend_requests.c, line 137 [r1] (raw file):
This line is a bug. Comments from Reviewable |
b7a1d01
to
288f1d2
Compare
Review status: 0 of 11 files reviewed at latest revision, 1 unresolved discussion. toxcore/friend_requests.c, line 137 [r1] (raw file):
|
288f1d2
to
0bd1908
Compare
Review status: 0 of 18 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. toxcore/friend_requests.c, line 137 [r1] (raw file):
|
0bd1908
to
592bfa7
Compare
Review status: 0 of 25 files reviewed at latest revision, 2 unresolved discussions. auto_tests/tox_test.c, line 957 [r4] (raw file):
Introduction of bug. auto_tests/tox_test.c, line 1021 [r4] (raw file):
Fix bug here. Comments from Reviewable |
Review status: 0 of 25 files reviewed at latest revision, 3 unresolved discussions. auto_tests/tox_test.c, line 1021 [r4] (raw file):
|
1d948ab
to
ea7f449
Compare
Reviewed 14 of 18 files at r2, 5 of 6 files at r3, 5 of 5 files at r4, 1 of 1 files at r5. toxcore/net_crypto.c, line 1760 [r5] (raw file):
I wonder if that's a reasonable assumption. Comments from Reviewable |
Review status: all files reviewed at latest revision, 5 unresolved discussions, some commit checks failed. toxcore/Messenger.c, line 841 [r5] (raw file):
This cast was invalid, but now the next line is a warning. Please add a valid cast to the function call. Comments from Reviewable |
Review status: 24 of 28 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. auto_tests/toxav_basic_test.c, line 162 [r7] (raw file):
Have you ensured that Comments from Reviewable |
Review status: 23 of 28 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. auto_tests/toxav_basic_test.c, line 162 [r7] (raw file):
|
Review status: 23 of 28 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. toxcore/net_crypto.c, line 1760 [r5] (raw file):
|
ca44f29
to
56c7a83
Compare
Reviewed 12 of 18 files at r2, 4 of 6 files at r3, 5 of 5 files at r4, 1 of 1 files at r5, 3 of 4 files at r6, 3 of 3 files at r8. Comments from Reviewable |
Do not merge until someone has verified that the TCP callbacks are getting called correctly! Do no merge until someone is able to verify the tests for the connection status are working as expected! Review status: all files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Okay, confirmed the tests, and the TCP callbacks. This can be merged with one more LGTM Review status: all files reviewed at latest revision, 1 unresolved discussion. Comments from Reviewable |
Ignore the branch name, this pull makes friend_requests callbacks stateless, not friend_connections. Friend connections had to be updated to make sure that iterate() is able to pass up userdata to the friend_request callback. Friend connection callbacks should be next on the list for callbacks. |
56c7a83
to
daab88d
Compare
Reviewed 3 of 4 files at r6, 3 of 3 files at r8. toxcore/net_crypto.c, line 1760 [r5] (raw file):
|
daab88d
to
262cbf8
Compare
Review status: 27 of 28 files reviewed at latest revision, 1 unresolved discussion. toxcore/net_crypto.c, line 1760 [r5] (raw file):
|
Review status: 27 of 28 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. toxcore/net_crypto.c, line 1760 [r5] (raw file):
|
262cbf8
to
b72e530
Compare
Review status: 26 of 28 files reviewed at latest revision, 1 unresolved discussion, some commit checks failed. toxcore/net_crypto.c, line 1760 [r5] (raw file):
|
Review status: 26 of 28 files reviewed at latest revision, all discussions resolved, some commit checks failed. Comments from Reviewable |
Reviewed 2 of 2 files at r9. Comments from Reviewable |
d15efc2
to
8e67a4c
Compare
Messenger is slightly twisty when it comes to sending connection status callbacks It will very likely need at the very least a partial refactor to clean it up a bit. Toxcore shouldn't need void *userdata as deep as is currently does. (amend 1) Because of the nature of toxcore connection callbacks, I decided to change this commit from statelessness for connections changes to statelessness for friend requests. It's simpler this was and doesn't include doing anything foolish in the time between commits. group fixup because grayhatter doesn't want to do it "arguably correct" is not how you write security sensitive code Clear a compiler warning about types within a function.
8e67a4c
to
aad1e0a
Compare
Review status: 22 of 28 files reviewed at latest revision, all discussions resolved. Comments from Reviewable |
Messenger is slightly twisty when it comes to sending connection status callbacks
It will very likely need at the very least a partial refactor to clean it up a
bit. Toxcore shouldn't need void *userdata as deep as is currently does.
This change is