myproposal.h revision 192595
1192595Sdes/* $OpenBSD: myproposal.h,v 1.23 2009/01/23 07:58:11 djm Exp $ */
276259Sgreen
365668Skris/*
465668Skris * Copyright (c) 2000 Markus Friedl.  All rights reserved.
565668Skris *
665668Skris * Redistribution and use in source and binary forms, with or without
765668Skris * modification, are permitted provided that the following conditions
865668Skris * are met:
965668Skris * 1. Redistributions of source code must retain the above copyright
1065668Skris *    notice, this list of conditions and the following disclaimer.
1165668Skris * 2. Redistributions in binary form must reproduce the above copyright
1265668Skris *    notice, this list of conditions and the following disclaimer in the
1365668Skris *    documentation and/or other materials provided with the distribution.
1465668Skris *
1565668Skris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1665668Skris * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1765668Skris * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
1865668Skris * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
1965668Skris * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2065668Skris * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2165668Skris * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2265668Skris * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2365668Skris * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2465668Skris * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2565668Skris */
26162856Sdes
27162856Sdes#include <openssl/opensslv.h>
28162856Sdes
29162856Sdes/* Old OpenSSL doesn't support what we need for DHGEX-sha256 */
30162856Sdes#if OPENSSL_VERSION_NUMBER < 0x00907000L
31162856Sdes# define KEX_DEFAULT_KEX		\
32162856Sdes	"diffie-hellman-group-exchange-sha1," \
33137019Sdes	"diffie-hellman-group14-sha1," \
34137019Sdes	"diffie-hellman-group1-sha1"
35162856Sdes#else
36162856Sdes# define KEX_DEFAULT_KEX		\
37162856Sdes	"diffie-hellman-group-exchange-sha256," \
38162856Sdes	"diffie-hellman-group-exchange-sha1," \
39162856Sdes	"diffie-hellman-group14-sha1," \
40162856Sdes	"diffie-hellman-group1-sha1"
41162856Sdes#endif
42162856Sdes
43181111Sdes#define	KEX_DEFAULT_PK_ALG	"ssh-rsa,ssh-dss"
44192595Sdes
4569587Sgreen#define	KEX_DEFAULT_ENCRYPT \
46192595Sdes	"aes128-ctr,aes192-ctr,aes256-ctr," \
47192595Sdes	"arcfour256,arcfour128," \
48149753Sdes	"aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \
49192595Sdes	"aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se"
5076259Sgreen#define	KEX_DEFAULT_MAC \
51181111Sdes	"hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160," \
5276259Sgreen	"hmac-ripemd160@openssh.com," \
5376259Sgreen	"hmac-sha1-96,hmac-md5-96"
54149753Sdes#define	KEX_DEFAULT_COMP	"none,zlib@openssh.com,zlib"
5560573Skris#define	KEX_DEFAULT_LANG	""
5660573Skris
5760573Skris
5861209Skrisstatic char *myproposal[PROPOSAL_MAX] = {
5960573Skris	KEX_DEFAULT_KEX,
6060573Skris	KEX_DEFAULT_PK_ALG,
6160573Skris	KEX_DEFAULT_ENCRYPT,
6260573Skris	KEX_DEFAULT_ENCRYPT,
6360573Skris	KEX_DEFAULT_MAC,
6460573Skris	KEX_DEFAULT_MAC,
6560573Skris	KEX_DEFAULT_COMP,
6660573Skris	KEX_DEFAULT_COMP,
6760573Skris	KEX_DEFAULT_LANG,
6860573Skris	KEX_DEFAULT_LANG
6960573Skris};
70