aboutsummaryrefslogtreecommitdiffstats
path: root/sm/misc.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-11-19 16:03:50 +0000
committerWerner Koch <[email protected]>2007-11-19 16:03:50 +0000
commit55ba204bfa848c2e591a29fedc9f103103493a57 (patch)
treee37263e4d3a25e2aa300faf4c5240191b54ea1a7 /sm/misc.c
parentUpdated (diff)
downloadgnupg-55ba204bfa848c2e591a29fedc9f103103493a57.tar.gz
gnupg-55ba204bfa848c2e591a29fedc9f103103493a57.zip
Started to implement the audit log feature.
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
Diffstat (limited to 'sm/misc.c')
-rw-r--r--sm/misc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sm/misc.c b/sm/misc.c
index 7da206aba..38994725e 100644
--- a/sm/misc.c
+++ b/sm/misc.c
@@ -76,6 +76,13 @@ setup_pinentry_env (void)
else if ( (lc = setlocale (LC_MESSAGES, "")) )
setenv ("LC_MESSAGES", lc, 1);
#endif
+
+ if (opt.xauthority)
+ setenv ("XAUTHORITY", opt.xauthority, 1);
+
+ if (opt.pinentry_user_data)
+ setenv ("PINENTRY_USER_DATA", opt.pinentry_user_data, 1);
+
#endif /*!HAVE_W32_SYSTEM*/
}