From: Nikos Mavrogiannopoulos Date: Wed, 21 Jul 2010 07:17:34 +0000 (+0200) Subject: Added SIG_RSA_MD5_OID as an indicator of RSA. Some microsoft products were using... X-Git-Tag: gnutls_2_11_3~95 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcfa633a680253412656d37abe4aaa468a339880;p=thirdparty%2Fgnutls.git Added SIG_RSA_MD5_OID as an indicator of RSA. Some microsoft products were using it. Reported by Mads Kiilerich. --- diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index 1f2ad36383..88ac1982f4 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -2130,7 +2130,8 @@ static const gnutls_pk_entry pk_algorithms[] = { /* having duplicate entries is ok, as long as the one * we want to return OID from is first */ {"RSA", PK_PKIX1_RSA_OID, GNUTLS_PK_RSA}, - {"RSA (X.509)", PK_X509_RSA_OID, GNUTLS_PK_RSA}, + {"RSA (X.509)", PK_X509_RSA_OID, GNUTLS_PK_RSA}, /* some certificates use this OID for RSA */ + {"RSA (MD5)", SIG_RSA_MD5_OID, GNUTLS_PK_RSA}, /* some other broken certificates set RSA with MD5 as an indicator of RSA */ {"DSA", PK_DSA_OID, GNUTLS_PK_DSA}, {"GOST R 34.10-2001", PK_GOST_R3410_2001_OID, GNUTLS_PK_UNKNOWN}, {"GOST R 34.10-94", PK_GOST_R3410_94_OID, GNUTLS_PK_UNKNOWN},