compat.h revision 76262
1234285Sdim/*
2234285Sdim * Copyright (c) 1999 Markus Friedl.  All rights reserved.
3234285Sdim *
4234285Sdim * Redistribution and use in source and binary forms, with or without
5234285Sdim * modification, are permitted provided that the following conditions
6234285Sdim * are met:
7234285Sdim * 1. Redistributions of source code must retain the above copyright
8234285Sdim *    notice, this list of conditions and the following disclaimer.
9234285Sdim * 2. Redistributions in binary form must reproduce the above copyright
10234285Sdim *    notice, this list of conditions and the following disclaimer in the
11234285Sdim *    documentation and/or other materials provided with the distribution.
12234285Sdim *
13234285Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14234285Sdim * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
15234285Sdim * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
16234285Sdim * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17234285Sdim * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18234285Sdim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19249423Sdim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20234285Sdim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21234285Sdim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22249423Sdim * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23243830Sdim */
24234285Sdim/* RCSID("$FreeBSD: head/crypto/openssh/compat.h 76262 2001-05-04 04:14:23Z green $"); */
25234285Sdim/* RCSID("$OpenBSD: compat.h,v 1.23 2001/04/12 19:15:24 markus Exp $"); */
26234285Sdim
27234285Sdim#ifndef COMPAT_H
28234285Sdim#define COMPAT_H
29243830Sdim
30234285Sdim#define	SSH_PROTO_UNKNOWN 	0x00
31234285Sdim#define	SSH_PROTO_1		0x01
32249423Sdim#define	SSH_PROTO_1_PREFERRED	0x02
33234285Sdim#define	SSH_PROTO_2		0x04
34249423Sdim
35249423Sdim#define SSH_BUG_SIGBLOB		0x0001
36249423Sdim#define SSH_BUG_PKSERVICE	0x0002
37249423Sdim#define SSH_BUG_HMAC		0x0004
38249423Sdim#define SSH_BUG_X11FWD		0x0008
39249423Sdim#define SSH_OLD_SESSIONID	0x0010
40249423Sdim#define SSH_BUG_PKAUTH		0x0020
41249423Sdim#define SSH_BUG_DEBUG		0x0040
42249423Sdim#define SSH_BUG_BANNER		0x0080
43249423Sdim#define SSH_BUG_IGNOREMSG	0x0100
44249423Sdim#define SSH_BUG_PKOK		0x0200
45234285Sdim#define SSH_BUG_PASSWORDPAD	0x0400
46234285Sdim#define SSH_BUG_SCANNER		0x0800
47249423Sdim#define SSH_BUG_BIGENDIANAES	0x1000
48234285Sdim#define SSH_BUG_RSASIGMD5	0x2000
49239462Sdim#define SSH_OLD_DHGEX		0x4000
50234285Sdim#define SSH_BUG_NOREKEY		0x8000
51234285Sdim#define SSH_BUG_HBSERVICE	0x10000
52234285Sdim
53243830Sdimvoid    enable_compat13(void);
54243830Sdimvoid    enable_compat20(void);
55243830Sdimvoid    compat_datafellows(const char *s);
56243830Sdimint	proto_spec(const char *spec);
57234285Sdimchar	*compat_cipher_proposal(char *cipher_prop);
58234285Sdimextern int compat13;
59234285Sdimextern int compat20;
60234285Sdimextern int datafellows;
61243830Sdim#endif
62243830Sdim