1 /*      $OpenBSD: deattack.h,v 1.7 2001/06/26 17:27:23 markus Exp $     */
   2 
   3 #ifndef _DEATTACK_H
   4 #define _DEATTACK_H
   5 
   6 #pragma ident   "%Z%%M% %I%     %E% SMI"
   7 
   8 #ifdef __cplusplus
   9 extern "C" {
  10 #endif
  11 
  12 
  13 /*
  14  * Cryptographic attack detector for ssh - Header file
  15  *
  16  * Copyright (c) 1998 CORE SDI S.A., Buenos Aires, Argentina.
  17  *
  18  * All rights reserved. Redistribution and use in source and binary
  19  * forms, with or without modification, are permitted provided that
  20  * this copyright notice is retained.
  21  *
  22  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
  23  * WARRANTIES ARE DISCLAIMED. IN NO EVENT SHALL CORE SDI S.A. BE
  24  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR
  25  * CONSEQUENTIAL DAMAGES RESULTING FROM THE USE OR MISUSE OF THIS
  26  * SOFTWARE.
  27  *
  28  * Ariel Futoransky <futo@core-sdi.com>
  29  * <http://www.core-sdi.com>
  30  */
  31 
  32 /* Return codes */
  33 #define DEATTACK_OK             0
  34 #define DEATTACK_DETECTED       1
  35 #define DEATTACK_DOS_DETECTED   2
  36 
  37 int      detect_attack(u_char *, u_int32_t, u_char[8]);
  38 
  39 #ifdef __cplusplus
  40 }
  41 #endif
  42 
  43 #endif /* _DEATTACK_H */