diff options
Diffstat (limited to 'deattack.h')
-rw-r--r-- | deattack.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/deattack.h b/deattack.h index 0316fb285..ce67a30ff 100644 --- a/deattack.h +++ b/deattack.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: deattack.h,v 1.10 2006/09/16 19:53:37 djm Exp $ */ | 1 | /* $OpenBSD: deattack.h,v 1.11 2015/01/19 19:52:16 markus Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Cryptographic attack detector for ssh - Header file | 4 | * Cryptographic attack detector for ssh - Header file |
@@ -26,6 +26,13 @@ | |||
26 | #define DEATTACK_OK 0 | 26 | #define DEATTACK_OK 0 |
27 | #define DEATTACK_DETECTED 1 | 27 | #define DEATTACK_DETECTED 1 |
28 | #define DEATTACK_DOS_DETECTED 2 | 28 | #define DEATTACK_DOS_DETECTED 2 |
29 | #define DEATTACK_ERROR 3 | ||
29 | 30 | ||
30 | int detect_attack(u_char *, u_int32_t); | 31 | struct deattack_ctx { |
32 | u_int16_t *h; | ||
33 | u_int32_t n; | ||
34 | }; | ||
35 | |||
36 | void deattack_init(struct deattack_ctx *); | ||
37 | int detect_attack(struct deattack_ctx *, const u_char *, u_int32_t); | ||
31 | #endif | 38 | #endif |