]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Added new fallback OID for RSA certificates.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 25 Oct 2013 18:09:06 +0000 (20:09 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 25 Oct 2013 18:09:06 +0000 (20:09 +0200)
lib/algorithms/publickey.c

index 3de256336bccf01b0495fd812b387ce4d26b9335..fa98298242e0554751fd0fa73ffeef6f6acf5598 100644 (file)
@@ -92,8 +92,9 @@ static const gnutls_pk_entry pk_algorithms[] = {
   {"UNKNOWN", NULL, GNUTLS_PK_UNKNOWN},
   {"RSA", PK_PKIX1_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 */
-  {"RSA (SHA1)", SIG_RSA_SHA1_OID, GNUTLS_PK_RSA},      /* some other broken certificates set RSA with SHA1 as an indicator of RSA */
+  {"RSA-MD5", SIG_RSA_MD5_OID, GNUTLS_PK_RSA},        /* some other broken certificates set RSA with MD5 as an indicator of RSA */
+  {"RSA-SHA1", SIG_RSA_SHA1_OID, GNUTLS_PK_RSA},      /* some other broken certificates set RSA with SHA1 as an indicator of RSA */
+  {"RSA-SHA1", "1.3.14.3.2.29", GNUTLS_PK_RSA},      /* some other broken certificates set RSA with SHA1 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},