aboutsummaryrefslogtreecommitdiff
path: root/libssh/client.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-16 15:14:15 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-16 15:14:15 +0000
commit5b2586312a8793ca056294665fed597c7fc6791a (patch)
tree2c1c1b1e198d4fe8b661c2f415e69e51749cd34a /libssh/client.c
parentac38bbc138c5dbc55a292b1bb90c7a94795d6a7c (diff)
downloadlibssh-5b2586312a8793ca056294665fed597c7fc6791a.tar.gz
libssh-5b2586312a8793ca056294665fed597c7fc6791a.tar.xz
libssh-5b2586312a8793ca056294665fed597c7fc6791a.zip
Add return values to generate_session_keys() and generate_one_key().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@508 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/client.c')
-rw-r--r--libssh/client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libssh/client.c b/libssh/client.c
index f8d95d9b..a7e695f4 100644
--- a/libssh/client.c
+++ b/libssh/client.c
@@ -313,7 +313,10 @@ static int dh_handshake(SSH_SESSION *session) {
goto error;
}
- generate_session_keys(session);
+ if (generate_session_keys(session) < 0) {
+ rc = SSH_ERROR;
+ goto error;
+ }
/* Verify the host's signature. FIXME do it sooner */
signature = session->dh_server_signature;