myproposal.h revision 215116
1215116Sdes/* $OpenBSD: myproposal.h,v 1.25 2010/04/16 01:47:26 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 43215116Sdes#define KEX_DEFAULT_PK_ALG \ 44215116Sdes "ssh-rsa-cert-v01@openssh.com," \ 45215116Sdes "ssh-dss-cert-v01@openssh.com," \ 46215116Sdes "ssh-rsa-cert-v00@openssh.com," \ 47215116Sdes "ssh-dss-cert-v00@openssh.com," \ 48215116Sdes "ssh-rsa,ssh-dss" 49192595Sdes 5069587Sgreen#define KEX_DEFAULT_ENCRYPT \ 51192595Sdes "aes128-ctr,aes192-ctr,aes256-ctr," \ 52192595Sdes "arcfour256,arcfour128," \ 53149753Sdes "aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \ 54192595Sdes "aes192-cbc,aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se" 5576259Sgreen#define KEX_DEFAULT_MAC \ 56181111Sdes "hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160," \ 5776259Sgreen "hmac-ripemd160@openssh.com," \ 5876259Sgreen "hmac-sha1-96,hmac-md5-96" 59149753Sdes#define KEX_DEFAULT_COMP "none,zlib@openssh.com,zlib" 6060573Skris#define KEX_DEFAULT_LANG "" 6160573Skris 6260573Skris 6361209Skrisstatic char *myproposal[PROPOSAL_MAX] = { 6460573Skris KEX_DEFAULT_KEX, 6560573Skris KEX_DEFAULT_PK_ALG, 6660573Skris KEX_DEFAULT_ENCRYPT, 6760573Skris KEX_DEFAULT_ENCRYPT, 6860573Skris KEX_DEFAULT_MAC, 6960573Skris KEX_DEFAULT_MAC, 7060573Skris KEX_DEFAULT_COMP, 7160573Skris KEX_DEFAULT_COMP, 7260573Skris KEX_DEFAULT_LANG, 7360573Skris KEX_DEFAULT_LANG 7460573Skris}; 75