]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Disable XML functionality, because it relies on libtasn1 internals.
authorSimon Josefsson <simon@josefsson.org>
Wed, 8 Mar 2006 13:46:48 +0000 (13:46 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 8 Mar 2006 13:46:48 +0000 (13:46 +0000)
lib/x509/xml.c

index 4f55eae282518bdf6197f9c67ff540517ab6372e..729a33a35e9d3544d3f04b3b1033ddee6d3b50fa 100644 (file)
 
 #include <defines.h>
 
+
+#if 1
+
+/* The function below rely on some internal libtasn1 functions.  While
+   it would be easy to export them (or copy them) we prefer not to at
+   this point.  If you need the XML functionality, simply build with
+   --with-included-libtasn1 and change the '1' above to '0'. */
+
+int
+gnutls_x509_crt_to_xml (gnutls_x509_crt_t cert, gnutls_datum_t * res,
+                       int detail)
+{
+  return GNUTLS_E_INTERNAL_ERROR;
+}
+
+#else
+
 #ifdef ENABLE_PKI
 
 #include <int.h>
@@ -735,3 +752,4 @@ _gnutls_x509_expand_extensions (ASN1_TYPE * rasn)
 }
 
 #endif
+#endif