Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Header: #include <applibs/wificonfig.h>
Gets the identifier of the stored client certificate for a Wi-Fi network.
static int WifiConfig_GetClientCertStoreIdentifier(int networkId, CertStore_Identifier *outIdentifier);
Parameters
networkIdThe ID of the network about which to get information. WifiConfig_AddNetwork returns the network ID.outIdentifierA pointer to a CertStore_Identifier structure that receives the identifier for the client certificate.
Errors
Returns -1 if an error is encountered and sets errno to the error value.
EACCES: the application manifest doesn't include the EnterpriseWifiConfig capability.
EFAULT: the
certStoreIdentifierparameter is NULL.ERANGE: the length of the
certStoreIdentifierparameter is greater thanCERTSTORE_MAX_IDENTIFIER_LENGTH.EAGAIN: the Wi-Fi device isn't ready.
ENETDOWN: the Wi-Fi network interface is unavailable.
EINVAL: the
networkIdparameter is invalid.ENODEV: the
networkIdparameter doesn't match any of the IDs of the stored networks.
Any other errno may also be specified; such errors aren't deterministic and there's no guarantee that the same behavior will be retained through system updates.
Return value
Returns 0 for success, or -1 for failure, in which case errno is set to the error value.
Application manifest requirements
The application manifest must include the EnterpriseWifiConfig capability.