compat.h revision 69587
1187517Sgonzo/* 2187517Sgonzo * Copyright (c) 1999 Markus Friedl. All rights reserved. 3187517Sgonzo * 4187517Sgonzo * Redistribution and use in source and binary forms, with or without 5187517Sgonzo * modification, are permitted provided that the following conditions 6187517Sgonzo * are met: 7187517Sgonzo * 1. Redistributions of source code must retain the above copyright 8187517Sgonzo * notice, this list of conditions and the following disclaimer. 9187517Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 10187517Sgonzo * notice, this list of conditions and the following disclaimer in the 11187517Sgonzo * documentation and/or other materials provided with the distribution. 12187517Sgonzo * 13187517Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14187517Sgonzo * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15187517Sgonzo * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16187517Sgonzo * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17187517Sgonzo * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 18187517Sgonzo * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 19187517Sgonzo * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 20187517Sgonzo * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21187517Sgonzo * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22187517Sgonzo * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23187517Sgonzo */ 24187517Sgonzo/* RCSID("$OpenBSD: compat.h,v 1.11 2000/10/14 12:16:56 markus Exp $"); */ 25187517Sgonzo 26187517Sgonzo#ifndef COMPAT_H 27187517Sgonzo#define COMPAT_H 28187517Sgonzo 29187517Sgonzo#define SSH_PROTO_UNKNOWN 0x00 30187517Sgonzo#define SSH_PROTO_1 0x01 31187517Sgonzo#define SSH_PROTO_1_PREFERRED 0x02 32187517Sgonzo#define SSH_PROTO_2 0x04 33187517Sgonzo 34187517Sgonzo#define SSH_BUG_SIGBLOB 0x01 35187517Sgonzo#define SSH_BUG_PUBKEYAUTH 0x02 36187517Sgonzo#define SSH_BUG_HMAC 0x04 37187517Sgonzo#define SSH_BUG_X11FWD 0x08 38187517Sgonzo#define SSH_OLD_SESSIONID 0x10 39232847Sgonzo 40232847Sgonzovoid enable_compat13(void); 41232847Sgonzovoid enable_compat20(void); 42232847Sgonzovoid compat_datafellows(const char *s); 43187517Sgonzoint proto_spec(const char *spec); 44187517Sgonzoextern int compat13; 45199497Sgonzoextern int compat20; 46187517Sgonzoextern int datafellows; 47187517Sgonzo#endif 48187517Sgonzo