mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-12 06:08:25 -05:00
Fix the ability to accept invalid SSL certificates for exchange support.
This commit is contained in:
parent
203f9fbaf4
commit
9e5435a5f3
@ -32,6 +32,7 @@ import org.xml.sax.SAXException;
|
|||||||
import org.xml.sax.XMLReader;
|
import org.xml.sax.XMLReader;
|
||||||
import org.xml.sax.helpers.DefaultHandler;
|
import org.xml.sax.helpers.DefaultHandler;
|
||||||
|
|
||||||
|
import javax.net.ssl.SSLException;
|
||||||
import javax.xml.parsers.ParserConfigurationException;
|
import javax.xml.parsers.ParserConfigurationException;
|
||||||
import javax.xml.parsers.SAXParser;
|
import javax.xml.parsers.SAXParser;
|
||||||
import javax.xml.parsers.SAXParserFactory;
|
import javax.xml.parsers.SAXParserFactory;
|
||||||
@ -674,6 +675,10 @@ public class WebDavStore extends Store
|
|||||||
response.getStatusLine().toString());
|
response.getStatusLine().toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (SSLException e)
|
||||||
|
{
|
||||||
|
throw new CertificateValidationException(e.getMessage(), e);
|
||||||
|
}
|
||||||
catch (IOException ioe)
|
catch (IOException ioe)
|
||||||
{
|
{
|
||||||
Log.e(K9.LOG_TAG, "IOException: " + ioe + "\nTrace: " + processException(ioe));
|
Log.e(K9.LOG_TAG, "IOException: " + ioe + "\nTrace: " + processException(ioe));
|
||||||
|
Loading…
Reference in New Issue
Block a user