eapol/eapol_framework/eapol_common/type/tls_peap/tls/src/tls_record_header.cpp
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: %
    19 * %version: 10 %
    20 */
    20 */
    21 
    21 
    22 // This is enumeration of EAPOL source code.
    22 // This is enumeration of EAPOL source code.
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    24 	#undef EAP_FILE_NUMBER_ENUM
    24 	#undef EAP_FILE_NUMBER_ENUM
   129 
   129 
   130 
   130 
   131 /// This function returns debug strings of the TLS-protocol values.
   131 /// This function returns debug strings of the TLS-protocol values.
   132 eap_const_string tls_record_header_c::get_tls_protocol_string(const tls_record_protocol_e protocol)
   132 eap_const_string tls_record_header_c::get_tls_protocol_string(const tls_record_protocol_e protocol)
   133 {
   133 {
   134 
       
   135 #if defined(USE_EAP_TRACE_STRINGS)
   134 #if defined(USE_EAP_TRACE_STRINGS)
   136 	EAP_IF_RETURN_STRING(protocol, tls_record_protocol_none)
   135 	EAP_IF_RETURN_STRING(protocol, tls_record_protocol_none)
   137 	else EAP_IF_RETURN_STRING(protocol, tls_record_protocol_change_cipher_spec)
   136 	else EAP_IF_RETURN_STRING(protocol, tls_record_protocol_change_cipher_spec)
   138 	else EAP_IF_RETURN_STRING(protocol, tls_record_protocol_alert)
   137 	else EAP_IF_RETURN_STRING(protocol, tls_record_protocol_alert)
   139 	else EAP_IF_RETURN_STRING(protocol, tls_record_protocol_handshake)
   138 	else EAP_IF_RETURN_STRING(protocol, tls_record_protocol_handshake)