The Security Information API provides functions for managing the Security information.
Required Header
#include <wifi.h>
Overview
The Security Information API provides functions for managing the Security information. You can manage the Security information using the functions.
Related Features
This API is related with the following features:
- http://tizen.org/feature/network.wifi
It is recommended to design applications with regard to features, for reliability.
You can check if a device supports the related features for this API by using System Information, and control your application's actions accordingly.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature List.
Enumeration Type Documentation
Enumeration for Wi-Fi encryption type.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_encryption_type_e instead.
The following encryption modes are used in infrastructure and ad-hoc mode.
- Since :
- 2.3
- Enumerator:
WIFI_ENCRYPTION_TYPE_NONE |
Encryption disabled
|
WIFI_ENCRYPTION_TYPE_WEP |
WEP
|
WIFI_ENCRYPTION_TYPE_TKIP |
TKIP
|
WIFI_ENCRYPTION_TYPE_AES |
AES
|
WIFI_ENCRYPTION_TYPE_TKIP_AES_MIXED |
TKIP and AES are both supported
|
Enumeration for Wi-Fi security type.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_security_type_e instead.
The following security modes are used in infrastructure and ad-hoc mode. For now all EAP security mechanisms are provided only in infrastructure mode.
- Since :
- 2.3
- Enumerator:
WIFI_SECURITY_TYPE_NONE |
Security disabled
|
WIFI_SECURITY_TYPE_WEP |
WEP
|
WIFI_SECURITY_TYPE_WPA_PSK |
WPA-PSK
|
WIFI_SECURITY_TYPE_WPA2_PSK |
WPA2-PSK
|
WIFI_SECURITY_TYPE_EAP |
EAP
|
Function Documentation
Gets the Wi-Fi encryption type.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_ap_get_encryption_type() instead.
- Since :
- 2.3
- Parameters:
-
[in] | ap | The access point handle |
[out] | type | The type of Wi-Fi encryption |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Gets the Wi-Fi security mode.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_ap_get_security_type() instead.
- Since :
- 2.3
- Parameters:
-
[in] | ap | The access point handle |
[out] | type | The type of Wi-Fi security |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Checks whether the passphrase is required or not.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_ap_is_passphrase_required() instead.
- Since :
- 2.3
- Parameters:
-
[in] | ap | The access point handle |
[out] | required | true if passphrase is required, false if passphrase is not required. |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Sets the Wi-Fi encryption type.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_ap_set_encryption_type() instead.
- Since :
- 2.3
- Parameters:
-
[in] | ap | The access point handle |
[in] | type | The type of Wi-Fi encryption |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Sets the passphrase.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_ap_set_passphrase() instead.
- Since :
- 2.3
- Parameters:
-
[in] | ap | The access point handle |
[in] | passphrase | The passphrase of access point |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-
Sets the Wi-Fi security mode.
- Deprecated:
- Deprecated since 3.0. Use wifi_manager_ap_set_security_type() instead.
- Since :
- 2.3
- Parameters:
-
[in] | ap | The access point handle |
[in] | type | The type of Wi-Fi security |
- Returns:
- 0 on success, otherwise negative error value
- Return values:
-