aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/crypto/XmppDomainVerifier.java (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-03-12integrate trust manager into conversationsChristian Schneppe1-2/+0
2017-08-01made OF selfSigned() workaround only available >=kitkatChristian Schneppe1-4/+3
this undos 0f34c0ab3ed0ce3c98dc4d835c7897e8d533f7e6 as it turns out 4.1 and 4.0 only break when checking if a cert is self signed.
2017-08-01use CN-workaround for pre-kitkatChristian Schneppe1-2/+4
2017-08-01fix regression introduces with OF fix. properly fall back to common nameChristian Schneppe1-7/+7
2017-08-01workaround for OpenFire: check CN first in self signed certsChristian Schneppe1-5/+32
The self signed certificates created by OpenFire (Not sure if other certs are affected as well) will crash the Java/Android TLS stack when accessing getSubjectAlternativeNames() on the the peer certificate. This usually goes unnoticed in other applications since the DefaultHostnameVerifier checkes the CN first. That however is a violation of RFC6125 section 6.4.4 which requires us to check for the existence of SAN first. This commit adds a work around where in self signed certificates we check for the CN first as well. (Avoiding the call to getSubjectAlternativeNames())
2017-06-24also check for hostname in in certs if hostname is from trusted sourceChristian Schneppe1-4/+16
2016-11-19reformat codeChristian Schneppe1-94/+94
2016-07-29changed package id inside manifest and projectChristian Schneppe1-1/+1
2015-10-15moved other name parsing into seperate methodDaniel Gultsch1-40/+45
2015-10-15use constants for oids in xmppdomainverifierDaniel Gultsch1-2/+5
2015-10-15more checks for xmppdomainverifier and better wildcard handlingDaniel Gultsch1-4/+10
2015-10-15use own XmppDomainVerifier instead of deprecated StrictHostnameVerifier. ↵Daniel Gultsch1-0/+113
fixes #1189