[gmime] Don't init crypto unless crypt was enabled



commit 5d357ec264e243fa5c3e0fb92c447d715a6c1452
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Thu Dec 15 21:58:16 2011 -0500

    Don't init crypto unless crypt was enabled
    
    2011-12-15  Jeffrey Stedfast  <fejj gnome org>
    
    	* gmime/gmime.c (g_mime_init): Don't initialize the crypto types
    	unless crypto was enabled in the build.

 ChangeLog     |    5 +++++
 gmime/gmime.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 00c2aa7..a837f8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-12-15  Jeffrey Stedfast  <fejj gnome org>
+
+	* gmime/gmime.c (g_mime_init): Don't initialize the crypto types
+	unless crypto was enabled in the build.
+
 2011-11-06  Jeffrey Stedfast  <fejj gnome org>
 
 	* README: Bumped version
diff --git a/gmime/gmime.c b/gmime/gmime.c
index 1c27cef..b91c0e9 100644
--- a/gmime/gmime.c
+++ b/gmime/gmime.c
@@ -120,6 +120,7 @@ g_mime_init (guint32 flags)
 	gmime_error_quark = g_quark_from_static_string ("gmime");
 	
 	/* register our GObject types with the GType system */
+#ifdef ENABLE_CRYPTOGRAPHY
 	g_mime_crypto_context_get_type ();
 	g_mime_decrypt_result_get_type ();
 	g_mime_certificate_list_get_type ();
@@ -128,6 +129,7 @@ g_mime_init (guint32 flags)
 	g_mime_signature_get_type ();
 	g_mime_gpg_context_get_type ();
 	g_mime_pkcs7_context_get_type ();
+#endif
 	
 	g_mime_filter_get_type ();
 	g_mime_filter_basic_get_type ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]