1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-03-09 22:09:47 -04:00
Joe Steele ada74db8d5 Refactor KeyChainKeyManager()'s sClientCertificateReferenceWorkaround
The referenced issue states that it is only applicable to Android < 4.2
(testing confirms the problem on 4.1.2, but not on 4.2.2).

A test was added for the version code, primarily as a finder's aid for a
day when K-9 Mail no longer supports Android < 4.2 and the work-around can
be removed.

The referenced issue also states that it is only necessary to hold a
reference to the first PrivateKey retrieved. (Testing indicates that the
problem is avoided so long at least one reference is always maintained to
a PrivateKey -- it doesn't actually need to be a continuous reference to
the first PrivateKey.)

From my understanding, a normal class loader never unloads a class, so the
static reference can be safely kept privately in KeyChainKeyManager.
2014-08-11 11:06:38 -04:00
2014-01-04 01:52:09 +01:00
2013-11-11 01:09:09 +01:00
2013-03-16 01:57:21 +01:00
2014-06-21 17:09:45 +02:00
2014-08-11 11:05:18 -04:00
2014-06-21 15:33:45 +02:00
2014-03-01 05:02:17 +01:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2014-04-18 16:55:41 +02:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2013-11-07 06:48:10 +01:00
2013-11-07 06:48:10 +01:00
2014-04-08 21:03:33 +02:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
2014-06-21 17:09:45 +02:00
Description
No description provided
887 MiB
Languages
Java 69.2%
PostScript 30.2%
Perl 0.3%
Gradle 0.2%