compat.h revision 65668
155682Smarkm/* 255682Smarkm * Copyright (c) 1999 Markus Friedl. All rights reserved. 355682Smarkm * 455682Smarkm * Redistribution and use in source and binary forms, with or without 555682Smarkm * modification, are permitted provided that the following conditions 655682Smarkm * are met: 755682Smarkm * 1. Redistributions of source code must retain the above copyright 855682Smarkm * notice, this list of conditions and the following disclaimer. 955682Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1055682Smarkm * notice, this list of conditions and the following disclaimer in the 1155682Smarkm * documentation and/or other materials provided with the distribution. 1255682Smarkm * 1355682Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1455682Smarkm * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1555682Smarkm * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 1655682Smarkm * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 1755682Smarkm * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1855682Smarkm * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1955682Smarkm * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2055682Smarkm * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2155682Smarkm * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2255682Smarkm * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2355682Smarkm */ 2455682Smarkm/* RCSID("$OpenBSD: compat.h,v 1.10 2000/09/07 20:27:50 deraadt Exp $"); */ 2555682Smarkm 2655682Smarkm#ifndef COMPAT_H 2755682Smarkm#define COMPAT_H 2855682Smarkm 2955682Smarkm#define SSH_PROTO_UNKNOWN 0x00 3055682Smarkm#define SSH_PROTO_1 0x01 3155682Smarkm#define SSH_PROTO_1_PREFERRED 0x02 3255682Smarkm#define SSH_PROTO_2 0x04 3355682Smarkm 3455682Smarkm#define SSH_BUG_SIGBLOB 0x01 3555682Smarkm#define SSH_BUG_PUBKEYAUTH 0x02 3655682Smarkm#define SSH_BUG_HMAC 0x04 3755682Smarkm#define SSH_BUG_X11FWD 0x08 3855682Smarkm#define SSH_COMPAT_SESSIONID_ENCODING 0x10 3955682Smarkm 4055682Smarkmvoid enable_compat13(void); 4155682Smarkmvoid enable_compat20(void); 4255682Smarkmvoid compat_datafellows(const char *s); 4355682Smarkmint proto_spec(const char *spec); 4455682Smarkmextern int compat13; 4555682Smarkmextern int compat20; 4655682Smarkmextern int datafellows; 4755682Smarkm#endif 4855682Smarkm