Skip to content
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

remove msgio double wrap #1065

Closed
wants to merge 1 commit into from
Closed

remove msgio double wrap #1065

wants to merge 1 commit into from

Conversation

jbenet
Copy link
Member

@jbenet jbenet commented Apr 12, 2015

There was doublewrapping with an unneeded msgio. given that we
use a stream muxer now, msgio is only needed by secureConn -- to
signal the boundaries of an encrypted / mac-ed ciphertext.

Side note: i think including the varint length in the clear is
actually a bad idea that can be exploited by an attacker. it should
be encrypted, too. (TODO)

WARNING: THIS PR BREAKS THE PROTOCOL. DO NOT MERGE UNTIL NEXT
PROTOCOL VERSION BUMP.

There was doublewrapping with an unneeded msgio. given that we
use a stream muxer now, msgio is only needed by secureConn -- to
signal the boundaries of an encrypted / mac-ed ciphertext.

Side note: i think including the varint length in the clear is
actually a bad idea that can be exploited by an attacker. it should
be encrypted, too. (TODO)
@jbenet jbenet added the status/in-progress In progress label Apr 12, 2015
@jbenet
Copy link
Member Author

jbenet commented Apr 12, 2015

@whyrusleeping CR pls

@jbenet jbenet mentioned this pull request Apr 12, 2015
42 tasks
@whyrusleeping
Copy link
Member

LGTM, did you run all the tests?

@jbenet
Copy link
Member Author

jbenet commented Apr 12, 2015

@whyrusleeping good point. running on jupiter now

@whyrusleeping
Copy link
Member

3nodetest passed on cassi

@jbenet
Copy link
Member Author

jbenet commented Apr 13, 2015

yep, passed on jupiter too.

@jbenet jbenet added this to the 0.3.0 milestone Apr 13, 2015
@whyrusleeping
Copy link
Member

should we start a 0.3.0-staging branch?

@jbenet jbenet added backlog and removed status/in-progress In progress labels Apr 20, 2015
@whyrusleeping
Copy link
Member

When do we want this to land?

@jbenet
Copy link
Member Author

jbenet commented May 6, 2015

with the wire fmt / stream muxer changes. i'll have the spec of what we want done this week, so maybe we could impl next week

@whyrusleeping
Copy link
Member

i'd like to work on merging this soon. it fixes #1304

@jbenet
Copy link
Member Author

jbenet commented Jun 4, 2015

@whyrusleeping yeah we'll merge it as we move to interop with ipfs/js-ipfs#13 (comment) -- making the multistream + spdy stuff work will help here.

@whyrusleeping whyrusleeping removed this from the 0.3.0 milestone Jun 17, 2015
@whyrusleeping
Copy link
Member

being merged in dev0.4.0

@whyrusleeping
Copy link
Member

closing, old pr cleanup time.

@jbenet jbenet removed the backlog label Oct 18, 2015
@Kubuxu Kubuxu deleted the msgio-unwrap branch February 27, 2017 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants