1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00
k-9/res
Joe Steele 21cc3d9176 Remove ClientCertificateRequiredException
With this commit, KeyChainKeyManager no longer throws the exception and
AccountSetupCheckSettings no longer catches it.

It was being thrown when the server requested a client certificate but no
client certificate alias had been configured for the server.

The code was making the incorrect assumption that the server would only
request a client certificate when such a certificate was *required*.
However, servers can be configured to accept multiple forms of
authentication, including both password authentication and client
certificate authentication.  So a server may request a certificate without
requiring it.  If a user has not configured a client certificate, then
that should not be treated as an error because the configuration may be
valid and the server may accept it.

The only indication that a certificate is *required* is when a
SSLProtocolException is thrown, caused by a SSLHandshakeException
resulting from a fatal handshake alert message received from the server.
Unfortunately, such a message is fairly generic and only "indicates that
the sender was unable to negotiate an acceptable set of security
parameters given the options available."  So there is no definitive way to
know that a client certificate is required.

Also, KeyChainKeyManager.getCertificateChain() and getPrivateKey() no
longer throw IllegalStateException().  These methods are permitted to
return null, and such a response is appropriate if the user has deleted
client certificates from the device.  Again, this may or may not cause the
server to abort the connection, depending on whether the server *requires*
a client certificate.
2014-08-11 11:07:44 -04:00
..
anim Tweak animations to use the (Slightly slower) android default animation speed. 2013-02-05 12:04:03 -05:00
drawable Fix whitespace to get rid of ExtraText lint warnings 2014-04-07 19:56:08 +02:00
drawable-hdpi Recreate app icon from SVG file 2013-11-11 01:09:09 +01:00
drawable-hdpi-v9 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-hdpi-v11 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-ldpi Add icon for the copy action 2013-08-29 20:54:36 +02:00
drawable-ldpi-v9 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-ldpi-v11 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-mdpi Recreate app icon from SVG file 2013-11-11 01:09:09 +01:00
drawable-mdpi-v9 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-mdpi-v11 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-xhdpi Recreate app icon from SVG file 2013-11-11 01:09:09 +01:00
drawable-xhdpi-v9 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-xhdpi-v11 Notification icon update 2013-02-26 20:34:52 +01:00
drawable-xxhdpi Recreate app icon from SVG file 2013-11-11 01:09:09 +01:00
drawable-xxxhdpi Recreate app icon from SVG file 2013-11-11 01:09:09 +01:00
layout Use theme based style 2014-08-11 11:07:38 -04:00
layout-land Remove unused stuff 2013-02-21 02:00:12 +01:00
layout-v14 When creating accounts only use 'modern' buttons starting with ICS 2013-05-05 06:17:56 +02:00
menu Remove ActionBarSherlock 2014-06-21 17:09:45 +02:00
values Remove ClientCertificateRequiredException 2014-08-11 11:07:44 -04:00
values-ca Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-cs Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-da Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-de Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-el Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-es Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-eu Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-fi Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-fr Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-gl Prepare to integrate Transifex translations 2014-04-08 04:35:21 +02:00
values-hu Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-it Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-iw Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-ja Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-ko Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-land Fix SpUsage lint warnings 2014-04-07 20:09:22 +02:00
values-lt Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-nl Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-pl Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-pt-rBR Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-ru Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-sk Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-sv Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-sw600dp-land-v14 Change appearance of unread widget 2013-03-16 01:57:21 +01:00
values-sw600dp-port-v14 Change appearance of unread widget 2013-03-16 01:57:21 +01:00
values-tr Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
values-uk Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-v11 Fixed a bug that caused K-9 to crash on the Accounts page on 4.x if you were using the dark theme 2013-07-01 16:34:43 -04:00
values-v14 Remove ActionBarSherlock 2014-06-21 17:09:45 +02:00
values-zh-rCN Update translations to use ellipsis character 2014-04-08 21:29:40 +02:00
values-zh-rTW Fetch translations from Transifex 2014-04-08 17:36:20 +02:00
xml Issue 6372: Add preference for setting timezone to UTC. 2014-05-27 07:53:50 -07:00
xml-ja Updated Japanese translation of the changelog. 2014-06-22 11:03:22 +09:00