Browse Source

Fix client key share

master
Henry Case 5 years ago
parent
commit
4a7cf1bb76
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      13.go

+ 1
- 1
13.go View File

@@ -460,7 +460,6 @@ func (hs *serverHandshakeState) readClientFinished13(hasConfirmLock bool) error
c.in.traceErr, c.out.traceErr = nil, nil c.in.traceErr, c.out.traceErr = nil, nil
c.phase = handshakeConfirmed c.phase = handshakeConfirmed
atomic.StoreInt32(&c.handshakeConfirmed, 1) atomic.StoreInt32(&c.handshakeConfirmed, 1)
hs.c.Group = hs.hello.keyShare.group


// Any read operation after handshakeRunning and before handshakeConfirmed // Any read operation after handshakeRunning and before handshakeConfirmed
// will be holding this lock, which we release as soon as the confirmation // will be holding this lock, which we release as soon as the confirmation
@@ -1203,6 +1202,7 @@ func (hs *clientHandshakeState) doTLS13Handshake() error {
return errors.New("tls: unexpected data after handshake") return errors.New("tls: unexpected data after handshake")
} }
c.in.setCipher(c.vers, appServerCipher) c.in.setCipher(c.vers, appServerCipher)
hs.c.Group = serverHello.keyShare.group
return nil return nil
} }




Loading…
Cancel
Save