k-9/src/com/fsck/k9/mail
Danny Baumann 4b76027d5d Don't throw CertificateValidationException for all SSLExceptions.
An interrupted connection attempt to the server yields an SSLException
as well, like this:

E/k9      ( 6937): Caused by: javax.net.ssl.SSLHandshakeException: Connection closed by peer
E/k9      ( 6937):      at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:302)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.waitForHandshake(OpenSSLSocketImpl.java:598)
E/k9      ( 6937):      at com.android.org.conscrypt.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:560)
E/k9      ( 6937):      at com.fsck.k9.mail.store.ImapStore$ImapConnection.open(ImapStore.java:2459)

We don't want the user to notify of 'certificate problems' in that case.
Fix it by checking whether the SSLException was actually triggered by a
CertificateException.
2014-12-17 19:28:37 +01:00
..
filter Merge branch 'pr/453' 2014-03-05 06:19:55 +01:00
internet Fixes for cketti's code review on pull req #472 2014-06-13 17:49:26 -07:00
store Don't throw CertificateValidationException for all SSLExceptions. 2014-12-17 19:28:37 +01:00
transport Remove SslHelper. Don't use SecureRandom. 2014-09-06 18:15:25 -04:00
Address.java Fixes for cketti's code review on pull req #472 2014-06-13 17:49:26 -07:00
AuthType.java Remove SslHelper.isClientCertificateSupportAvailable() 2014-08-11 11:07:42 -04:00
Authentication.java Retrict use of AuthenticationFailedException 2014-02-25 15:22:30 -05:00
AuthenticationFailedException.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
Body.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
BodyPart.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
CertificateChainException.java Fix erroneous SSL certificate warnings 2013-08-25 15:43:36 -04:00
CertificateValidationException.java Throw CertificateValidationException if EXTERNAL authentication fails 2014-08-11 11:07:54 -04:00
CompositeBody.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
ConnectionSecurity.java Client Certificate Authentication 2014-06-05 21:03:18 +02:00
FetchProfile.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
Flag.java + add support for $Forwarded IMAP flag 2012-08-29 02:26:38 +02:00
Folder.java Remove getNotifyClass() from Folder 2014-09-04 23:54:06 +02:00
Message.java use Set instead of implementation type 2014-02-15 23:59:24 +01:00
MessagingException.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
Multipart.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
Part.java Recursively convert attachments of type message/rfc822 to 7bit if necessary. 2013-09-03 19:53:13 -04:00
PushReceiver.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
Pusher.java Big, scary massive "ant astyle" to get us back to something 2011-02-06 17:09:48 -05:00
ServerSettings.java Client Certificate Authentication 2014-06-05 21:03:18 +02:00
Store.java Revert unused code changes 2014-08-11 11:07:37 -04:00
Transport.java Fix Issue 2389: Self signed certificate expiry causes silent send/receive failure. 2013-01-10 16:49:55 -05:00