diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-10-02 02:13:15 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-10-03 13:52:19 +0300 |
commit | c340192144eecf06e2f35277f099d127a2f0c549 (patch) | |
tree | 8d2e532cba58f9a8f0e968415cc441c1e75b0bc9 /src/packet_crypt.c | |
parent | b6d0b531f81f271c963ece3f540403ad1499468f (diff) | |
download | libssh-c340192144eecf06e2f35277f099d127a2f0c549.tar.gz libssh-c340192144eecf06e2f35277f099d127a2f0c549.tar.xz libssh-c340192144eecf06e2f35277f099d127a2f0c549.zip |
packet: cleaner logs with less redundant info
Diffstat (limited to 'src/packet_crypt.c')
-rw-r--r-- | src/packet_crypt.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/packet_crypt.c b/src/packet_crypt.c index 6f78138..9b6728d 100644 --- a/src/packet_crypt.c +++ b/src/packet_crypt.c @@ -51,12 +51,7 @@ uint32_t packet_decrypt_len(ssh_session session, char *crypted){ return 0; } } - memcpy(&decrypted,crypted,sizeof(decrypted)); - ssh_log(session, SSH_LOG_PACKET, - "Packet size decrypted: %lu (0x%lx)", - (long unsigned int) ntohl(decrypted), - (long unsigned int) ntohl(decrypted)); return ntohl(decrypted); } @@ -72,9 +67,6 @@ int packet_decrypt(ssh_session session, void *data,uint32_t len) { return -1; } - ssh_log(session,SSH_LOG_PACKET, "Decrypting %d bytes", len); - - if (crypto->set_decrypt_key(crypto, session->current_crypto->decryptkey, session->current_crypto->decryptIV) < 0) { SAFE_FREE(out); @@ -111,10 +103,6 @@ unsigned char *packet_encrypt(ssh_session session, void *data, uint32_t len) { seq = ntohl(session->send_seq); crypto = session->current_crypto->out_cipher; - ssh_log(session, SSH_LOG_PACKET, - "Encrypting packet with seq num: %d, len: %d", - session->send_seq,len); - if (crypto->set_encrypt_key(crypto, session->current_crypto->encryptkey, session->current_crypto->encryptIV) < 0) { SAFE_FREE(out); |