| RSA BSAFE SSL-C |
Security protocol components for C |
| Search |
00001 /* $Id: tls1.h,v 1.10 2003/06/01 12:32:41 gsingh Exp $ */
00002 /*
00003 * Copyright (C) 1999-2003 RSA Security Inc. All rights reserved.
00004 *
00005 * This work contains proprietary information of RSA Security.
00006 * Distribution is limited to authorized licensees of RSA
00007 * Security. Any unauthorized reproduction, distribution or
00008 * modification of this work is strictly prohibited.
00009 */
00010
00017 #ifndef HEADER_TLS1_H
00018 #define HEADER_TLS1_H
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 #define TLS1_VERSION 0x0301
00025 #define TLS1_VERSION_MAJOR 0x03
00026 #define TLS1_VERSION_MINOR 0x01
00027
00028 #define TLS1_AD_DECRYPTION_FAILED 21
00029 #define TLS1_AD_RECORD_OVERFLOW 22
00030 #define TLS1_AD_UNKNOWN_CA 48 /* fatal */
00031 #define TLS1_AD_ACCESS_DENIED 49 /* fatal */
00032 #define TLS1_AD_DECODE_ERROR 50 /* fatal */
00033 #define TLS1_AD_DECRYPT_ERROR 51
00034 #define TLS1_AD_EXPORT_RESTRICION 60 /* fatal */
00035 #define TLS1_AD_PROTOCOL_VERSION 70 /* fatal */
00036 #define TLS1_AD_INSUFFICIENT_SECURITY 71 /* fatal */
00037 #define TLS1_AD_INTERNAL_ERROR 80 /* fatal */
00038 #define TLS1_AD_USER_CANCLED 90
00039 #define TLS1_AD_NO_RENEGOTIATION 100
00040
00041 #define TLS_CT_RSA_SIGN 1
00042 #define TLS_CT_DSS_SIGN 2
00043 #define TLS_CT_RSA_FIXED_DH 3
00044 #define TLS_CT_DSS_FIXED_DH 4
00045 #define TLS_CT_NUMBER 4
00046
00047 #define TLS1_FINISH_MAC_LENGTH 12
00048
00049 #define TLS_MD_MAX_CONST_SIZE 20
00050 #define TLS_MD_CLIENT_FINISH_CONST "client finished"
00051 #define TLS_MD_CLIENT_FINISH_CONST_SIZE 15
00052 #define TLS_MD_SERVER_FINISH_CONST "server finished"
00053 #define TLS_MD_SERVER_FINISH_CONST_SIZE 15
00054 #define TLS_MD_SERVER_WRITE_KEY_CONST "server write key"
00055 #define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16
00056 #define TLS_MD_KEY_EXPANSION_CONST "key expansion"
00057 #define TLS_MD_KEY_EXPANSION_CONST_SIZE 13
00058 #define TLS_MD_CLIENT_WRITE_KEY_CONST "client write key"
00059 #define TLS_MD_CLIENT_WRITE_KEY_CONST_SIZE 16
00060 #define TLS_MD_SERVER_WRITE_KEY_CONST "server write key"
00061 #define TLS_MD_SERVER_WRITE_KEY_CONST_SIZE 16
00062 #define TLS_MD_IV_BLOCK_CONST "IV block"
00063 #define TLS_MD_IV_BLOCK_CONST_SIZE 8
00064 #define TLS_MD_MASTER_SECRET_CONST "master secret"
00065 #define TLS_MD_MASTER_SECRET_CONST_SIZE 13
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070 #endif
00071