Esempio n. 1
0
        /// <summary>
        /// Gets the access point client certificate file from the configuration.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <returns>The certification authority (CA) certificates file of the access point.</returns>
        /// <feature>http://tizen.org/feature/network.wifi</feature>
        /// <exception cref="NotSupportedException">Thrown when the Wi-Fi is not supported.</exception>
        /// <exception cref="ArgumentException">Thrown when the method failed due to an invalid parameter.</exception>
        /// <exception cref="InvalidOperationException">Thrown when the method failed due to an invalid operation.</exception>
        public string GetClientCertFile()
        {
            IntPtr strPtr;
            int    ret = Interop.WiFi.Config.GetEapClientCertFile(_configHandle, out strPtr);

            if (ret != (int)WiFiError.None)
            {
                Log.Error(Globals.LogTag, "Failed to get client cert file, Error - " + (WiFiError)ret);
                WiFiErrorFactory.ThrowWiFiException(ret, _configHandle.DangerousGetHandle());
            }
            return(Marshal.PtrToStringAnsi(strPtr));
        }