diff options
| author | Andrew Stadler <stadler@android.com> | 2009-09-29 15:28:43 -0700 |
|---|---|---|
| committer | Andrew Stadler <stadler@android.com> | 2009-09-29 15:28:43 -0700 |
| commit | e4a7cc440f081ef9c4375a2bd2f82680cc11b152 (patch) | |
| tree | a36ace84842317b3cbced56ad55becb61d7b611a /res/xml/providers.xml | |
| parent | 0797b4e35189c47574476773c126178a493bfada (diff) | |
| download | android_packages_apps_Email-e4a7cc440f081ef9c4375a2bd2f82680cc11b152.tar.gz android_packages_apps_Email-e4a7cc440f081ef9c4375a2bd2f82680cc11b152.tar.bz2 android_packages_apps_Email-e4a7cc440f081ef9c4375a2bd2f82680cc11b152.zip | |
Re-enable modernized version of "optional" SSL/TLS
* Add "Accept all certificates" modes to incoming/outgoing secure choices
* Change URI scheme slightly to make "trust" a flag, not part of the
protocol.
* Change Stores to know about new URI scheme
* Slightly rework Transport API to make "trust" an independent flag
* Adapt HostAuth to handle new Uri scheme
* Remove the old ambiguous "optional" code, which was allowing
some unsigned certificates, but was *also* allowing TLS to
optionally start (though not SSL, despite the UI strings.)
* Add a few unit tests to EmailContent
* Add logging and a bunch of comments to TrustManagerFactory, and a bit
of simple cleanup to make it more readable.
* Add missing conversion of SSLException->CertificateValidationException
in TLS so we get the correct certificate errors from TLS too.
* Re-enable TLS for mac.com accounts (which had a certificate problem)
Fixes bug http://b/2119755, http://b/1374780, and probably a raft of
earlier and/or external bugs about certificate problems.
Change-Id: Iaf99a8da3eaadaa4cdeec224737838b5d6813e55
Diffstat (limited to 'res/xml/providers.xml')
| -rw-r--r-- | res/xml/providers.xml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/res/xml/providers.xml b/res/xml/providers.xml index 148308316..7808abd8c 100644 --- a/res/xml/providers.xml +++ b/res/xml/providers.xml @@ -69,6 +69,12 @@ smtp+ssl+ SMTP with required SSL transport security. If SSL is not available the connection fails. + To the above schemes you may also add "trustallcerts" to indicate that, + although link encryption is still required, "non-trusted" certificates may + will be excepted. For example, "imap+ssl+trustallcerts" or + "smtp+tls+trustallcerts". This should only used when necessary, as it + could allow a spoofed server to intercept password and mail. + The URIs should be full templates for connection, including a port if the service uses a non-default port. The default ports are as follows: imap 143 pop3 110 smtp 587 @@ -113,10 +119,12 @@ </provider> <!-- USA --> + <!-- Note, AOL appears to support SSL on both sides, as well --> <provider id="aim" label="AIM" domain="aim.com"> <incoming uri="imap://imap.aim.com" label="IMAP" username="$email" /> <outgoing uri="smtp://smtp.aim.com" username="$email" /> </provider> + <!-- Note, AOL appears to support SSL on both sides, as well --> <provider id="aol" label="AOL" domain="aol.com"> <incoming uri="imap://imap.aol.com" label="IMAP" username="$email" /> <outgoing uri="smtp://smtp.aol.com" username="$email" /> @@ -133,10 +141,9 @@ <incoming uri="pop3+ssl+://pop.east.cox.net" username="$user" /> <outgoing uri="smtp+ssl+://smtp.east.cox.net" username="$user" /> </provider> - <!-- Note: smtp.mac.com accepts TLS but the cert is untrusted --> <provider id="dotmac" label=".Mac" domain="mac.com"> <incoming uri="imap+ssl+://mail.mac.com" username="$email" /> - <outgoing uri="smtp://smtp.mac.com" username="$email" /> + <outgoing uri="smtp+tls+trustallcerts://smtp.mac.com" username="$email" /> </provider> <provider id="earthlink" label="Earthlink" domain="earthlink.net"> <incoming uri="pop3://pop.earthlink.net" username="$email" /> @@ -162,10 +169,9 @@ <outgoing uri="smtp+tls+://smtp.live.com" username="$email" /> </provider> <!-- Note: Mac Mail.app sets IMAP to mail.mac.com, but it's the same server --> - <!-- Note: smtp.mac.com accepts TLS but the cert is untrusted --> <provider id="mobileme" label="MobileMe" domain="me.com"> <incoming uri="imap+ssl+://mail.me.com" username="$email" /> - <outgoing uri="smtp://smtp.me.com" username="$email" /> + <outgoing uri="smtp+tls+trustallcerts://smtp.me.com" username="$email" /> </provider> <provider id="netzero" label="NetZero" domain="netzero.com"> <incoming uri="pop3://pop.netzero.com" username="$user" /> |
