eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp
changeset 26 9abfd4f00d37
parent 2 1c7bc153c08e
child 34 ad1f037f1ac2
--- a/eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp	Thu May 13 22:51:27 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/type/simple_config/simple_config/src/simple_config_credential.cpp	Mon May 24 20:32:47 2010 +0300
@@ -11,12 +11,12 @@
 *
 * 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 %
 */
 
 #include "eap_tools.h"
@@ -66,7 +66,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 +80,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 +122,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 +136,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;