mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 18:29:50 +09:00
norbert's Makefile.in and crypt.c patches
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@48 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -36,12 +36,12 @@ MA 02111-1307, USA. */
|
||||
#include "libssh/crypto.h"
|
||||
|
||||
u32 packet_decrypt_len(SSH_SESSION *session, char *crypted){
|
||||
u32 *decrypted;
|
||||
u32 decrypted;
|
||||
if(session->current_crypto)
|
||||
packet_decrypt(session,crypted,session->current_crypto->in_cipher->blocksize);
|
||||
decrypted=(u32 *)crypted;
|
||||
ssh_say(3,"size decrypted : %lx\n",ntohl(*decrypted));
|
||||
return ntohl(*decrypted);
|
||||
memcpy(&decrypted,crypted,sizeof(decrypted));
|
||||
ssh_say(3,"size decrypted : %lx\n",ntohl(decrypted));
|
||||
return ntohl(decrypted);
|
||||
}
|
||||
|
||||
int packet_decrypt(SSH_SESSION *session, void *data,u32 len){
|
||||
|
||||
Reference in New Issue
Block a user