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

Minq draft 21 #135

Merged
merged 8 commits into from
Jul 25, 2017
Merged

Minq draft 21 #135

merged 8 commits into from
Jul 25, 2017

Conversation

ekr
Copy link
Collaborator

@ekr ekr commented Jul 14, 2017

No description provided.

@@ -173,10 +173,12 @@ func (h *HandshakeLayer) sendAlert(err Alert) error {

func (h *HandshakeLayer) ReadMessage() (*HandshakeMessage, error) {
var hdr, body []byte
err := WouldBlock
err := error(nil)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better: var err error

Copy link
Owner

@bifurcation bifurcation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R+ with nits fixed

conn.go Outdated
return HkdfExpandLabel(c.state.cryptoParams.Hash, tmpSecret, "exporter", hc, keyLength), nil
}

func (c *Conn) GetConnectionState() ConnectionState {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Think State() would be more aesthetic

HandshakeState string // string representation of the handshake state.
CipherSuite CipherSuiteParams // cipher suite in use (TLS_RSA_WITH_RC4_128_SHA, ...)
PeerCertificates []*x509.Certificate // certificate chain presented by remote peer TODO([email protected]): implement
NextProto string // Selected ALPN proto
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is starting to look mighty similar to ConnectionParams. Is there some way to de-dup?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably but I think too hard for this PR. See #136

frame-reader.go Outdated
@@ -2,8 +2,7 @@
// This is used for both TLS Records and TLS Handshake Messages
package mint

import (
)
import ()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: You can just delete this line.

@bifurcation bifurcation merged commit 4f4f8df into bifurcation:master Jul 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants