Add error checks to ssh_crypto_init().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@493 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-16 14:10:41 +00:00
parent 1ed7c90890
commit 94021dcdb5
3 changed files with 45 additions and 23 deletions

View File

@@ -520,8 +520,7 @@ void dh_generate_x(SSH_SESSION *session);
void dh_generate_y(SSH_SESSION *session);
void dh_generate_f(SSH_SESSION *session);
/* FIXME: replace me with a thread safe function */
void ssh_crypto_init(void);
int ssh_crypto_init(void);
void ssh_crypto_finalize(void);
STRING *dh_get_e(SSH_SESSION *session);