]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added SIG_RSA_MD5_OID as an indicator of RSA. Some microsoft products were using...
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 21 Jul 2010 07:17:34 +0000 (09:17 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 21 Jul 2010 07:17:34 +0000 (09:17 +0200)
lib/gnutls_algorithms.c

index 1f2ad363839e24c79ec5a711d419813a9c9dde1e..88ac1982f4d847cd0acfc235732e23714dc27cd1 100644 (file)
@@ -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},