Home | History | Annotate | Line # | Download | only in dist
myproposal.h revision 1.12
      1   1.9  christos /*	$NetBSD: myproposal.h,v 1.12 2015/08/13 10:33:21 christos Exp $	*/
      2  1.12  christos /* $OpenBSD: myproposal.h,v 1.47 2015/07/10 06:21:53 markus Exp $ */
      3   1.1  christos 
      4   1.1  christos /*
      5   1.1  christos  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
      6   1.1  christos  *
      7   1.1  christos  * Redistribution and use in source and binary forms, with or without
      8   1.1  christos  * modification, are permitted provided that the following conditions
      9   1.1  christos  * are met:
     10   1.1  christos  * 1. Redistributions of source code must retain the above copyright
     11   1.1  christos  *    notice, this list of conditions and the following disclaimer.
     12   1.1  christos  * 2. Redistributions in binary form must reproduce the above copyright
     13   1.1  christos  *    notice, this list of conditions and the following disclaimer in the
     14   1.1  christos  *    documentation and/or other materials provided with the distribution.
     15   1.1  christos  *
     16   1.1  christos  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17   1.1  christos  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18   1.1  christos  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19   1.1  christos  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20   1.1  christos  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     21   1.1  christos  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     22   1.1  christos  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     23   1.1  christos  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     24   1.1  christos  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     25   1.1  christos  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26   1.1  christos  */
     27   1.4  christos 
     28   1.8  christos #ifdef WITH_OPENSSL
     29   1.8  christos 
     30  1.11  christos #define KEX_COMMON_KEX		\
     31   1.8  christos 	"curve25519-sha256 (at) libssh.org," \
     32   1.4  christos 	"ecdh-sha2-nistp256," \
     33   1.4  christos 	"ecdh-sha2-nistp384," \
     34   1.4  christos 	"ecdh-sha2-nistp521," \
     35  1.11  christos 	"diffie-hellman-group-exchange-sha256"
     36  1.11  christos 
     37  1.11  christos #define KEX_SERVER_KEX KEX_COMMON_KEX "," \
     38  1.11  christos 	"diffie-hellman-group14-sha1"
     39   1.8  christos 
     40  1.11  christos #define KEX_CLIENT_KEX KEX_COMMON_KEX "," \
     41   1.1  christos 	"diffie-hellman-group-exchange-sha1," \
     42  1.12  christos 	"diffie-hellman-group14-sha1"
     43   1.4  christos 
     44   1.3      adam #define	KEX_DEFAULT_PK_ALG	\
     45   1.4  christos 	"ecdsa-sha2-nistp256-cert-v01 (at) openssh.com," \
     46   1.4  christos 	"ecdsa-sha2-nistp384-cert-v01 (at) openssh.com," \
     47   1.4  christos 	"ecdsa-sha2-nistp521-cert-v01 (at) openssh.com," \
     48   1.8  christos 	"ssh-ed25519-cert-v01 (at) openssh.com," \
     49   1.4  christos 	"ssh-rsa-cert-v01 (at) openssh.com," \
     50   1.4  christos 	"ecdsa-sha2-nistp256," \
     51   1.4  christos 	"ecdsa-sha2-nistp384," \
     52   1.4  christos 	"ecdsa-sha2-nistp521," \
     53   1.8  christos 	"ssh-ed25519," \
     54  1.12  christos 	"ssh-rsa"
     55   1.1  christos 
     56   1.8  christos #define	KEX_SERVER_ENCRYPT \
     57  1.11  christos 	"chacha20-poly1305 (at) openssh.com," \
     58   1.1  christos 	"aes128-ctr,aes192-ctr,aes256-ctr," \
     59  1.11  christos 	"aes128-gcm (at) openssh.com,aes256-gcm (at) openssh.com"
     60   1.8  christos 
     61   1.8  christos #define KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT "," \
     62   1.1  christos 	"arcfour256,arcfour128," \
     63   1.1  christos 	"aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc," \
     64   1.1  christos 	"aes192-cbc,aes256-cbc,arcfour,rijndael-cbc (at) lysator.liu.se"
     65   1.2  christos 
     66   1.8  christos #define	KEX_SERVER_MAC \
     67   1.7  christos 	"umac-64-etm (at) openssh.com," \
     68   1.7  christos 	"umac-128-etm (at) openssh.com," \
     69   1.7  christos 	"hmac-sha2-256-etm (at) openssh.com," \
     70   1.7  christos 	"hmac-sha2-512-etm (at) openssh.com," \
     71   1.8  christos 	"hmac-sha1-etm (at) openssh.com," \
     72   1.8  christos 	"umac-64 (at) openssh.com," \
     73   1.8  christos 	"umac-128 (at) openssh.com," \
     74   1.8  christos 	"hmac-sha2-256," \
     75   1.8  christos 	"hmac-sha2-512," \
     76   1.8  christos 	"hmac-sha1"
     77   1.8  christos 
     78   1.8  christos #define KEX_CLIENT_MAC KEX_SERVER_MAC "," \
     79   1.8  christos 	"hmac-md5-etm (at) openssh.com," \
     80   1.7  christos 	"hmac-ripemd160-etm (at) openssh.com," \
     81   1.7  christos 	"hmac-sha1-96-etm (at) openssh.com," \
     82   1.7  christos 	"hmac-md5-96-etm (at) openssh.com," \
     83   1.5  christos 	"hmac-md5," \
     84   1.8  christos 	"hmac-ripemd160," \
     85   1.8  christos 	"hmac-ripemd160 (at) openssh.com," \
     86   1.8  christos 	"hmac-sha1-96," \
     87   1.8  christos 	"hmac-md5-96"
     88   1.8  christos 
     89   1.8  christos #else
     90   1.8  christos 
     91   1.8  christos #define KEX_SERVER_KEX		\
     92   1.8  christos 	"curve25519-sha256 (at) libssh.org"
     93   1.8  christos #define	KEX_DEFAULT_PK_ALG	\
     94   1.8  christos 	"ssh-ed25519-cert-v01 (at) openssh.com," \
     95   1.8  christos 	"ssh-ed25519"
     96   1.8  christos #define	KEX_SERVER_ENCRYPT \
     97  1.11  christos 	"chacha20-poly1305 (at) openssh.com," \
     98  1.11  christos 	"aes128-ctr,aes192-ctr,aes256-ctr"
     99   1.8  christos #define	KEX_SERVER_MAC \
    100   1.8  christos 	"umac-64-etm (at) openssh.com," \
    101   1.8  christos 	"umac-128-etm (at) openssh.com," \
    102   1.8  christos 	"hmac-sha2-256-etm (at) openssh.com," \
    103   1.8  christos 	"hmac-sha2-512-etm (at) openssh.com," \
    104   1.8  christos 	"hmac-sha1-etm (at) openssh.com," \
    105   1.5  christos 	"umac-64 (at) openssh.com," \
    106   1.7  christos 	"umac-128 (at) openssh.com," \
    107   1.5  christos 	"hmac-sha2-256," \
    108   1.5  christos 	"hmac-sha2-512," \
    109   1.8  christos 	"hmac-sha1"
    110   1.8  christos 
    111   1.8  christos #define KEX_CLIENT_KEX KEX_SERVER_KEX
    112   1.8  christos #define	KEX_CLIENT_ENCRYPT KEX_SERVER_ENCRYPT
    113   1.8  christos #define KEX_CLIENT_MAC KEX_SERVER_MAC
    114   1.8  christos 
    115   1.8  christos #endif /* WITH_OPENSSL */
    116   1.2  christos 
    117   1.9  christos #define KEX_CLIENT_ENCRYPT_INCLUDE_NONE KEX_CLIENT_ENCRYPT \
    118   1.9  christos 	",none"
    119   1.9  christos #define KEX_SERVER_ENCRYPT_INCLUDE_NONE KEX_SERVER_ENCRYPT \
    120   1.9  christos 	",none"
    121   1.9  christos 
    122   1.1  christos #define	KEX_DEFAULT_COMP	"none,zlib (at) openssh.com,zlib"
    123   1.1  christos #define	KEX_DEFAULT_LANG	""
    124   1.1  christos 
    125   1.8  christos #define KEX_CLIENT \
    126   1.8  christos 	KEX_CLIENT_KEX, \
    127   1.8  christos 	KEX_DEFAULT_PK_ALG, \
    128   1.9  christos 	KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
    129   1.9  christos 	KEX_CLIENT_ENCRYPT_INCLUDE_NONE, \
    130   1.8  christos 	KEX_CLIENT_MAC, \
    131   1.8  christos 	KEX_CLIENT_MAC, \
    132   1.8  christos 	KEX_DEFAULT_COMP, \
    133   1.8  christos 	KEX_DEFAULT_COMP, \
    134   1.8  christos 	KEX_DEFAULT_LANG, \
    135   1.8  christos 	KEX_DEFAULT_LANG
    136   1.1  christos 
    137   1.8  christos #define KEX_SERVER \
    138   1.8  christos 	KEX_SERVER_KEX, \
    139   1.8  christos 	KEX_DEFAULT_PK_ALG, \
    140   1.9  christos 	KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
    141   1.9  christos 	KEX_SERVER_ENCRYPT_INCLUDE_NONE, \
    142   1.8  christos 	KEX_SERVER_MAC, \
    143   1.8  christos 	KEX_SERVER_MAC, \
    144   1.8  christos 	KEX_DEFAULT_COMP, \
    145   1.8  christos 	KEX_DEFAULT_COMP, \
    146   1.8  christos 	KEX_DEFAULT_LANG, \
    147   1.1  christos 	KEX_DEFAULT_LANG
    148