Set OpenConnection.OtherHostname after successful auth proof

This commit is contained in:
John Brooks 2016-10-01 15:51:55 -07:00 committed by Sarah Jamie Lewis
parent f6d6991f46
commit 733e00d6f9
1 changed files with 1 additions and 1 deletions

View File

@ -154,8 +154,8 @@ func (oc *OpenConnection) ValidateProof(channel int32, publicKeyBytes []byte, si
challenge := oc.authHandler[channel].GenChallenge(provisionalHostname, oc.MyHostname)
err = rsa.VerifyPKCS1v15(publicKey, crypto.SHA256, challenge[:], signature)
if err == nil {
oc.OtherHostname = provisionalHostname
return true
}
return false