2 * Copyright (c) 2000-2002 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
22 Contains: SSL Cipher Suite definitions.
24 Written by: Doug Mitchell, based in Netscape SSLRef 3.0
26 Copyright: (c) 1999 by Apple Computer, Inc., all rights reserved.
29 #ifndef _SECURITY_CIPHERSUITE_H_
30 #define _SECURITY_CIPHERSUITE_H_
33 #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
36 * Defined as enum for debugging, but in the protocol
37 * it is actually exactly two bytes
39 typedef UInt32 SSLCipherSuite
;
42 { SSL_NULL_WITH_NULL_NULL
= 0x0000,
43 SSL_RSA_WITH_NULL_MD5
= 0x0001,
44 SSL_RSA_WITH_NULL_SHA
= 0x0002,
45 SSL_RSA_EXPORT_WITH_RC4_40_MD5
= 0x0003,
46 SSL_RSA_WITH_RC4_128_MD5
= 0x0004,
47 SSL_RSA_WITH_RC4_128_SHA
= 0x0005,
48 SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
= 0x0006,
49 SSL_RSA_WITH_IDEA_CBC_SHA
= 0x0007,
50 SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
= 0x0008,
51 SSL_RSA_WITH_DES_CBC_SHA
= 0x0009,
52 SSL_RSA_WITH_3DES_EDE_CBC_SHA
= 0x000A,
53 SSL_DH_DSS_EXPORT_WITH_DES40_CBC_SHA
= 0x000B,
54 SSL_DH_DSS_WITH_DES_CBC_SHA
= 0x000C,
55 SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA
= 0x000D,
56 SSL_DH_RSA_EXPORT_WITH_DES40_CBC_SHA
= 0x000E,
57 SSL_DH_RSA_WITH_DES_CBC_SHA
= 0x000F,
58 SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA
= 0x0010,
59 SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
= 0x0011,
60 SSL_DHE_DSS_WITH_DES_CBC_SHA
= 0x0012,
61 SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA
= 0x0013,
62 SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
= 0x0014,
63 SSL_DHE_RSA_WITH_DES_CBC_SHA
= 0x0015,
64 SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA
= 0x0016,
65 SSL_DH_anon_EXPORT_WITH_RC4_40_MD5
= 0x0017,
66 SSL_DH_anon_WITH_RC4_128_MD5
= 0x0018,
67 SSL_DH_anon_EXPORT_WITH_DES40_CBC_SHA
= 0x0019,
68 SSL_DH_anon_WITH_DES_CBC_SHA
= 0x001A,
69 SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
= 0x001B,
70 SSL_FORTEZZA_DMS_WITH_NULL_SHA
= 0x001C,
71 SSL_FORTEZZA_DMS_WITH_FORTEZZA_CBC_SHA
= 0x001D,
72 SSL_RSA_WITH_RC2_CBC_MD5
= 0xFF80, /* These are included to provide tags for */
73 SSL_RSA_WITH_IDEA_CBC_MD5
= 0xFF81, /* SSL 2 cipher kinds which are not specified */
74 SSL_RSA_WITH_DES_CBC_MD5
= 0xFF82, /* for SSL 3 */
75 SSL_RSA_WITH_3DES_EDE_CBC_MD5
= 0xFF83,
76 SSL_NO_SUCH_CIPHERSUITE
= 0xFFFF
79 #endif /* !_SECURITY_CIPHERSUITE_H_ */