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:
Aris Adamantiadis
2005-10-26 21:46:48 +00:00
parent 7b416e5c52
commit cddc5d6889
2 changed files with 37 additions and 18 deletions

View File

@@ -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){