packages/libs/gnutls/patches/002-disable_openpgp.patch
olli ed4ecdcf2c [Packages] libs/gnutls: Update to 2.2.3 (#3421)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11081 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-05-08 19:28:32 +00:00

21 lines
609 B
Diff

Index: gnutls-2.2.3/libextra/gnutls_extra.c
===================================================================
--- gnutls-2.2.3.orig/libextra/gnutls_extra.c 2008-05-08 21:18:29.000000000 +0200
+++ gnutls-2.2.3/libextra/gnutls_extra.c 2008-05-08 21:18:29.000000000 +0200
@@ -137,6 +137,7 @@
}
#endif
+#ifdef ENABLE_OPENPGP
/* Register the openpgp functions. This is because some
* of them are defined to be NULL in the main library.
*/
@@ -152,6 +153,7 @@
gnutls_openpgp_crt_deinit,
gnutls_openpgp_keyring_deinit,
gnutls_openpgp_privkey_deinit);
+#endif
return 0;
}