Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d6c6a73 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Part of fix for bug 4997380: Some error types unknown to SslError

Use the new SslError chromium error codes parser.

Change-Id: I0b5584bd3f3e042600caebe72f4e41989318cd6a
parent ad65b46d
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1163,7 +1163,12 @@ class BrowserFrame extends Handler {
        final SslError ssl_error;
        try {
            X509Certificate cert = new X509CertImpl(cert_der);
            SslCertificate sslCert = new SslCertificate(cert);
            if (JniUtil.useChromiumHttpStack()) {
                ssl_error = SslError.SslErrorFromChromiumErrorCode(cert_error, sslCert, url);
            } else {
                ssl_error = new SslError(cert_error, cert, url);
            }
        } catch (IOException e) {
            // Can't get the certificate, not much to do.
            Log.e(LOGTAG, "Can't get the certificate from WebKit, canceling");