Commit graph

2724 commits

Author SHA1 Message Date
gmbnt
03c4e4a65c Merge branch 'dev' into push-notifications 2020-04-06 15:32:02 +10:00
gmbnt
e2bc7fb4d8 Add missing retry 2020-04-06 13:53:19 +10:00
gmbnt
b6f51003c8 Fix build 2020-04-06 13:39:45 +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
ryanzhao
6aec747709 clean 2020-04-06 12:02:55 +10:00
ryanzhao
c8f5172cdc set ttl for background messages 2020-04-06 12:02:43 +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
3c2109e698 Minor refactoring 2020-04-03 15:05:57 +11:00
gmbnt
c2b1bc120f Fix typo 2020-04-03 10:40:08 +11:00
gmbnt
8c6251389d Further improve onion request tests 2020-04-03 10:34:05 +11:00
gmbnt
0b44f7d7ac Add testnet seed node 2020-04-03 09:24:47 +11:00
gmbnt
d90c1b612c Fix incorrect deployment target & clean up logging 2020-04-03 09:14:29 +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
f76980da5a Resolve TODO 2020-04-02 15:16:22 +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
ryanzhao
e28dcfdd0c sync lash hash with expiration to the backend server 2020-04-02 11:57:25 +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
1106ca5eb1 Make logging more useful 2020-03-31 16:34:31 +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
6b65a05d23 Add TODOs 2020-03-31 15:36:45 +11:00
gmbnt
61bc699f73 Implement onion request layering 2020-03-31 15:36:37 +11:00
ryanzhao
ec1a468aab move LKPushNotificationManager to SignalServiceKit & add lash hash sync with PN server 2020-03-30 17:07:25 +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
gmbnt
3c7eb22f95 Clean 2020-03-30 11:50:28 +11:00