From 55ba204bfa848c2e591a29fedc9f103103493a57 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 19 Nov 2007 16:03:50 +0000 Subject: 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. --- sm/misc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sm/misc.c') 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*/ } -- cgit v1.2.3