)
type cipherSuite struct {
- id uint16; // The number of this suite on the wire.
- hashLength, cipherKeyLength int;
+ id uint16; // The number of this suite on the wire.
+ hashLength, cipherKeyLength int;
// TODO(agl): need a method to create the cipher and hash interfaces.
}
// to tell it about the error.
h.controlChan <- ConnectionState{false, "", e};
close(h.controlChan);
- go func() { for _ = range h.msgChan {} }();
+ go func() {
+ for _ = range h.msgChan {
+ }
+ }();
h.writeChan <- alert{alertLevelError, e};
}
}
p.wakeWaiters();
go drainRequestChannel(p.requestChan, p.connState);
- go func() { for _ = range controlChan {} }();
+ go func() {
+ for _ = range controlChan {
+ }
+ }();
close(handshakeChan);
if len(p.appData) > 0 {