Add return value to dh_build_k().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@506 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-16 14:55:38 +00:00
parent c6eb54c39e
commit a092a84139
4 changed files with 51 additions and 25 deletions

View File

@@ -300,7 +300,9 @@ static int dh_handshake_server(SSH_SESSION *session){
pubkey=publickey_to_string(pub);
publickey_free(pub);
dh_import_pubkey(session,pubkey);
dh_build_k(session);
if (dh_build_k(session) < 0) {
return -1;
}
if (make_sessionid(session) != SSH_OK) {
return -1;
}