diff mcabber/src/main.c @ 1238:80008fe2a4f2

Re-enable gpg-agent (revert 591d8b35c881) Some people were actually using it... :)
author Mikael Berthe <mikael@lilotux.net>
date Sat, 16 Jun 2007 12:30:43 +0200
parents 591d8b35c881
children 3a4018f18bdf
line wrap: on
line diff
--- a/mcabber/src/main.c	Sat Jun 16 12:28:27 2007 +0200
+++ b/mcabber/src/main.c	Sat Jun 16 12:30:43 2007 +0200
@@ -247,13 +247,12 @@
 #ifdef HAVE_GPGME
   const char *pk, *pp;
   char *typed_passwd = NULL;
+  char *p;
   bool pgp_invalid = FALSE;
   bool pgp_agent;
-  //char *p;
 
-  //p = getenv("GPG_AGENT_INFO");
-  //pgp_agent = (p && strchr(p, ':'));
-  pgp_agent = FALSE;
+  p = getenv("GPG_AGENT_INFO");
+  pgp_agent = (p && strchr(p, ':'));
 
   pk = settings_opt_get("pgp_private_key");
   pp = settings_opt_get("pgp_passphrase");