]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Support XMPP OID.
authorSimon Josefsson <simon@josefsson.org>
Thu, 8 Feb 2007 08:29:02 +0000 (08:29 +0000)
committerSimon Josefsson <simon@josefsson.org>
Thu, 8 Feb 2007 08:29:02 +0000 (08:29 +0000)
lib/x509/x509.c

index 81838be7fa6ae545915de63d01bf3baeb5fce041..48363e274ebfd828d54e1a840e77504e9241ece6 100644 (file)
@@ -898,6 +898,13 @@ parse_general_name (ASN1_TYPE src, const char *src_name,
          gnutls_assert ();
          return _gnutls_asn2err (result);
        }
+
+      if (othername_oid)
+       {
+#define XMPP_OID "1.3.6.1.5.5.7.8.5"
+         if (len > strlen (XMPP_OID) && strcmp (name, XMPP_OID) == 0)
+           type = GNUTLS_SAN_OTHERNAME_XMPP;
+       }
     }
   else if (othername_oid)
     return GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;