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