]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
On unknown public key algorithms return Unknown name.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 16 Mar 2011 18:18:32 +0000 (19:18 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Wed, 16 Mar 2011 18:47:51 +0000 (19:47 +0100)
lib/gnutls_algorithms.c

index 79a71679f8df0e097010b90c66cdbf26c629cae5..797e209bd3f9e9e96b3189ee37cd97a2b0724ec2 100644 (file)
@@ -2208,6 +2208,7 @@ typedef struct gnutls_pk_entry gnutls_pk_entry;
 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 */
+  {"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 */