xref: /onnv-gate/usr/src/cmd/ssh/include/myproposal.h (revision 0:68f95e015346)
1*0Sstevel@tonic-gate /*
2*0Sstevel@tonic-gate  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
3*0Sstevel@tonic-gate  * Use is subject to license terms.
4*0Sstevel@tonic-gate  */
5*0Sstevel@tonic-gate /*	$OpenBSD: myproposal.h,v 1.14 2002/04/03 09:26:11 markus Exp $	*/
6*0Sstevel@tonic-gate 
7*0Sstevel@tonic-gate #ifndef	_MYPROPOSAL_H
8*0Sstevel@tonic-gate #define	_MYPROPOSAL_H
9*0Sstevel@tonic-gate 
10*0Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
11*0Sstevel@tonic-gate 
12*0Sstevel@tonic-gate #ifdef __cplusplus
13*0Sstevel@tonic-gate extern "C" {
14*0Sstevel@tonic-gate #endif
15*0Sstevel@tonic-gate 
16*0Sstevel@tonic-gate 
17*0Sstevel@tonic-gate /*
18*0Sstevel@tonic-gate  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
19*0Sstevel@tonic-gate  *
20*0Sstevel@tonic-gate  * Redistribution and use in source and binary forms, with or without
21*0Sstevel@tonic-gate  * modification, are permitted provided that the following conditions
22*0Sstevel@tonic-gate  * are met:
23*0Sstevel@tonic-gate  * 1. Redistributions of source code must retain the above copyright
24*0Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer.
25*0Sstevel@tonic-gate  * 2. Redistributions in binary form must reproduce the above copyright
26*0Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer in the
27*0Sstevel@tonic-gate  *    documentation and/or other materials provided with the distribution.
28*0Sstevel@tonic-gate  *
29*0Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
30*0Sstevel@tonic-gate  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
31*0Sstevel@tonic-gate  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
32*0Sstevel@tonic-gate  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
33*0Sstevel@tonic-gate  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
34*0Sstevel@tonic-gate  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35*0Sstevel@tonic-gate  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36*0Sstevel@tonic-gate  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37*0Sstevel@tonic-gate  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
38*0Sstevel@tonic-gate  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39*0Sstevel@tonic-gate  */
40*0Sstevel@tonic-gate #define KEX_DEFAULT_KEX		"diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1"
41*0Sstevel@tonic-gate #define	KEX_DEFAULT_PK_ALG	"ssh-rsa,ssh-dss"
42*0Sstevel@tonic-gate #if 0
43*0Sstevel@tonic-gate #define	KEX_DEFAULT_ENCRYPT \
44*0Sstevel@tonic-gate 	"aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour," \
45*0Sstevel@tonic-gate 	"aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se"
46*0Sstevel@tonic-gate #define	KEX_DEFAULT_MAC \
47*0Sstevel@tonic-gate 	"hmac-md5,hmac-sha1,hmac-ripemd160," \
48*0Sstevel@tonic-gate 	"hmac-ripemd160@openssh.com," \
49*0Sstevel@tonic-gate 	"hmac-sha1-96,hmac-md5-96"
50*0Sstevel@tonic-gate #else
51*0Sstevel@tonic-gate #define	KEX_DEFAULT_ENCRYPT \
52*0Sstevel@tonic-gate 	"aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc"
53*0Sstevel@tonic-gate #define	KEX_DEFAULT_MAC \
54*0Sstevel@tonic-gate 	"hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96"
55*0Sstevel@tonic-gate #endif
56*0Sstevel@tonic-gate #define	KEX_DEFAULT_COMP	"none,zlib"
57*0Sstevel@tonic-gate #define	KEX_DEFAULT_LANG	""
58*0Sstevel@tonic-gate 
59*0Sstevel@tonic-gate 
60*0Sstevel@tonic-gate static char *myproposal[PROPOSAL_MAX] = {
61*0Sstevel@tonic-gate 	KEX_DEFAULT_KEX,
62*0Sstevel@tonic-gate 	KEX_DEFAULT_PK_ALG,
63*0Sstevel@tonic-gate 	KEX_DEFAULT_ENCRYPT,
64*0Sstevel@tonic-gate 	KEX_DEFAULT_ENCRYPT,
65*0Sstevel@tonic-gate 	KEX_DEFAULT_MAC,
66*0Sstevel@tonic-gate 	KEX_DEFAULT_MAC,
67*0Sstevel@tonic-gate 	KEX_DEFAULT_COMP,
68*0Sstevel@tonic-gate 	KEX_DEFAULT_COMP,
69*0Sstevel@tonic-gate 	KEX_DEFAULT_LANG,
70*0Sstevel@tonic-gate 	KEX_DEFAULT_LANG
71*0Sstevel@tonic-gate };
72*0Sstevel@tonic-gate 
73*0Sstevel@tonic-gate #ifdef __cplusplus
74*0Sstevel@tonic-gate }
75*0Sstevel@tonic-gate #endif
76*0Sstevel@tonic-gate 
77*0Sstevel@tonic-gate #endif /* _MYPROPOSAL_H */
78