save the proof in client CryptoSetup

This commit is contained in:
Marten Seemann
2016-11-16 17:27:24 +07:00
parent a388d6bf6a
commit 5aae3fbafe
2 changed files with 13 additions and 0 deletions

View File

@@ -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 {