summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/compat.h
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-04-12 07:45:45 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-04-12 07:45:45 +0000
commit02bf74bb72f8e68721c80fd5ee6c50a599ca9350 (patch)
treebf0e02e49adb6b8d3f28a70df49a365f0ef01d8c /usr.bin/ssh/compat.h
parent3f6547314a456d02e3306664e55213db57f93a14 (diff)
add Cipher and Protocol options to ssh/sshd, e.g.:
ssh -o 'Protocol 1,2' if you prefer proto 1, ssh -o 'Ciphers arcfour,3des-cbc'
Diffstat (limited to 'usr.bin/ssh/compat.h')
-rw-r--r--usr.bin/ssh/compat.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/ssh/compat.h b/usr.bin/ssh/compat.h
index 2e0928c7629..524cfe0ea86 100644
--- a/usr.bin/ssh/compat.h
+++ b/usr.bin/ssh/compat.h
@@ -26,13 +26,20 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-/* RCSID("$Id: compat.h,v 1.5 2000/04/03 07:07:15 markus Exp $"); */
+/* RCSID("$Id: compat.h,v 1.6 2000/04/12 07:45:44 markus Exp $"); */
#ifndef COMPAT_H
#define COMPAT_H
+
+#define SSH_PROTO_UNKNOWN 0x00
+#define SSH_PROTO_1 0x01
+#define SSH_PROTO_1_PREFERRED 0x02
+#define SSH_PROTO_2 0x04
+
void enable_compat13(void);
void enable_compat20(void);
void compat_datafellows(const char *s);
+int proto_spec(const char *spec);
extern int compat13;
extern int compat20;
extern int datafellows;