improve logging and tests of cryptoSetupServer

This commit is contained in:
Marten Seemann
2017-03-22 19:23:48 +07:00
parent 0ef6527165
commit 19aad731ed
2 changed files with 70 additions and 156 deletions

View File

@@ -257,7 +257,7 @@ func (h *cryptoSetupServer) isInchoateCHLO(cryptoData map[Tag][]byte, cert []byt
return true
}
if err := h.scfg.stkSource.VerifyToken(h.sourceAddr, cryptoData[TagSTK]); err != nil {
utils.Infof("STK invalid: %s", err.Error())
utils.Debugf("STK invalid: %s", err.Error())
return true
}
return false