xref: /onnv-gate/usr/src/cmd/ssh/include/deattack.h (revision 3102:44397adb0751)
10Sstevel@tonic-gate /*	$OpenBSD: deattack.h,v 1.7 2001/06/26 17:27:23 markus Exp $	*/
20Sstevel@tonic-gate 
30Sstevel@tonic-gate #ifndef	_DEATTACK_H
40Sstevel@tonic-gate #define	_DEATTACK_H
50Sstevel@tonic-gate 
60Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
70Sstevel@tonic-gate 
80Sstevel@tonic-gate #ifdef __cplusplus
90Sstevel@tonic-gate extern "C" {
100Sstevel@tonic-gate #endif
110Sstevel@tonic-gate 
120Sstevel@tonic-gate 
130Sstevel@tonic-gate /*
140Sstevel@tonic-gate  * Cryptographic attack detector for ssh - Header file
150Sstevel@tonic-gate  *
160Sstevel@tonic-gate  * Copyright (c) 1998 CORE SDI S.A., Buenos Aires, Argentina.
170Sstevel@tonic-gate  *
180Sstevel@tonic-gate  * All rights reserved. Redistribution and use in source and binary
190Sstevel@tonic-gate  * forms, with or without modification, are permitted provided that
200Sstevel@tonic-gate  * this copyright notice is retained.
210Sstevel@tonic-gate  *
220Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
230Sstevel@tonic-gate  * WARRANTIES ARE DISCLAIMED. IN NO EVENT SHALL CORE SDI S.A. BE
240Sstevel@tonic-gate  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR
250Sstevel@tonic-gate  * CONSEQUENTIAL DAMAGES RESULTING FROM THE USE OR MISUSE OF THIS
260Sstevel@tonic-gate  * SOFTWARE.
270Sstevel@tonic-gate  *
280Sstevel@tonic-gate  * Ariel Futoransky <futo@core-sdi.com>
290Sstevel@tonic-gate  * <http://www.core-sdi.com>
300Sstevel@tonic-gate  */
310Sstevel@tonic-gate 
320Sstevel@tonic-gate /* Return codes */
330Sstevel@tonic-gate #define DEATTACK_OK		0
340Sstevel@tonic-gate #define DEATTACK_DETECTED	1
35*3102Sjp161948 #define DEATTACK_DOS_DETECTED	2
360Sstevel@tonic-gate 
370Sstevel@tonic-gate int	 detect_attack(u_char *, u_int32_t, u_char[8]);
380Sstevel@tonic-gate 
390Sstevel@tonic-gate #ifdef __cplusplus
400Sstevel@tonic-gate }
410Sstevel@tonic-gate #endif
420Sstevel@tonic-gate 
430Sstevel@tonic-gate #endif /* _DEATTACK_H */
44