Esempio n. 1
0
        private int on_certificate_error(cef_request_handler_t *self, CefErrorCode cert_error, cef_string_t *request_url, cef_allow_certificate_error_callback_t *callback)
        {
            CheckSelf(self);

            var m_request_url = cef_string_t.ToString(request_url);
            var m_callback    = CefAllowCertificateErrorCallback.FromNativeOrNull(callback);

            var result = OnCertificateError(cert_error, m_request_url, m_callback);

            return(result ? 1 : 0);
        }
Esempio n. 2
0
 /// <summary>
 /// Called on the UI thread to handle requests for URLs with an invalid
 /// SSL certificate. Return true and call CefAllowCertificateErrorCallback::
 /// Continue() either in this method or at a later time to continue or cancel
 /// the request. Return false to cancel the request immediately. If |callback|
 /// is empty the error cannot be recovered from and the request will be
 /// canceled automatically. If CefSettings.ignore_certificate_errors is set
 /// all invalid certificates will be accepted without calling this method.
 /// </summary>
 protected virtual bool OnCertificateError(CefErrorCode certError, string requestUrl, CefAllowCertificateErrorCallback callback)
 {
     return(false);
 }
 /// <summary>
 /// Called on the UI thread to handle requests for URLs with an invalid
 /// SSL certificate. Return true and call CefAllowCertificateErrorCallback::
 /// Continue() either in this method or at a later time to continue or cancel
 /// the request. Return false to cancel the request immediately. If |callback|
 /// is empty the error cannot be recovered from and the request will be
 /// canceled automatically. If CefSettings.ignore_certificate_errors is set
 /// all invalid certificates will be accepted without calling this method.
 /// </summary>
 protected virtual bool OnCertificateError(CefErrorCode certError, string requestUrl, CefAllowCertificateErrorCallback callback)
 {
     return false;
 }