19 #ifndef LIBMDM_MDM_WIFI_H 20 #define LIBMDM_MDM_WIFI_H 23 #include "mdm_client_type.h" 112 MDM_WIFI_EAP_PHASE_2_AUTH_MAX
119 typedef struct mdm_wifi_open_sim_aka_data_s {
128 typedef struct mdm_wifi_wep_wpa_data_s {
129 const char *password;
137 typedef struct mdm_wifi_eap_peap_ttls_data_s {
151 typedef struct mdm_wifi_eap_tls_data_s {
177 typedef struct mdm_wifi_ap_config_s {
201 CERTIFICATE_SECURITY_LEVEL_MAX
222 MDM_WIFI_ALLOWED = 0x0010,
223 MDM_WIFI_BLOCKED_NETWORK_POLICY_CHANGED = 0x0020,
628 mdm_result_t mdm_set_network_identity_value(
const char *ssid,
const char *value);
658 mdm_data_t *mdm_get_network_identity_value(
const char *ssid);
703 mdm_result_t mdm_set_network_password(
const char *ssid,
const char *value);
740 mdm_status_t mdm_get_network_password(
const char *ssid);
784 mdm_result_t mdm_set_network_wep_key(
const char *ssid,
const char *value);
865 mdm_result_t mdm_set_network_ca_certificate(
const char *ssid,
const char *value);
898 mdm_data_t *mdm_get_network_ca_certificate(
const char *ssid);
953 mdm_result_t mdm_set_network_client_certificate(
const char *ssid,
const char *value);
986 mdm_data_t *mdm_get_network_client_certificate(
const char *ssid);
1035 mdm_result_t mdm_set_network_private_key(
const char *ssid,
const char *filepath,
const char *password);
1066 mdm_data_t *mdm_get_network_private_key(
const char *ssid);
1184 mdm_result_t mdm_set_network_gateway(
const char *ssid,
const char *value);
1216 mdm_data_t *mdm_get_network_gateway(
const char *ssid);
1263 mdm_result_t mdm_set_network_ip(
const char *ssid,
const char *value);
1295 mdm_data_t *mdm_get_network_ip(
const char *ssid);
1344 mdm_result_t mdm_set_network_primary_dns(
const char *ssid,
const char *value);
1376 mdm_data_t *mdm_get_network_primary_dns(
const char *ssid);
1424 mdm_result_t mdm_set_network_secondary_dns(
const char *ssid,
const char *value);
1457 mdm_data_t *mdm_get_network_secondary_dns(
const char *ssid);
1506 mdm_result_t mdm_set_network_subnet_mask(
const char *ssid,
const char *value);
1539 mdm_data_t *mdm_get_network_subnet_mask(
const char *ssid);
1993 mdm_result_t mdm_set_network_psk(
const char *ssid,
const char *psk);
2077 mdm_result_t mdm_set_network_anonymous_id_value(
const char *ssid,
const char *value);
2109 mdm_data_t *mdm_get_network_anonymous_id_value(
const char *ssid);
2188 mdm_status_t mdm_get_network_dhcp_enabled(
const char *ssid);
2266 mdm_result_t mdm_remove_network_configuration(
const char *ssid);
3705 #endif // LIBMDM_MDM_WIFI_H
mdm_status_t mdm_is_wifi_hidden_ssid(void)
MDM_TRUE if this network does not broadcast its SSID, so an SSID-specific probe request must be used ...
mdm_wifi_status_t
Enumerate Wi-Fi status type.
const char * anonymous_identity
mdm_result_t mdm_add_wifi_ssids_to_blacklist(GList *SSIDs)
API to add a list of Wi-Fi network SSIDs to the Wi-Fi network blacklist.
mdm_wifi_eap_phase_2_auth_e phase_2_auth
mdm_result_t mdm_set_minimum_required_security(mdm_wifi_sec_type_e secType)
API to set a minimum security level to connect to a Wi-Fi AP.
mdm_result_t mdm_set_allow_wifi(mdm_status_t state)
API to allow or restrict the use of Wi-Fi.
Wi-Fi private key Information.
wifi_noti_t
Enumerate Wi-Fi notice type.
const char * anonymous_identity
const char * private_key_file
mdm_result_t knox_mdm_preferred_ssids_clear(void)
API to clear Wi-Fi SSIDs from the list of preferred access points.
mdm_result_t mdm_clear_wifi_ssids_blacklist(void)
API to remove all Wi-Fi network SSIDs from the Wi-Fi network blacklist.
const char * ca_cert_file
mdm_result_t mdm_set_wifi_state_change_allowed(bool allow)
API to allow or disallow Wi-Fi State Change (to ON/OFF).
This structure is used to store GList.
mdm_status_t mdm_is_wifi_ap_setting_user_modification_allowed(void)
API to check whether modification of Wi-Fi AP Setting by the user is allowed or not.
mdm_result_t mdm_activate_wifi_ssid_restriction(mdm_status_t value)
API to activate or deactivate the Wi-Fi Network SSID access restriction.
mdm_wifi_eap_phase_2_auth_e
Phase 2 EAP authentication.
mdm_data_t * mdm_get_wifi_ap_setting(void)
API to get the current Wi-Fi AP or Wi-Fi tethering or HotSpot setting of the device.
wifi_tethering_status_t
Enumerate Wi-Fi tethering status type.
Access point configuration.
mdm_status_t mdm_get_allow_wifi(void)
API to check if Wi-Fi use is allowed or restricted.
mdm_data_t * mdm_get_wifi_ssids_from_blacklist(void)
API to retrieve the blacklist of Wi-Fi network SSIDs for all admins.
const char * ca_cert_file
Struct to store AP password.
mdm_status_t
MDM Policy status.
mdm_status_t mdm_get_allow_user_policy_changes(void)
API to allow or disallow modify all Wi-Fi network settings.
mdm_result_t mdm_allow_wifi_ap_setting_user_modification(mdm_status_t value)
API to allow or deny the user to edit Wi-Fi AP settings.
mdm_result_t knox_mdm_preferred_ssid_enforce(mdm_status_t status)
API to set the enforce mode of the preferred Wi-Fi access point list.
const char * subject_match
mdm_status_t mdm_get_automatic_connection_to_wifi(void)
API to check whether the automatic connection to a known Wi-Fi network is allowed or not...
mdm_status_t mdm_get_password_hidden(void)
API to get a Wi-Fi profile from the admin.
mdm_status_t mdm_is_network_blocked(const char *ssid)
API to check if a network with the given SSID is blocked.
const char * subject_match
mdm_result_t mdm_remove_wifi_ssids_from_blacklist(GList *SSIDs)
API to remove a list of Wi-Fi network SSIDs from the Wi-Fi network blacklist.
mdm_data_t * knox_mdm_protected_ssids_get(const mdm_status_t all_admins)
API to identify the contents of the protected Wi-Fi access point list.
mdm_status_t mdm_is_wifi_ssid_restriction_active(void)
API to get active state of the Bluetooth device restriction.
mdm_result_t mdm_clear_wifi_ssids_whitelist(void)
API to remove all Wi-Fi network SSIDs from the Wi-Fi network blacklist.
mdm_result_t mdm_set_wifi_ap_setting(const char *ssid, mdm_wifi_sec_type_e securityType, const char *password)
API to configure the Wi-Fi AP or Wi-Fi tethering or HotSpot setting of the device.
mdm_data_t * mdm_get_wifi_ssid(void)
API to get the Service Set Identifier (SSID) of the current 802.11 network.
mdm_result_t mdm_add_wifi_ap_config(const mdm_wifi_ap_config_t *config)
API to add new Wi-Fi access point configuration.
Wi-Fi configuration type.
mdm_result_t
MDM API result.
mdm_result_t knox_mdm_protected_ssids_clear(void)
API to clear Wi-Fi SSIDs from the protected access point list.
mdm_status_t knox_mdm_preferred_ssid_is_enforced(void)
API to get the current status of enforce mode for preferred Wi-Fi access points.
mdm_result_t mdm_set_allow_user_policy_changes(mdm_status_t enable)
API to allow or disallow modify all Wi-Fi network settings.
mdm_status_t mdm_is_network_secure(const char *ssid)
API to get the enterprise WLAN EAP type.
mdm_result_t knox_mdm_protected_ssid_delete(const char *ssid)
API to delete an SSID from the protected Wi-Fi access point list.
mdm_result_t mdm_set_password_hidden(mdm_status_t passHidden)
API to set the hidden state of the WLAN enterprise network.
mdm_data_t * mdm_get_wifi_dhcpinfo(void)
API to get the DHCP-assigned addresses from the last successful DHCP request, if any.
mdm_status_t mdm_is_wifi_state_change_allowed(void)
API to check if Wi-Fi state change is allowed or not.
Settings to set for SECURITY_LEVEL_EAP_PEAP and SECURITY_LEVEL_EAP_TTLS.
mdm_wifi_sec_type_e mdm_get_minimum_required_security(void)
API to get the current minimum security level.
mdm_wifi_eap_type_e
Wi-Fi eap type.
Settings to set for SECURITY_LEVEL_EAP_TLS.
mdm_data_t * knox_mdm_preferred_ssids_get(mdm_status_t all_admins)
API to identify the contents of the preferred Wi-Fi access point list.
mdm_result_t mdm_add_wifi_ssids_to_whitelist(GList *SSIDs)
API to add a list of Wi-Fi network SSIDs to the Wi-Fi network whitelist.
mdm_result_t knox_mdm_protected_ssid_add(const char *ssid)
API to add an SSID into the protected Wi-Fi access point list.
mdm_result_t mdm_get_blocked_networks(GList **blockedlist, GList **exceptlist)
API to get the list of blocked SSIDs and the list of SSID exceptions.
mdm_result_t mdm_remove_wifi_ssids_from_whitelist(GList *SSIDs)
API to remove a list of Wi-Fi network SSIDs from the Wi-Fi network whitelist.
mdm_result_t knox_mdm_preferred_ssid_add(const char *ssid)
API to add SSIDs onto the list of preferred Wi-Fi access points.
const char * client_cert_file
mdm_result_t mdm_set_automatic_connection_to_wifi(bool enable)
API to allow or disallow the user to automatically connect to a known Wi-Fi network.
mdm_result_t knox_mdm_preferred_ssid_delete(const char *ssid)
API to delete specified SSIDs from the list of preferred Wi-Fi access points.
mdm_wifi_sec_type_e
Wi-Fi security type.
mdm_data_t * mdm_get_wifi_ssids_from_whitelist(void)
API to retrieve the whitelist of Wi-Fi network SSIDs for all admins.