diff options
author | Jean-Philippe Garcia Ballester <giga@le-pec.org> | 2006-03-01 16:32:22 +0000 |
---|---|---|
committer | Jean-Philippe Garcia Ballester <giga@le-pec.org> | 2006-03-01 16:32:22 +0000 |
commit | 770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99 (patch) | |
tree | 22b77de706cd0e0506159db40be970f949bc17bb /libssh/crypt.c | |
parent | 10b1a631e8794932a57c84b41a6bf3870416a4cd (diff) | |
download | libssh-770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99.tar.gz libssh-770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99.tar.xz libssh-770e73d8b7d0ca1e3fd8faab08cb88307d1b1c99.zip |
keyfiles.c and wrapper.c: Remove useless secure memory flag (for libgcrypt)
dh.c: Initialize libgcrypt only if not done before
client.c: Remove cleanup of cryptograhpic library. This needs to be put
somewhere, like in a crypto_finish function or something.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@70 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/crypt.c')
-rw-r--r-- | libssh/crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/crypt.c b/libssh/crypt.c index 22e7a3f..bb3bb4e 100644 --- a/libssh/crypt.c +++ b/libssh/crypt.c @@ -78,7 +78,7 @@ unsigned char * packet_encrypt(SSH_SESSION *session,void *data,u32 len){ #endif out=malloc(len); if(session->version==2){ - ctx=hmac_init(session->current_crypto->encryptMAC,20,HMAC_SHA1); + ctx=hmac_init(session->current_crypto->encryptMAC,20,HMAC_SHA1); hmac_update(ctx,(unsigned char *)&seq,sizeof(u32)); hmac_update(ctx,data,len); hmac_final(ctx,session->current_crypto->hmacbuf,&finallen); |