Commit Graph

37 Commits

Author SHA1 Message Date
gmbnt 2e38b382c2 Use a serial queue for core operations 2020-04-07 11:18:55 +10:00
gmbnt ac0a20c8a7 Improve threading 2020-04-07 10:52:41 +10:00
gmbnt 4566bfb389 Minor refactoring 2020-04-06 13:33:15 +10:00
gmbnt 82a71f2385 Implement onion request error handling 2020-04-06 13:26:26 +10:00
gmbnt 5812578a73 Swap out LokiSnodeProxy with OnionRequestAPI 2020-04-06 11:51:57 +10:00
gmbnt 4f56307d39 Fix parsing 2020-04-06 11:47:04 +10:00
gmbnt ede00b1a02 Fix incorrect padding setting 2020-04-06 11:11:24 +10:00
gmbnt 8c6251389d Further improve onion request tests 2020-04-03 10:34:05 +11:00
gmbnt 9b5c419aaa Fix misleading log 2020-04-03 09:14:29 +11:00
gmbnt f7fc92cc0a Fix build 2020-04-03 09:14:29 +11:00
gmbnt 92aba98cb7 Ensure target snode isn't included in onion request path 2020-04-03 09:14:12 +11:00
gmbnt 547f7943c3 Add more onion request tests 2020-04-02 15:48:42 +11:00
gmbnt 2fa1391341 Don't use TSNetworkManager for LokiAPI.getRandomSnode() 2020-04-02 15:09:11 +11:00
gmbnt 651aa7039d Move HTTP utilities into their own file 2020-04-02 14:54:52 +11:00
gmbnt 625a3b151b Don't use snodes known to be unreliable for path building 2020-04-02 14:28:40 +11:00
gmbnt 029df5d329 Guard against invalid path sizes 2020-04-02 12:20:14 +11:00
gmbnt af1597e8b7 Don't test path snodes
This would reveal the user's IP
2020-04-02 12:19:53 +11:00
gmbnt d54c9c6175 Fix onion request layout 2020-04-02 12:19:10 +11:00
gmbnt 9c9049774e Add more documentation 2020-04-02 09:53:03 +11:00
gmbnt fcb629cf06 Debug onion request path building 2020-04-01 15:31:04 +11:00
gmbnt 1f3d13ee3b Test path snodes for reliability as well 2020-04-01 15:15:09 +11:00
gmbnt c67e2af9a6 Fix incorrect GCM tag size 2020-04-01 14:40:15 +11:00
gmbnt 245033dbc4 Implement onion request decryption 2020-04-01 13:32:46 +11:00
gmbnt 4e00d30d05 Fix onion request encryption 2020-04-01 13:10:34 +11:00
gmbnt 358b943d7e Debug 2020-04-01 12:56:02 +11:00
gmbnt b323637f7a Fix missing IV & improve error handling 2020-04-01 11:33:38 +11:00
gmbnt 41701ecde3 Partially revert error handling changes 2020-04-01 09:53:36 +11:00
gmbnt ce183ee9fa Ditch TSNetworkManager, check guard snode version & fix promise usage 2020-04-01 09:44:09 +11:00
gmbnt 81c36fe5dd Fix threading 2020-03-31 16:49:07 +11:00
gmbnt 3467e1bc94 Fix onion request layout 2020-03-31 16:46:23 +11:00
gmbnt ec660e6017 Debug 2020-03-31 16:16:26 +11:00
gmbnt 7a4a5ff291 Fix onion request layout 2020-03-31 15:36:45 +11:00
gmbnt 1b24637f37 Implement onion request encryption 2020-03-31 15:36:45 +11:00
gmbnt fd037c2a88 WIP 2020-03-31 15:36:45 +11:00
gmbnt 61bc699f73 Implement onion request layering 2020-03-31 15:36:37 +11:00
gmbnt 1b31432de9 Stub onion request path building test 2020-03-30 13:33:19 +11:00
gmbnt b8a1a3c63e Make testing compile again & add onion request API tests stub 2020-03-30 12:20:59 +11:00
Renamed from SignalServiceKit/src/Loki/API/OnionRequestAPI.swift (Browse further)