diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:51 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 16:48:11 +0100 |
commit | 0f0841b2d28b7463267d4d91577e72e3340a1d3a (patch) | |
tree | ba55fcd2b6e2cc22b30f5afb561dbb3da4c8b6c7 /deattack.h | |
parent | f2a5f5dae656759efb0b76c3d94890b65c197a02 (diff) | |
parent | 8698446b972003b63dfe5dcbdb86acfe986afb85 (diff) |
New upstream release (6.8p1).
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 |