Improved "Standard Names" JSSE compliance
Update jsse.patch to produce RI compliant "standard names" for server
authentication types passed to X509TrustManager.checkServerTrusted
Change-Id: Ib5af6229a048ef9dd038a50f5baf96c3ebccb245
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 4f3b2fa..38104a2 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -2602,6 +2602,8 @@
const char* SSL_authentication_method(const SSL* ssl)
{
+ if (ssl->cert != NULL && ssl->cert->rsa_tmp != NULL)
+ return SSL_TXT_RSA "_" SSL_TXT_EXPORT;
switch (ssl->version)
{
case SSL2_VERSION: