log REJs and SHLOs

This commit is contained in:
Marten Seemann
2017-01-05 10:15:11 +07:00
parent 1b57a9f317
commit d0198c698a

View File

@@ -250,6 +250,7 @@ func (h *CryptoSetup) handleInchoateCHLO(sni string, chlo []byte, cryptoData map
var serverReply bytes.Buffer
WriteHandshakeMessage(&serverReply, TagREJ, replyMap)
utils.Debugf("Sending REJ:\n%s", printHandshakeMessage(cryptoData))
return serverReply.Bytes(), nil
}
@@ -345,6 +346,7 @@ func (h *CryptoSetup) handleCHLO(sni string, data []byte, cryptoData map[Tag][]b
var reply bytes.Buffer
WriteHandshakeMessage(&reply, TagSHLO, replyMap)
utils.Debugf("Sending SHLO:\n%s", printHandshakeMessage(cryptoData))
h.aeadChanged <- struct{}{}