xref: /titanic_44/usr/src/cmd/ssh/include/deattack.h (revision 60779adb24bbd974e68a9993a8eafd79a30ad887)
17c478bd9Sstevel@tonic-gate /*	$OpenBSD: deattack.h,v 1.7 2001/06/26 17:27:23 markus Exp $	*/
27c478bd9Sstevel@tonic-gate 
37c478bd9Sstevel@tonic-gate #ifndef	_DEATTACK_H
47c478bd9Sstevel@tonic-gate #define	_DEATTACK_H
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
77c478bd9Sstevel@tonic-gate 
87c478bd9Sstevel@tonic-gate #ifdef __cplusplus
97c478bd9Sstevel@tonic-gate extern "C" {
107c478bd9Sstevel@tonic-gate #endif
117c478bd9Sstevel@tonic-gate 
127c478bd9Sstevel@tonic-gate 
137c478bd9Sstevel@tonic-gate /*
147c478bd9Sstevel@tonic-gate  * Cryptographic attack detector for ssh - Header file
157c478bd9Sstevel@tonic-gate  *
167c478bd9Sstevel@tonic-gate  * Copyright (c) 1998 CORE SDI S.A., Buenos Aires, Argentina.
177c478bd9Sstevel@tonic-gate  *
187c478bd9Sstevel@tonic-gate  * All rights reserved. Redistribution and use in source and binary
197c478bd9Sstevel@tonic-gate  * forms, with or without modification, are permitted provided that
207c478bd9Sstevel@tonic-gate  * this copyright notice is retained.
217c478bd9Sstevel@tonic-gate  *
227c478bd9Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
237c478bd9Sstevel@tonic-gate  * WARRANTIES ARE DISCLAIMED. IN NO EVENT SHALL CORE SDI S.A. BE
247c478bd9Sstevel@tonic-gate  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR
257c478bd9Sstevel@tonic-gate  * CONSEQUENTIAL DAMAGES RESULTING FROM THE USE OR MISUSE OF THIS
267c478bd9Sstevel@tonic-gate  * SOFTWARE.
277c478bd9Sstevel@tonic-gate  *
287c478bd9Sstevel@tonic-gate  * Ariel Futoransky <futo@core-sdi.com>
297c478bd9Sstevel@tonic-gate  * <http://www.core-sdi.com>
307c478bd9Sstevel@tonic-gate  */
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate /* Return codes */
337c478bd9Sstevel@tonic-gate #define DEATTACK_OK		0
347c478bd9Sstevel@tonic-gate #define DEATTACK_DETECTED	1
35*60779adbSjp161948 #define DEATTACK_DOS_DETECTED	2
367c478bd9Sstevel@tonic-gate 
377c478bd9Sstevel@tonic-gate int	 detect_attack(u_char *, u_int32_t, u_char[8]);
387c478bd9Sstevel@tonic-gate 
397c478bd9Sstevel@tonic-gate #ifdef __cplusplus
407c478bd9Sstevel@tonic-gate }
417c478bd9Sstevel@tonic-gate #endif
427c478bd9Sstevel@tonic-gate 
437c478bd9Sstevel@tonic-gate #endif /* _DEATTACK_H */
44