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

Commit ff48609b authored by cketti's avatar cketti
Browse files

Remove `CertificateValidationException`'s dependency on the Android SDK

parent 6685912c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -7,8 +7,6 @@ import java.security.cert.X509Certificate;

import javax.net.ssl.SSLHandshakeException;

import android.security.KeyChainException;

public class CertificateValidationException extends MessagingException {
    public static final long serialVersionUID = -1;
    private final Reason mReason;
@@ -90,7 +88,7 @@ public class CertificateValidationException extends MessagingException {
        while (throwable != null
                && !(throwable instanceof CertPathValidatorException)
                && !(throwable instanceof CertificateException)
                && !(throwable instanceof KeyChainException)
                && !("android.security.KeyChainException".equals(throwable.getClass().getCanonicalName()))
                && !(throwable instanceof SSLHandshakeException)) {
            throwable = throwable.getCause();
        }