version 1.250, 2017/04/30 23:23:54 |
version 1.251, 2017/04/30 23:26:16 |
|
|
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "crc32.h" |
#include "crc32.h" |
#include "deattack.h" |
|
#include "compat.h" |
#include "compat.h" |
#include "ssh1.h" |
#include "ssh1.h" |
#include "ssh2.h" |
#include "ssh2.h" |
|
|
/* One-off warning about weak ciphers */ |
/* One-off warning about weak ciphers */ |
int cipher_warning_done; |
int cipher_warning_done; |
|
|
/* SSH1 CRC compensation attack detector */ |
|
struct deattack_ctx deattack; |
|
|
|
/* Hook for fuzzing inbound packets */ |
/* Hook for fuzzing inbound packets */ |
ssh_packet_hook_fn *hook_in; |
ssh_packet_hook_fn *hook_in; |
void *hook_in_ctx; |
void *hook_in_ctx; |
|
|
return NULL; |
return NULL; |
} |
} |
state->newkeys[MODE_IN] = state->newkeys[MODE_OUT] = NULL; |
state->newkeys[MODE_IN] = state->newkeys[MODE_OUT] = NULL; |
deattack_init(&state->deattack); |
|
/* |
/* |
* Cache the IP address of the remote connection for use in error |
* Cache the IP address of the remote connection for use in error |
* messages that might be generated after the connection has closed. |
* messages that might be generated after the connection has closed. |