[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HMAC error
[Thread Prev] | [Thread Next]
- Subject: Re: HMAC error
- From: Aris Adamantiadis <aris@xxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 06 Jul 2012 10:51:16 +0200
- To: libssh@xxxxxxxxxx
Hello, Sorry I took so much time to answer. Unfortunately I don't understand what's happening there. These three lines :leaving function ssh_packet_socket_callback line 294 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.c leaving function ssh_packet_socket_callback line 282 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.c leaving function ssh_packet_socket_callback line 282 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.c leaving function ssh_packet_socket_callback line 282 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.c*1* entering function
Show that at some point, there was some recursion which is not expected in libssh. Do you use callbacks ? It is unsafe to use ssh_channel_read-like function calls inside callback processing.
A sample of your code would help a lot. Thx, Aris Le 2/07/12 15:07, Aviv Zilberman a écrit :
*Hi,* ***I moved my application to single process but I am still facing HMAC error.**Below is a snap of the last few lines in log.* ** *Thanks in advance,* *Aviv *entering function ssh_channel_poll line 2495 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.centering function ssh_handle_packets line 446 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/session.centering function ssh_packet_socket_callback line 138 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cRead a 1340 bytes packet Decrypting 1328 bytes 20 bytes padding, 1339 bytes left in buffer After padding, 1319 bytes left in bufferentering function ssh_packet_parse_type line 406 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cFinal size 1319 Type 94leaving function ssh_packet_parse_type line 426 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.centering function ssh_packet_process line 342 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cDispatching handler for packet type 94entering function channel_rcv_data line 461 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.cChannel receiving 1310 bytes data in 0 (local win=93430 remote win=36320) placing 1310 bytes into channel buffer (stderr=0) Channel windows are now (local win=92120 remote win=36320)leaving function channel_rcv_data line 549 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.cleaving function ssh_packet_process line 369 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cProcessing 3044 bytes left in socket bufferentering function ssh_packet_socket_callback line 138 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cDecrypting 16 bytes Packet size decrypted: 1340 (0x53c) Read a 1340 bytes packet Decrypting 1328 bytes 20 bytes padding, 1339 bytes left in buffer After padding, 1319 bytes left in bufferentering function ssh_packet_parse_type line 406 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cFinal size 1319 Type 94leaving function ssh_packet_parse_type line 426 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.centering function ssh_packet_process line 342 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cDispatching handler for packet type 94entering function channel_rcv_data line 461 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.cChannel receiving 1310 bytes data in 0 (local win=92120 remote win=36320) placing 1310 bytes into channel buffer (stderr=0) Channel windows are now (local win=90810 remote win=36320)leaving function channel_rcv_data line 549 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.cleaving function ssh_packet_process line 369 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cProcessing 1680 bytes left in socket bufferentering function ssh_packet_socket_callback line 138 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cDecrypting 16 bytes Packet size decrypted: 28 (0x1c) Read a 28 bytes packet Decrypting 16 bytes 18 bytes padding, 27 bytes left in buffer After padding, 9 bytes left in bufferentering function ssh_packet_parse_type line 406 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cFinal size 9 Type 93leaving function ssh_packet_parse_type line 426 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.centering function ssh_packet_process line 342 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cDispatching handler for packet type 93entering function channel_rcv_change_window line 423 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.cAdding 64 bytes to channel (43:85460946) (from 36320 bytes)leaving function channel_rcv_change_window line 448 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/channels.cleaving function ssh_packet_process line 369 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cProcessing 1628 bytes left in socket bufferentering function ssh_packet_socket_callback line 138 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cDecrypting 16 bytes Packet size decrypted: 1340 (0x53c) Read a 1340 bytes packet Decrypting 1328 bytes Error : HMAC errorleaving function ssh_packet_socket_callback line 294 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cleaving function ssh_packet_socket_callback line 282 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cleaving function ssh_packet_socket_callback line 282 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.cleaving function ssh_packet_socket_callback line 282 in /auto/ns_nm/users/azilber/SSH/libssh/libssh-0.5.1/src/packet.c*1* entering functionThis e-mail message is intended for the recipient only and contains information which is CONFIDENTIAL and which may be proprietary to ECI Telecom. If you have received this transmission in error, please inform us by e-mail, phone or fax, and then delete the original and all copies thereof.
RE: HMAC error | Aviv Zilberman <Aviv.Zilberman@xxxxxxxxxxx> |
HMAC error | Aviv Zilberman <Aviv.Zilberman@xxxxxxxxxxx> |