From: Jaehyun Kim Date: Thu, 2 Aug 2018 12:00:55 +0000 (+0900) Subject: Added config APIs for EAP private key and password X-Git-Tag: submit/tizen/20180828.112014~5^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c89b4d139eedcfa55dd69e28107f798b79eba1e;p=platform%2Fcore%2Fapi%2Fwifi-manager.git Added config APIs for EAP private key and password Change-Id: Ifa7aaf4aab41862b3424d1046aa82b887f492a7a Signed-off-by: Jaehyun Kim --- diff --git a/include/wifi-manager.h b/include/wifi-manager.h index bd801e9..3bb79e4 100755 --- a/include/wifi-manager.h +++ b/include/wifi-manager.h @@ -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