mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-27 11:42:16 -05:00
21237c3720
The constructor now saves the certificate chain, so the code to retrieve it again or to perform any additional error checking in getCertificateChain() is no longer needed. The constructor now retrieves and saves the private key so that any resulting errors are detected sooner. Methods that retrieve the alias perform checks to assure that the client cert. satisfies the requested issuers and key type. It's known that Sendmail may provide a list of issuers in its certificate request, but then may authenticate against a much larger set of CAs, but then later reject the mail because the client certificate was not acceptable. Vetting against the issuer list helps detect such certificate problems sooner (upon connection) rather than later (upon transmission of mail). Earlier error detection is necessary so that errors may be presented to the user during account setup. Portions of these modifications are based on code from KeyManagerImpl: https://android.googlesource.com/platform/external/conscrypt/+/master/src/main/java/org/conscrypt/KeyManagerImpl.java |
||
---|---|---|
.tx | ||
assets | ||
compile-only-libs | ||
docs | ||
gradle/wrapper | ||
images | ||
libs | ||
plugins | ||
res | ||
src/com/fsck/k9 | ||
tests | ||
tests-on-jvm | ||
tools | ||
.gitignore | ||
.gitmodules | ||
.project | ||
Android.mk | ||
AndroidManifest.xml | ||
build_common.xml | ||
build.gradle | ||
build.xml | ||
gradlew | ||
gradlew.bat | ||
HTMLCLEANER_LICENSE | ||
lint.xml | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE | ||
proguard.cfg | ||
project.properties | ||
settings.gradle |