xref: /onnv-gate/usr/src/cmd/ssh/include/myproposal.h (revision 6288:65c8136c6b0b)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * Redistribution and use in source and binary forms, with or without
50Sstevel@tonic-gate  * modification, are permitted provided that the following conditions
60Sstevel@tonic-gate  * are met:
70Sstevel@tonic-gate  * 1. Redistributions of source code must retain the above copyright
80Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer.
90Sstevel@tonic-gate  * 2. Redistributions in binary form must reproduce the above copyright
100Sstevel@tonic-gate  *    notice, this list of conditions and the following disclaimer in the
110Sstevel@tonic-gate  *    documentation and/or other materials provided with the distribution.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
140Sstevel@tonic-gate  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
150Sstevel@tonic-gate  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
160Sstevel@tonic-gate  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
170Sstevel@tonic-gate  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
180Sstevel@tonic-gate  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
190Sstevel@tonic-gate  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
200Sstevel@tonic-gate  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
210Sstevel@tonic-gate  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
220Sstevel@tonic-gate  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
230Sstevel@tonic-gate  */
24*6288Sjp161948 
25*6288Sjp161948 /*
26*6288Sjp161948  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
27*6288Sjp161948  * Use is subject to license terms.
28*6288Sjp161948  */
29*6288Sjp161948 
30*6288Sjp161948 /*	$OpenBSD: myproposal.h,v 1.14 2002/04/03 09:26:11 markus Exp $	*/
31*6288Sjp161948 
32*6288Sjp161948 #ifndef	_MYPROPOSAL_H
33*6288Sjp161948 #define	_MYPROPOSAL_H
34*6288Sjp161948 
35*6288Sjp161948 #pragma ident	"%Z%%M%	%I%	%E% SMI"
36*6288Sjp161948 
37*6288Sjp161948 #ifdef __cplusplus
38*6288Sjp161948 extern "C" {
39*6288Sjp161948 #endif
40*6288Sjp161948 
41*6288Sjp161948 
42*6288Sjp161948 #define	KEX_DEFAULT_KEX		"diffie-hellman-group-exchange-sha1," \
43*6288Sjp161948 				"diffie-hellman-group1-sha1"
44*6288Sjp161948 
450Sstevel@tonic-gate #define	KEX_DEFAULT_PK_ALG	"ssh-rsa,ssh-dss"
46*6288Sjp161948 
470Sstevel@tonic-gate #define	KEX_DEFAULT_ENCRYPT \
48*6288Sjp161948 	"aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc," \
49*6288Sjp161948 	"aes192-ctr,aes192-cbc,aes256-ctr,aes256-cbc"
50*6288Sjp161948 
510Sstevel@tonic-gate #define	KEX_DEFAULT_MAC \
520Sstevel@tonic-gate 	"hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96"
53*6288Sjp161948 
540Sstevel@tonic-gate #define	KEX_DEFAULT_COMP	"none,zlib"
550Sstevel@tonic-gate #define	KEX_DEFAULT_LANG	""
560Sstevel@tonic-gate 
570Sstevel@tonic-gate 
580Sstevel@tonic-gate static char *myproposal[PROPOSAL_MAX] = {
590Sstevel@tonic-gate 	KEX_DEFAULT_KEX,
600Sstevel@tonic-gate 	KEX_DEFAULT_PK_ALG,
610Sstevel@tonic-gate 	KEX_DEFAULT_ENCRYPT,
620Sstevel@tonic-gate 	KEX_DEFAULT_ENCRYPT,
630Sstevel@tonic-gate 	KEX_DEFAULT_MAC,
640Sstevel@tonic-gate 	KEX_DEFAULT_MAC,
650Sstevel@tonic-gate 	KEX_DEFAULT_COMP,
660Sstevel@tonic-gate 	KEX_DEFAULT_COMP,
670Sstevel@tonic-gate 	KEX_DEFAULT_LANG,
680Sstevel@tonic-gate 	KEX_DEFAULT_LANG
690Sstevel@tonic-gate };
700Sstevel@tonic-gate 
710Sstevel@tonic-gate #ifdef __cplusplus
720Sstevel@tonic-gate }
730Sstevel@tonic-gate #endif
740Sstevel@tonic-gate 
750Sstevel@tonic-gate #endif /* _MYPROPOSAL_H */
76