eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp
branchRCL_3
changeset 18 bad0cc58d154
parent 2 1c7bc153c08e
child 19 c74b3d9f6b9e
--- a/eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp	Thu Aug 19 09:58:27 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp	Tue Aug 31 15:16:37 2010 +0300
@@ -11,14 +11,22 @@
 *
 * Contributors:
 *
-* Description:  EAP and WLAN authentication protocols.
+* Description:  This class defines Credential attributes for protected setup (previously known as simple config).
 *
 */
 
 /*
-* %version: 5.1.2 %
+* %version: 8 %
 */
 
+// This is enumeration of EAPOL source code.
+#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
+	#undef EAP_FILE_NUMBER_ENUM
+	#define EAP_FILE_NUMBER_ENUM 763 
+	#undef EAP_FILE_NUMBER_DATE 
+	#define EAP_FILE_NUMBER_DATE 1127594498 
+#endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
+
 #include "eap_tools.h"
 #include "simple_config_credential.h"
 
@@ -66,7 +74,7 @@
 
 //----------------------------------------------------------------------------
 
-EAP_FUNC_EXPORT u8_t simple_config_credential_c::get_network_index()
+EAP_FUNC_EXPORT u8_t simple_config_credential_c::get_network_index() const
 {
 	return m_network_index;
 }
@@ -80,6 +88,13 @@
 
 //----------------------------------------------------------------------------
 
+EAP_FUNC_EXPORT const eap_variable_data_c * simple_config_credential_c::get_SSID_const() const
+{
+	return &m_SSID;
+}
+
+//----------------------------------------------------------------------------
+
 EAP_FUNC_EXPORT simple_config_Authentication_Type_e simple_config_credential_c::get_Authentication_Type()
 {
 	return m_Authentication_Type;
@@ -115,6 +130,13 @@
 
 //----------------------------------------------------------------------------
 
+EAP_FUNC_EXPORT const eap_array_c<network_key_and_index_c> * simple_config_credential_c::get_network_keys_const() const
+{
+	return &m_network_keys;
+}
+
+//----------------------------------------------------------------------------
+
 EAP_FUNC_EXPORT eap_variable_data_c * simple_config_credential_c::get_MAC_address()
 {
 	return &m_MAC_address;
@@ -122,6 +144,13 @@
 
 //----------------------------------------------------------------------------
 
+EAP_FUNC_EXPORT const eap_variable_data_c * simple_config_credential_c::get_MAC_address_const() const
+{
+	return &m_MAC_address;
+}
+
+//----------------------------------------------------------------------------
+
 EAP_FUNC_EXPORT bool simple_config_credential_c::get_is_valid()
 {
 	return m_is_valid;