compat.h revision 224638
188309Sphantom/* $OpenBSD: compat.h,v 1.42 2008/09/11 14:22:37 markus Exp $ */
287658Sphantom/* $FReeBSD$ */
372165Sphantom
472165Sphantom/*
5227753Stheraven * Copyright (c) 1999, 2000, 2001 Markus Friedl.  All rights reserved.
6227753Stheraven *
7227753Stheraven * Redistribution and use in source and binary forms, with or without
8227753Stheraven * modification, are permitted provided that the following conditions
9227753Stheraven * are met:
1072165Sphantom * 1. Redistributions of source code must retain the above copyright
1172165Sphantom *    notice, this list of conditions and the following disclaimer.
1272165Sphantom * 2. Redistributions in binary form must reproduce the above copyright
1372165Sphantom *    notice, this list of conditions and the following disclaimer in the
1472165Sphantom *    documentation and/or other materials provided with the distribution.
1572165Sphantom *
1672165Sphantom * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1772165Sphantom * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1872165Sphantom * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1972165Sphantom * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2072165Sphantom * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2172165Sphantom * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2272165Sphantom * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2372165Sphantom * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2472165Sphantom * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2572165Sphantom * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2672165Sphantom */
2772165Sphantom
2872165Sphantom#ifndef COMPAT_H
2972165Sphantom#define COMPAT_H
3072165Sphantom
3172165Sphantom#define	SSH_PROTO_UNKNOWN	0x00
3272165Sphantom#define	SSH_PROTO_1		0x01
3372165Sphantom#define	SSH_PROTO_1_PREFERRED	0x02
3488309Sphantom#define	SSH_PROTO_2		0x04
3588309Sphantom
36227753Stheraven#define SSH_BUG_SIGBLOB		0x00000001
3772165Sphantom#define SSH_BUG_PKSERVICE	0x00000002
3872165Sphantom#define SSH_BUG_HMAC		0x00000004
3988309Sphantom#define SSH_BUG_X11FWD		0x00000008
4088309Sphantom#define SSH_OLD_SESSIONID	0x00000010
4188309Sphantom#define SSH_BUG_PKAUTH		0x00000020
4272165Sphantom#define SSH_BUG_DEBUG		0x00000040
43227753Stheraven#define SSH_BUG_BANNER		0x00000080
44227753Stheraven#define SSH_BUG_IGNOREMSG	0x00000100
45227753Stheraven#define SSH_BUG_PKOK		0x00000200
46227753Stheraven#define SSH_BUG_PASSWORDPAD	0x00000400
47227753Stheraven#define SSH_BUG_SCANNER		0x00000800
4872165Sphantom#define SSH_BUG_BIGENDIANAES	0x00001000
49227753Stheraven#define SSH_BUG_RSASIGMD5	0x00002000
5088309Sphantom#define SSH_OLD_DHGEX		0x00004000
5172165Sphantom#define SSH_BUG_NOREKEY		0x00008000
5288309Sphantom#define SSH_BUG_HBSERVICE	0x00010000
53#define SSH_BUG_OPENFAILURE	0x00020000
54#define SSH_BUG_DERIVEKEY	0x00040000
55#define SSH_BUG_DUMMYCHAN	0x00100000
56#define SSH_BUG_EXTEOF		0x00200000
57#define SSH_BUG_PROBE		0x00400000
58#define SSH_BUG_FIRSTKEX	0x00800000
59#define SSH_OLD_FORWARD_ADDR	0x01000000
60#define SSH_BUG_RFWD_ADDR	0x02000000
61#define SSH_NEW_OPENSSH		0x04000000
62#define SSH_BUG_LARGEWINDOW	0x08000000
63
64void     enable_compat13(void);
65void     enable_compat20(void);
66void     compat_datafellows(const char *);
67int	 proto_spec(const char *);
68char	*compat_cipher_proposal(char *);
69
70extern int compat13;
71extern int compat20;
72extern int datafellows;
73#endif
74