forked from quic-go/quic-go
save the proof in client CryptoSetup
This commit is contained in:
@@ -25,6 +25,7 @@ type cryptoSetupClient struct {
|
||||
stk []byte
|
||||
sno []byte
|
||||
nonc []byte
|
||||
proof []byte
|
||||
diversificationNonce []byte
|
||||
lastSentCHLO []byte
|
||||
certManager crypto.CertManager
|
||||
@@ -132,6 +133,10 @@ func (h *cryptoSetupClient) handleREJMessage(cryptoData map[Tag][]byte) error {
|
||||
}
|
||||
}
|
||||
|
||||
if proof, ok := cryptoData[TagPROF]; ok {
|
||||
h.proof = proof
|
||||
}
|
||||
|
||||
if crt, ok := cryptoData[TagCERT]; ok {
|
||||
err := h.certManager.SetData(crt)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user