Added config APIs for EAP private key and password 09/185809/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Thu, 2 Aug 2018 12:00:55 +0000 (21:00 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Thu, 2 Aug 2018 12:13:47 +0000 (21:13 +0900)
Change-Id: Ifa7aaf4aab41862b3424d1046aa82b887f492a7a
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
include/wifi-manager.h

index bd801e91864b6f303516c19463c95f5aab914af0..3bb79e44e9b73789dc60eecf4de00e449d3a85e2 100755 (executable)
@@ -3550,6 +3550,43 @@ int wifi_manager_config_get_eap_client_cert_file(wifi_manager_config_h config, c
 int wifi_manager_config_set_eap_client_cert_file(wifi_manager_config_h config,
                const char *private_key, const char *client_cert);
 
+/**
+ * @brief Gets the private key file of EAP.
+ * @since_tizen 5.0
+ * @remarks This function is valid only if the EAP type is #WIFI_MANAGER_EAP_TYPE_TLS.
+ *            You must release @a file using free().
+ *
+ * @param[in] config           The access point configuration handle
+ * @param[out] file            The file path of private key
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_NOT_INITIALIZED      Not initialized
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OUT_OF_MEMORY        Out of memory
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ */
+int wifi_manager_config_get_eap_private_key_file(wifi_manager_config_h config, char **file);
+
+/**
+ * @brief Sets the private key information of EAP.
+ * @since_tizen 5.0
+ * @remarks This function is valid only if the EAP type is #WIFI_MANAGER_EAP_TYPE_TLS.
+ *
+ * @param[in] config           The access point configuration handle
+ * @param[in] file             The file path of private key
+ * @param[in] password         The password
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_NOT_INITIALIZED      Not initialized
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ * @see wifi_manager_config_save()
+ */
+int wifi_manager_config_set_eap_private_key_info(wifi_manager_config_h config,
+               const char *file, const char *password);
+
 /**
  * @brief Gets access point identity from configuration.
  * @since_tizen 3.0