Eneboo - Documentación para desarrolladores
src/libdigidoc/openssl/include/openssl/tls1.h
Ir a la documentación de este archivo.
00001 /* ssl/tls1.h */
00002 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
00003  * All rights reserved.
00004  *
00005  * This package is an SSL implementation written
00006  * by Eric Young (eay@cryptsoft.com).
00007  * The implementation was written so as to conform with Netscapes SSL.
00008  * 
00009  * This library is free for commercial and non-commercial use as long as
00010  * the following conditions are aheared to.  The following conditions
00011  * apply to all code found in this distribution, be it the RC4, RSA,
00012  * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
00013  * included with this distribution is covered by the same copyright terms
00014  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
00015  * 
00016  * Copyright remains Eric Young's, and as such any Copyright notices in
00017  * the code are not to be removed.
00018  * If this package is used in a product, Eric Young should be given attribution
00019  * as the author of the parts of the library used.
00020  * This can be in the form of a textual message at program startup or
00021  * in documentation (online or textual) provided with the package.
00022  * 
00023  * Redistribution and use in source and binary forms, with or without
00024  * modification, are permitted provided that the following conditions
00025  * are met:
00026  * 1. Redistributions of source code must retain the copyright
00027  *    notice, this list of conditions and the following disclaimer.
00028  * 2. Redistributions in binary form must reproduce the above copyright
00029  *    notice, this list of conditions and the following disclaimer in the
00030  *    documentation and/or other materials provided with the distribution.
00031  * 3. All advertising materials mentioning features or use of this software
00032  *    must display the following acknowledgement:
00033  *    "This product includes cryptographic software written by
00034  *     Eric Young (eay@cryptsoft.com)"
00035  *    The word 'cryptographic' can be left out if the rouines from the library
00036  *    being used are not cryptographic related :-).
00037  * 4. If you include any Windows specific code (or a derivative thereof) from 
00038  *    the apps directory (application code) you must include an acknowledgement:
00039  *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
00040  * 
00041  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
00042  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00043  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00044  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
00045  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00046  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00047  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00048  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00049  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00050  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00051  * SUCH DAMAGE.
00052  * 
00053  * The licence and distribution terms for any publically available version or
00054  * derivative of this code cannot be changed.  i.e. this code cannot simply be
00055  * copied and put under another distribution licence
00056  * [including the GNU Public Licence.]
00057  */
00058 /* ====================================================================
00059  * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
00060  *
00061  * Portions of the attached software ("Contribution") are developed by 
00062  * SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project.
00063  *
00064  * The Contribution is licensed pursuant to the OpenSSL open source
00065  * license provided above.
00066  *
00067  * ECC cipher suite support in OpenSSL originally written by
00068  * Vipul Gupta and Sumit Gupta of Sun Microsystems Laboratories.
00069  *
00070  */
00071 
00072 #ifndef HEADER_TLS1_H 
00073 #define HEADER_TLS1_H 
00074 
00075 #include <openssl/buffer.h>
00076 
00077 #ifdef  __cplusplus
00078 extern "C" {
00079 #endif
00080 
00081 #define TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES    0
00082 
00083 #define TLS1_VERSION                    0x0301
00084 #define TLS1_VERSION_MAJOR              0x03
00085 #define TLS1_VERSION_MINOR              0x01
00086 
00087 #define TLS1_AD_DECRYPTION_FAILED       21
00088 #define TLS1_AD_RECORD_OVERFLOW         22
00089 #define TLS1_AD_UNKNOWN_CA              48      /* fatal */
00090 #define TLS1_AD_ACCESS_DENIED           49      /* fatal */
00091 #define TLS1_AD_DECODE_ERROR            50      /* fatal */
00092 #define TLS1_AD_DECRYPT_ERROR           51
00093 #define TLS1_AD_EXPORT_RESTRICTION      60      /* fatal */
00094 #define TLS1_AD_PROTOCOL_VERSION        70      /* fatal */
00095 #define TLS1_AD_INSUFFICIENT_SECURITY   71      /* fatal */
00096 #define TLS1_AD_INTERNAL_ERROR          80      /* fatal */
00097 #define TLS1_AD_USER_CANCELLED          90
00098 #define TLS1_AD_NO_RENEGOTIATION        100
00099 /* codes 110-114 are from RFC3546 */
00100 #define TLS1_AD_UNSUPPORTED_EXTENSION   110
00101 #define TLS1_AD_CERTIFICATE_UNOBTAINABLE 111
00102 #define TLS1_AD_UNRECOGNIZED_NAME       112
00103 #define TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE 113
00104 #define TLS1_AD_BAD_CERTIFICATE_HASH_VALUE 114
00105 #define TLS1_AD_UNKNOWN_PSK_IDENTITY    115     /* fatal */
00106 
00107 /* ExtensionType values from RFC 3546 */
00108 #define TLSEXT_TYPE_server_name                 0
00109 #define TLSEXT_TYPE_max_fragment_length         1
00110 #define TLSEXT_TYPE_client_certificate_url      2
00111 #define TLSEXT_TYPE_trusted_ca_keys             3
00112 #define TLSEXT_TYPE_truncated_hmac              4
00113 #define TLSEXT_TYPE_status_request              5
00114 #define TLSEXT_TYPE_elliptic_curves             10
00115 #define TLSEXT_TYPE_ec_point_formats            11
00116 #define TLSEXT_TYPE_session_ticket              35
00117 
00118 /* Temporary extension type */
00119 #define TLSEXT_TYPE_renegotiate                 0xff01
00120 
00121 /* NameType value from RFC 3546 */
00122 #define TLSEXT_NAMETYPE_host_name 0
00123 /* status request value from RFC 3546 */
00124 #define TLSEXT_STATUSTYPE_ocsp 1
00125 
00126 #ifndef OPENSSL_NO_TLSEXT
00127 
00128 #define TLSEXT_MAXLEN_host_name 255
00129 
00130 const char *SSL_get_servername(const SSL *s, const int type) ;
00131 int SSL_get_servername_type(const SSL *s) ;
00132 
00133 #define SSL_set_tlsext_host_name(s,name) \
00134 SSL_ctrl(s,SSL_CTRL_SET_TLSEXT_HOSTNAME,TLSEXT_NAMETYPE_host_name,(char *)name)
00135 
00136 #define SSL_set_tlsext_debug_callback(ssl, cb) \
00137 SSL_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_CB,(void (*)(void))cb)
00138 
00139 #define SSL_set_tlsext_debug_arg(ssl, arg) \
00140 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_DEBUG_ARG,0, (void *)arg)
00141 
00142 #define SSL_set_tlsext_status_type(ssl, type) \
00143 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_TYPE,type, NULL)
00144 
00145 #define SSL_get_tlsext_status_exts(ssl, arg) \
00146 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_EXTS,0, (void *)arg)
00147 
00148 #define SSL_set_tlsext_status_exts(ssl, arg) \
00149 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_EXTS,0, (void *)arg)
00150 
00151 #define SSL_get_tlsext_status_ids(ssl, arg) \
00152 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_IDS,0, (void *)arg)
00153 
00154 #define SSL_set_tlsext_status_ids(ssl, arg) \
00155 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_IDS,0, (void *)arg)
00156 
00157 #define SSL_get_tlsext_status_ocsp_resp(ssl, arg) \
00158 SSL_ctrl(ssl,SSL_CTRL_GET_TLSEXT_STATUS_REQ_OCSP_RESP,0, (void *)arg)
00159 
00160 #define SSL_set_tlsext_status_ocsp_resp(ssl, arg, arglen) \
00161 SSL_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_OCSP_RESP,arglen, (void *)arg)
00162 
00163 #define SSL_CTX_set_tlsext_servername_callback(ctx, cb) \
00164 SSL_CTX_callback_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_CB,(void (*)(void))cb)
00165 
00166 #define SSL_TLSEXT_ERR_OK 0
00167 #define SSL_TLSEXT_ERR_ALERT_WARNING 1
00168 #define SSL_TLSEXT_ERR_ALERT_FATAL 2
00169 #define SSL_TLSEXT_ERR_NOACK 3
00170 
00171 #define SSL_CTX_set_tlsext_servername_arg(ctx, arg) \
00172 SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TLSEXT_SERVERNAME_ARG,0, (void *)arg)
00173 
00174 #define SSL_CTX_get_tlsext_ticket_keys(ctx, keys, keylen) \
00175         SSL_CTX_ctrl((ctx),SSL_CTRL_GET_TLSEXT_TICKET_KEYS,(keylen),(keys))
00176 #define SSL_CTX_set_tlsext_ticket_keys(ctx, keys, keylen) \
00177         SSL_CTX_ctrl((ctx),SSL_CTRL_SET_TLSEXT_TICKET_KEYS,(keylen),(keys))
00178 
00179 #define SSL_CTX_set_tlsext_status_cb(ssl, cb) \
00180 SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB,(void (*)(void))cb)
00181 
00182 #define SSL_CTX_set_tlsext_status_arg(ssl, arg) \
00183 SSL_CTX_ctrl(ssl,SSL_CTRL_SET_TLSEXT_STATUS_REQ_CB_ARG,0, (void *)arg)
00184 
00185 #define SSL_CTX_set_tlsext_ticket_key_cb(ssl, cb) \
00186 SSL_CTX_callback_ctrl(ssl,SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB,(void (*)(void))cb)
00187 
00188 #endif
00189 
00190 /* Additional TLS ciphersuites from draft-ietf-tls-56-bit-ciphersuites-00.txt
00191  * (available if TLS1_ALLOW_EXPERIMENTAL_CIPHERSUITES is defined, see
00192  * s3_lib.c).  We actually treat them like SSL 3.0 ciphers, which we probably
00193  * shouldn't. */
00194 #define TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_MD5          0x03000060
00195 #define TLS1_CK_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5      0x03000061
00196 #define TLS1_CK_RSA_EXPORT1024_WITH_DES_CBC_SHA         0x03000062
00197 #define TLS1_CK_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA     0x03000063
00198 #define TLS1_CK_RSA_EXPORT1024_WITH_RC4_56_SHA          0x03000064
00199 #define TLS1_CK_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA      0x03000065
00200 #define TLS1_CK_DHE_DSS_WITH_RC4_128_SHA                0x03000066
00201 
00202 /* AES ciphersuites from RFC3268 */
00203 
00204 #define TLS1_CK_RSA_WITH_AES_128_SHA                    0x0300002F
00205 #define TLS1_CK_DH_DSS_WITH_AES_128_SHA                 0x03000030
00206 #define TLS1_CK_DH_RSA_WITH_AES_128_SHA                 0x03000031
00207 #define TLS1_CK_DHE_DSS_WITH_AES_128_SHA                0x03000032
00208 #define TLS1_CK_DHE_RSA_WITH_AES_128_SHA                0x03000033
00209 #define TLS1_CK_ADH_WITH_AES_128_SHA                    0x03000034
00210 
00211 #define TLS1_CK_RSA_WITH_AES_256_SHA                    0x03000035
00212 #define TLS1_CK_DH_DSS_WITH_AES_256_SHA                 0x03000036
00213 #define TLS1_CK_DH_RSA_WITH_AES_256_SHA                 0x03000037
00214 #define TLS1_CK_DHE_DSS_WITH_AES_256_SHA                0x03000038
00215 #define TLS1_CK_DHE_RSA_WITH_AES_256_SHA                0x03000039
00216 #define TLS1_CK_ADH_WITH_AES_256_SHA                    0x0300003A
00217 
00218 /* Camellia ciphersuites from RFC4132 */
00219 #define TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA           0x03000041
00220 #define TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA        0x03000042
00221 #define TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA        0x03000043
00222 #define TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA       0x03000044
00223 #define TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA       0x03000045
00224 #define TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA           0x03000046
00225 
00226 #define TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA           0x03000084
00227 #define TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA        0x03000085
00228 #define TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA        0x03000086
00229 #define TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA       0x03000087
00230 #define TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA       0x03000088
00231 #define TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA           0x03000089
00232 
00233 /* SEED ciphersuites from RFC4162 */
00234 #define TLS1_CK_RSA_WITH_SEED_SHA                       0x03000096
00235 #define TLS1_CK_DH_DSS_WITH_SEED_SHA                    0x03000097
00236 #define TLS1_CK_DH_RSA_WITH_SEED_SHA                    0x03000098
00237 #define TLS1_CK_DHE_DSS_WITH_SEED_SHA                   0x03000099
00238 #define TLS1_CK_DHE_RSA_WITH_SEED_SHA                   0x0300009A
00239 #define TLS1_CK_ADH_WITH_SEED_SHA                       0x0300009B
00240 
00241 /* ECC ciphersuites from draft-ietf-tls-ecc-12.txt with changes soon to be in draft 13 */
00242 #define TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA                0x0300C001
00243 #define TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA             0x0300C002
00244 #define TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA        0x0300C003
00245 #define TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA         0x0300C004
00246 #define TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA         0x0300C005
00247 
00248 #define TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA               0x0300C006
00249 #define TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA            0x0300C007
00250 #define TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA       0x0300C008
00251 #define TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA        0x0300C009
00252 #define TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA        0x0300C00A
00253 
00254 #define TLS1_CK_ECDH_RSA_WITH_NULL_SHA                  0x0300C00B
00255 #define TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA               0x0300C00C
00256 #define TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA          0x0300C00D
00257 #define TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA           0x0300C00E
00258 #define TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA           0x0300C00F
00259 
00260 #define TLS1_CK_ECDHE_RSA_WITH_NULL_SHA                 0x0300C010
00261 #define TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA              0x0300C011
00262 #define TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA         0x0300C012
00263 #define TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA          0x0300C013
00264 #define TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA          0x0300C014
00265 
00266 #define TLS1_CK_ECDH_anon_WITH_NULL_SHA                 0x0300C015
00267 #define TLS1_CK_ECDH_anon_WITH_RC4_128_SHA              0x0300C016
00268 #define TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA         0x0300C017
00269 #define TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA          0x0300C018
00270 #define TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA          0x0300C019
00271 
00272 /* XXX
00273  * Inconsistency alert:
00274  * The OpenSSL names of ciphers with ephemeral DH here include the string
00275  * "DHE", while elsewhere it has always been "EDH".
00276  * (The alias for the list of all such ciphers also is "EDH".)
00277  * The specifications speak of "EDH"; maybe we should allow both forms
00278  * for everything. */
00279 #define TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_MD5         "EXP1024-RC4-MD5"
00280 #define TLS1_TXT_RSA_EXPORT1024_WITH_RC2_CBC_56_MD5     "EXP1024-RC2-CBC-MD5"
00281 #define TLS1_TXT_RSA_EXPORT1024_WITH_DES_CBC_SHA        "EXP1024-DES-CBC-SHA"
00282 #define TLS1_TXT_DHE_DSS_EXPORT1024_WITH_DES_CBC_SHA    "EXP1024-DHE-DSS-DES-CBC-SHA"
00283 #define TLS1_TXT_RSA_EXPORT1024_WITH_RC4_56_SHA         "EXP1024-RC4-SHA"
00284 #define TLS1_TXT_DHE_DSS_EXPORT1024_WITH_RC4_56_SHA     "EXP1024-DHE-DSS-RC4-SHA"
00285 #define TLS1_TXT_DHE_DSS_WITH_RC4_128_SHA               "DHE-DSS-RC4-SHA"
00286 
00287 /* AES ciphersuites from RFC3268 */
00288 #define TLS1_TXT_RSA_WITH_AES_128_SHA                   "AES128-SHA"
00289 #define TLS1_TXT_DH_DSS_WITH_AES_128_SHA                "DH-DSS-AES128-SHA"
00290 #define TLS1_TXT_DH_RSA_WITH_AES_128_SHA                "DH-RSA-AES128-SHA"
00291 #define TLS1_TXT_DHE_DSS_WITH_AES_128_SHA               "DHE-DSS-AES128-SHA"
00292 #define TLS1_TXT_DHE_RSA_WITH_AES_128_SHA               "DHE-RSA-AES128-SHA"
00293 #define TLS1_TXT_ADH_WITH_AES_128_SHA                   "ADH-AES128-SHA"
00294 
00295 #define TLS1_TXT_RSA_WITH_AES_256_SHA                   "AES256-SHA"
00296 #define TLS1_TXT_DH_DSS_WITH_AES_256_SHA                "DH-DSS-AES256-SHA"
00297 #define TLS1_TXT_DH_RSA_WITH_AES_256_SHA                "DH-RSA-AES256-SHA"
00298 #define TLS1_TXT_DHE_DSS_WITH_AES_256_SHA               "DHE-DSS-AES256-SHA"
00299 #define TLS1_TXT_DHE_RSA_WITH_AES_256_SHA               "DHE-RSA-AES256-SHA"
00300 #define TLS1_TXT_ADH_WITH_AES_256_SHA                   "ADH-AES256-SHA"
00301 
00302 /* ECC ciphersuites from draft-ietf-tls-ecc-01.txt (Mar 15, 2001) */
00303 #define TLS1_TXT_ECDH_ECDSA_WITH_NULL_SHA               "ECDH-ECDSA-NULL-SHA"
00304 #define TLS1_TXT_ECDH_ECDSA_WITH_RC4_128_SHA            "ECDH-ECDSA-RC4-SHA"
00305 #define TLS1_TXT_ECDH_ECDSA_WITH_DES_192_CBC3_SHA       "ECDH-ECDSA-DES-CBC3-SHA"
00306 #define TLS1_TXT_ECDH_ECDSA_WITH_AES_128_CBC_SHA        "ECDH-ECDSA-AES128-SHA"
00307 #define TLS1_TXT_ECDH_ECDSA_WITH_AES_256_CBC_SHA        "ECDH-ECDSA-AES256-SHA"
00308 
00309 #define TLS1_TXT_ECDHE_ECDSA_WITH_NULL_SHA              "ECDHE-ECDSA-NULL-SHA"
00310 #define TLS1_TXT_ECDHE_ECDSA_WITH_RC4_128_SHA           "ECDHE-ECDSA-RC4-SHA"
00311 #define TLS1_TXT_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA      "ECDHE-ECDSA-DES-CBC3-SHA"
00312 #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_128_CBC_SHA       "ECDHE-ECDSA-AES128-SHA"
00313 #define TLS1_TXT_ECDHE_ECDSA_WITH_AES_256_CBC_SHA       "ECDHE-ECDSA-AES256-SHA"
00314 
00315 #define TLS1_TXT_ECDH_RSA_WITH_NULL_SHA                 "ECDH-RSA-NULL-SHA"
00316 #define TLS1_TXT_ECDH_RSA_WITH_RC4_128_SHA              "ECDH-RSA-RC4-SHA"
00317 #define TLS1_TXT_ECDH_RSA_WITH_DES_192_CBC3_SHA         "ECDH-RSA-DES-CBC3-SHA"
00318 #define TLS1_TXT_ECDH_RSA_WITH_AES_128_CBC_SHA          "ECDH-RSA-AES128-SHA"
00319 #define TLS1_TXT_ECDH_RSA_WITH_AES_256_CBC_SHA          "ECDH-RSA-AES256-SHA"
00320 
00321 #define TLS1_TXT_ECDHE_RSA_WITH_NULL_SHA                "ECDHE-RSA-NULL-SHA"
00322 #define TLS1_TXT_ECDHE_RSA_WITH_RC4_128_SHA             "ECDHE-RSA-RC4-SHA"
00323 #define TLS1_TXT_ECDHE_RSA_WITH_DES_192_CBC3_SHA        "ECDHE-RSA-DES-CBC3-SHA"
00324 #define TLS1_TXT_ECDHE_RSA_WITH_AES_128_CBC_SHA         "ECDHE-RSA-AES128-SHA"
00325 #define TLS1_TXT_ECDHE_RSA_WITH_AES_256_CBC_SHA         "ECDHE-RSA-AES256-SHA"
00326 
00327 #define TLS1_TXT_ECDH_anon_WITH_NULL_SHA                "AECDH-NULL-SHA"
00328 #define TLS1_TXT_ECDH_anon_WITH_RC4_128_SHA             "AECDH-RC4-SHA"
00329 #define TLS1_TXT_ECDH_anon_WITH_DES_192_CBC3_SHA        "AECDH-DES-CBC3-SHA"
00330 #define TLS1_TXT_ECDH_anon_WITH_AES_128_CBC_SHA         "AECDH-AES128-SHA"
00331 #define TLS1_TXT_ECDH_anon_WITH_AES_256_CBC_SHA         "AECDH-AES256-SHA"
00332 
00333 /* Camellia ciphersuites from RFC4132 */
00334 #define TLS1_TXT_RSA_WITH_CAMELLIA_128_CBC_SHA          "CAMELLIA128-SHA"
00335 #define TLS1_TXT_DH_DSS_WITH_CAMELLIA_128_CBC_SHA       "DH-DSS-CAMELLIA128-SHA"
00336 #define TLS1_TXT_DH_RSA_WITH_CAMELLIA_128_CBC_SHA       "DH-RSA-CAMELLIA128-SHA"
00337 #define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA      "DHE-DSS-CAMELLIA128-SHA"
00338 #define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA      "DHE-RSA-CAMELLIA128-SHA"
00339 #define TLS1_TXT_ADH_WITH_CAMELLIA_128_CBC_SHA          "ADH-CAMELLIA128-SHA"
00340 
00341 #define TLS1_TXT_RSA_WITH_CAMELLIA_256_CBC_SHA          "CAMELLIA256-SHA"
00342 #define TLS1_TXT_DH_DSS_WITH_CAMELLIA_256_CBC_SHA       "DH-DSS-CAMELLIA256-SHA"
00343 #define TLS1_TXT_DH_RSA_WITH_CAMELLIA_256_CBC_SHA       "DH-RSA-CAMELLIA256-SHA"
00344 #define TLS1_TXT_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA      "DHE-DSS-CAMELLIA256-SHA"
00345 #define TLS1_TXT_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA      "DHE-RSA-CAMELLIA256-SHA"
00346 #define TLS1_TXT_ADH_WITH_CAMELLIA_256_CBC_SHA          "ADH-CAMELLIA256-SHA"
00347 
00348 /* SEED ciphersuites from RFC4162 */
00349 #define TLS1_TXT_RSA_WITH_SEED_SHA                      "SEED-SHA"
00350 #define TLS1_TXT_DH_DSS_WITH_SEED_SHA                   "DH-DSS-SEED-SHA"
00351 #define TLS1_TXT_DH_RSA_WITH_SEED_SHA                   "DH-RSA-SEED-SHA"
00352 #define TLS1_TXT_DHE_DSS_WITH_SEED_SHA                  "DHE-DSS-SEED-SHA"
00353 #define TLS1_TXT_DHE_RSA_WITH_SEED_SHA                  "DHE-RSA-SEED-SHA"
00354 #define TLS1_TXT_ADH_WITH_SEED_SHA                      "ADH-SEED-SHA"
00355 
00356 #define TLS_CT_RSA_SIGN                 1
00357 #define TLS_CT_DSS_SIGN                 2
00358 #define TLS_CT_RSA_FIXED_DH             3
00359 #define TLS_CT_DSS_FIXED_DH             4
00360 #define TLS_CT_ECDSA_SIGN               64
00361 #define TLS_CT_RSA_FIXED_ECDH           65
00362 #define TLS_CT_ECDSA_FIXED_ECDH         66
00363 #define TLS_CT_NUMBER                   7
00364 
00365 #define TLS1_FINISH_MAC_LENGTH          12
00366 
00367 #define TLS_MD_MAX_CONST_SIZE                   20
00368 #define TLS_MD_CLIENT_FINISH_CONST              "client finished"
00369 #define TLS_MD_CLIENT_FINISH_CONST_SIZE         15
00370 #define TLS_MD_SERVER_FINISH_CONST              "server finished"
00371 #define TLS_MD_SERVER_FINISH_CONST_SIZE         15
00372 #define TLS_MD_SERVER_WRITE_KEY_CONST           "server write key"
00373 #define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE      16
00374 #define TLS_MD_KEY_EXPANSION_CONST              "key expansion"
00375 #define TLS_MD_KEY_EXPANSION_CONST_SIZE         13
00376 #define TLS_MD_CLIENT_WRITE_KEY_CONST           "client write key"
00377 #define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE      16
00378 #define TLS_MD_SERVER_WRITE_KEY_CONST           "server write key"
00379 #define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE      16
00380 #define TLS_MD_IV_BLOCK_CONST                   "IV block"
00381 #define TLS_MD_IV_BLOCK_CONST_SIZE              8
00382 #define TLS_MD_MASTER_SECRET_CONST              "master secret"
00383 #define TLS_MD_MASTER_SECRET_CONST_SIZE         13
00384 
00385 #ifdef CHARSET_EBCDIC
00386 #undef TLS_MD_CLIENT_FINISH_CONST
00387 #define TLS_MD_CLIENT_FINISH_CONST    "\x63\x6c\x69\x65\x6e\x74\x20\x66\x69\x6e\x69\x73\x68\x65\x64"  /*client finished*/
00388 #undef TLS_MD_SERVER_FINISH_CONST
00389 #define TLS_MD_SERVER_FINISH_CONST    "\x73\x65\x72\x76\x65\x72\x20\x66\x69\x6e\x69\x73\x68\x65\x64"  /*server finished*/
00390 #undef TLS_MD_SERVER_WRITE_KEY_CONST
00391 #define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"  /*server write key*/
00392 #undef TLS_MD_KEY_EXPANSION_CONST
00393 #define TLS_MD_KEY_EXPANSION_CONST    "\x6b\x65\x79\x20\x65\x78\x70\x61\x6e\x73\x69\x6f\x6e"  /*key expansion*/
00394 #undef TLS_MD_CLIENT_WRITE_KEY_CONST
00395 #define TLS_MD_CLIENT_WRITE_KEY_CONST "\x63\x6c\x69\x65\x6e\x74\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"  /*client write key*/
00396 #undef TLS_MD_SERVER_WRITE_KEY_CONST
00397 #define TLS_MD_SERVER_WRITE_KEY_CONST "\x73\x65\x72\x76\x65\x72\x20\x77\x72\x69\x74\x65\x20\x6b\x65\x79"  /*server write key*/
00398 #undef TLS_MD_IV_BLOCK_CONST
00399 #define TLS_MD_IV_BLOCK_CONST         "\x49\x56\x20\x62\x6c\x6f\x63\x6b"  /*IV block*/
00400 #undef TLS_MD_MASTER_SECRET_CONST
00401 #define TLS_MD_MASTER_SECRET_CONST    "\x6d\x61\x73\x74\x65\x72\x20\x73\x65\x63\x72\x65\x74"  /*master secret*/
00402 #endif
00403 
00404 #ifdef  __cplusplus
00405 }
00406 #endif
00407 #endif
00408 
00409 
00410 
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'