1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

First step getting rid of ssh_buffer_get_begin

This commit is contained in:
Aris Adamantiadis
2010-10-01 23:41:04 +02:00
parent 985db35173
commit 873e02fc6a
2 changed files with 5 additions and 5 deletions

View File

@@ -206,8 +206,8 @@ int ssh_packet_socket_callback(const void *data, size_t receivedlen, void *user)
* have been decrypted)
*/
if (packet_decrypt(session,
((uint8_t*)ssh_buffer_get_begin(session->in_buffer) + blocksize),
ssh_buffer_get_len(session->in_buffer) - blocksize) < 0) {
((uint8_t*)buffer_get_rest(session->in_buffer) + blocksize),
buffer_get_rest_len(session->in_buffer) - blocksize) < 0) {
ssh_set_error(session, SSH_FATAL, "Decrypt error");
goto error;
}