compat.h revision 106130
162590Sitojun/* $OpenBSD: compat.h,v 1.33 2002/09/27 10:42:09 mickey Exp $ */ 2122615Sume/* $FreeBSD: head/crypto/openssh/compat.h 106130 2002-10-29 10:16:02Z des $ */ 362590Sitojun 455505Sshin/* 555505Sshin * Copyright (c) 1999, 2000, 2001 Markus Friedl. All rights reserved. 655505Sshin * 755505Sshin * Redistribution and use in source and binary forms, with or without 855505Sshin * modification, are permitted provided that the following conditions 955505Sshin * are met: 1055505Sshin * 1. Redistributions of source code must retain the above copyright 1155505Sshin * notice, this list of conditions and the following disclaimer. 1255505Sshin * 2. Redistributions in binary form must reproduce the above copyright 1355505Sshin * notice, this list of conditions and the following disclaimer in the 1455505Sshin * documentation and/or other materials provided with the distribution. 1555505Sshin * 1655505Sshin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1755505Sshin * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1855505Sshin * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1955505Sshin * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2055505Sshin * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2155505Sshin * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2255505Sshin * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2355505Sshin * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2455505Sshin * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2555505Sshin * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2655505Sshin */ 2755505Sshin 2855505Sshin#ifndef COMPAT_H 2955505Sshin#define COMPAT_H 3055505Sshin 3155505Sshin#define SSH_PROTO_UNKNOWN 0x00 3255505Sshin#define SSH_PROTO_1 0x01 3355505Sshin#define SSH_PROTO_1_PREFERRED 0x02 3455505Sshin#define SSH_PROTO_2 0x04 3555505Sshin 3655505Sshin#define SSH_BUG_SIGBLOB 0x00000001 3755505Sshin#define SSH_BUG_PKSERVICE 0x00000002 3855505Sshin#define SSH_BUG_HMAC 0x00000004 3955505Sshin#define SSH_BUG_X11FWD 0x00000008 4055505Sshin#define SSH_OLD_SESSIONID 0x00000010 4155505Sshin#define SSH_BUG_PKAUTH 0x00000020 4255505Sshin#define SSH_BUG_DEBUG 0x00000040 4355505Sshin#define SSH_BUG_BANNER 0x00000080 4455505Sshin#define SSH_BUG_IGNOREMSG 0x00000100 4555505Sshin#define SSH_BUG_PKOK 0x00000200 4655505Sshin#define SSH_BUG_PASSWORDPAD 0x00000400 4755505Sshin#define SSH_BUG_SCANNER 0x00000800 4855505Sshin#define SSH_BUG_BIGENDIANAES 0x00001000 4955505Sshin#define SSH_BUG_RSASIGMD5 0x00002000 5055505Sshin#define SSH_OLD_DHGEX 0x00004000 5155505Sshin#define SSH_BUG_NOREKEY 0x00008000 5255505Sshin#define SSH_BUG_HBSERVICE 0x00010000 5355505Sshin#define SSH_BUG_OPENFAILURE 0x00020000 5455505Sshin#define SSH_BUG_DERIVEKEY 0x00040000 5555505Sshin#define SSH_BUG_DUMMYCHAN 0x00100000 5655505Sshin#define SSH_BUG_EXTEOF 0x00200000 5755505Sshin#define SSH_BUG_K5USER 0x00400000 5855505Sshin#define SSH_BUG_PROBE 0x00800000 5955505Sshin 6055505Sshinvoid enable_compat13(void); 6155505Sshinvoid enable_compat20(void); 6255505Sshinvoid compat_datafellows(const char *); 6355505Sshinint proto_spec(const char *); 6455505Sshinchar *compat_cipher_proposal(char *); 6555505Sshin 6655505Sshinextern int compat13; 6755505Sshinextern int compat20; 6855505Sshinextern int datafellows; 6955505Sshin#endif 7055505Sshin