From 8c05aab03d687915ab87b47922e95c8f608b0250 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 7 Apr 2009 18:46:29 +0000 Subject: 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 --- include/libssh/priv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/libssh') 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); -- cgit