Commit graph

64 commits

Author SHA1 Message Date
John Jones
9fd44b7878 implementing handler interface in front of multistream 2017-09-04 11:01:17 -05:00
John Jones
53f754af43 Adding more compatibility fixes for standard ipfs 2017-08-31 16:40:35 -05:00
John Jones
36061dc1da Small adjustments for secio protocol compatibility 2017-08-31 12:49:43 -05:00
jmjatlanta
eecfea4f78 journalio working, needs tuning 2017-08-31 06:41:06 -05:00
jmjatlanta
f0d82129ab Debugging journalio process 2017-08-30 11:09:28 -05:00
jmjatlanta
a009673969 Added some debugging information to protocols 2017-08-09 12:08:57 -05:00
jmjatlanta
bff867ae4d logic fix 2017-08-09 11:12:16 -05:00
John Jones
f84ec579f2 Making it easier to create secio connections 2017-08-09 10:57:17 -05:00
jmjatlanta
9cdc0bd54e Properly reading the remote's proposal 2017-08-09 10:32:01 -05:00
jmjatlanta
8ff5020088 Reverting back to specific network reads and writes 2017-08-09 10:23:24 -05:00
jmjatlanta
563a89150d Working with secio negotiation 2017-08-09 10:09:28 -05:00
John Jones
1e7806855d Using muiltistream protocol to begin secio negotiation 2017-08-09 09:46:53 -05:00
jmjatlanta
4f52a20314 Handling secio negotiation differently to comply with protocol 2017-08-09 09:12:16 -05:00
John Jones
6f77a64adb IPFS protocols now implement an interface to make marshalling easier 2017-08-09 08:03:40 -05:00
jmjatlanta
a8f4925bbe Properly setting session context 2017-08-03 17:48:11 -05:00
jmjatlanta
c639359a4a Moving addition to peerstore after everyting is done 2017-08-03 14:43:19 -05:00
jmjatlanta
7155f604c1 Fixed overwrite of session context 2017-08-03 14:34:40 -05:00
jmjatlanta
48c4b5ade0 Cleaning up bad connections 2017-08-03 12:17:17 -05:00
jmjatlanta
61a576eb93 Handling details of bitswap and connection pool 2017-08-03 11:15:40 -05:00
jmjatlanta
3137d9efa6 Now a successful secio connection adds the peer to the peerstore 2017-07-31 16:36:08 -05:00
jmjatlanta
8c1c813643 sanity check
additional sanity check in peerstore and saving remote peer id when
connecting with secio
2017-07-31 15:18:17 -05:00
John Jones
90b1e2c3c8 return on timeout 2017-07-31 10:00:32 -05:00
John Jones
1971e60438 Cleanup of needless Stream attached to things it shouldn't have 2017-07-27 12:06:27 -05:00
jmjatlanta
dfb1aba247 Fixed warnings 2017-07-17 16:14:20 -05:00
John Jones
ffd27eb062 A better fix for osx 2017-07-17 15:24:37 -05:00
John Jones
e2d63e029c fixed endian.h header for osx 2017-07-17 15:23:29 -05:00
John Jones
3b52948b3b Now using logger instead of fprintf 2017-07-17 14:38:48 -05:00
John Jones
a10c7ef5e9 handle reading the requested number of bytes, and secio fix
Some transmissions are sent by multiple sends. Loop through until you
get them all. NOTE: We'll have to come back to this to handle a timeout.
Also, fixed the random handshake issue with the GO version.
2017-07-13 18:30:18 -05:00
John Jones
6c19984368 Now doing multistream over secio 2017-07-13 09:01:50 -05:00
John Jones
cff0e4d6aa Incremental commit for secio fixes and connecting to swarms 2017-07-13 07:27:10 -05:00
John Jones
8ce1c32ec4 Multiple memory fixes, mostly in tests 2017-04-26 23:56:18 -05:00
John Jones
c1e7131c7c passing network timeouts to read methods 2017-04-17 14:03:27 -05:00
John Jones
12f15c4231 Cleaned code around peerstore, providerstore, and networking 2017-04-03 20:54:41 -05:00
John Jones
aa92d72541 Added fancier logging mechanism 2017-04-03 13:20:12 -05:00
John Jones
caf51bdb7c Added some debugging info 2017-04-03 12:43:05 -05:00
John Jones
464f9b5c5c minor change to peer calls and added debugging info to secio 2017-04-03 11:55:03 -05:00
John Jones
69cbff9cd6 Refactor - SecureSession to SessionContext 2017-03-19 07:42:52 -05:00
John Jones
74d95cb696 Working on streams 2017-03-09 12:49:47 -05:00
John Jones
d0512d9084 Made the stream methods more generic 2017-03-09 10:00:45 -05:00
John Jones
a6fe0fda47 changed encryption to aes 256 for time being 2017-03-09 08:41:59 -05:00
John Jones
3d53c470a5 Correctly generating shared and stretched keys 2017-03-09 00:12:04 -05:00
John Jones
05cc6e9bd3 key exchange complete, nearing encrypted streams, mac invalid 2017-03-08 12:18:29 -05:00
John Jones
c343d2d0ad Fixed memory leak in secio 2017-03-08 05:53:59 -05:00
John Jones
0e0b6b1546 Many bug fixes for secio 2017-03-06 19:03:04 -05:00
John Jones
6d9473069b Many fixes around secio 2017-03-02 16:14:52 -05:00
John Jones
f1aaae0f17 Implementing a Stream interface in front of Multistream 2017-02-23 15:16:04 -05:00
John Jones
8139dc9d48 Added ping functionality to multistream 2017-02-23 11:15:48 -05:00
John Jones
466bfe3fa4 Beginnings of the dialer 2017-02-13 08:47:55 -05:00
John Jones
910c07e951 More changes to encryption negotiation 2017-02-09 12:50:28 -05:00
John Jones
e55f81490d More cleanup 2017-02-09 04:55:16 -05:00