diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-07 18:46:29 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-07 18:46:29 +0000 |
commit | 8c05aab03d687915ab87b47922e95c8f608b0250 (patch) | |
tree | b1b8837f7a990165d75e597e46b605c45ac3dedc /include | |
parent | 323ee63a1d267548b60492a4f94ade2e29d6fce7 (diff) | |
download | libssh-8c05aab03d687915ab87b47922e95c8f608b0250.tar.gz libssh-8c05aab03d687915ab87b47922e95c8f608b0250.tar.xz libssh-8c05aab03d687915ab87b47922e95c8f608b0250.zip |
Add return value and error checking for hash buffer cookie functions.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@419 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/priv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 98f5e6e..9262fb5 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -532,8 +532,8 @@ void dh_import_pubkey(SSH_SESSION *session,STRING *pubkey_string); void dh_build_k(SSH_SESSION *session); int make_sessionid(SSH_SESSION *session); /* add data for the final cookie */ -void hashbufin_add_cookie(SSH_SESSION *session,unsigned char *cookie); -void hashbufout_add_cookie(SSH_SESSION *session); +int hashbufin_add_cookie(SSH_SESSION *session, unsigned char *cookie); +int hashbufout_add_cookie(SSH_SESSION *session); void generate_session_keys(SSH_SESSION *session); /* returns 1 if server signature ok, 0 otherwise. The NEXT crypto is checked, not the current one */ int signature_verify(SSH_SESSION *session,STRING *signature); |