GNUPG-1-9-BRANCH gnupg/agent (ChangeLog query.c)
cvs user mo
cvs at cvs.gnupg.org
Sun Dec 5 16:28:59 CET 2004
Date: Sunday, December 5, 2004 @ 16:36:49
Author: mo
Path: /cvs/gnupg/gnupg/agent
Tag: GNUPG-1-9-BRANCH
Modified: ChangeLog query.c
2004-12-05 Moritz Schulte <moritz at g10code.com>
* query.c (start_pinentry): Allow CTRL be NULL.
-----------+
ChangeLog | 4 ++++
query.c | 10 +++++-----
2 files changed, 9 insertions(+), 5 deletions(-)
Index: gnupg/agent/ChangeLog
diff -u gnupg/agent/ChangeLog:1.59.2.43 gnupg/agent/ChangeLog:1.59.2.44
--- gnupg/agent/ChangeLog:1.59.2.43 Fri Oct 22 11:39:47 2004
+++ gnupg/agent/ChangeLog Sun Dec 5 16:36:49 2004
@@ -1,3 +1,7 @@
+2004-12-05 Moritz Schulte <moritz at g10code.com>
+
+ * query.c (start_pinentry): Allow CTRL be NULL.
+
2004-10-22 Werner Koch <wk at g10code.com>
* gpg-agent.c (parse_rereadable_options): Return "not handled"
Index: gnupg/agent/query.c
diff -u gnupg/agent/query.c:1.23.2.4 gnupg/agent/query.c:1.23.2.5
--- gnupg/agent/query.c:1.23.2.4 Fri Aug 20 15:03:32 2004
+++ gnupg/agent/query.c Sun Dec 5 16:36:49 2004
@@ -152,7 +152,7 @@
pgmname++;
argv[0] = pgmname;
- if (ctrl->display && !opt.keep_display)
+ if (ctrl && ctrl->display && !opt.keep_display)
{
argv[1] = "--display";
argv[2] = ctrl->display;
@@ -189,7 +189,7 @@
NULL, NULL, NULL, NULL, NULL, NULL);
if (rc)
return unlock_pinentry (map_assuan_err (rc));
- if (ctrl->ttyname)
+ if (ctrl && ctrl->ttyname)
{
char *optstr;
if (asprintf (&optstr, "OPTION ttyname=%s", ctrl->ttyname) < 0 )
@@ -200,7 +200,7 @@
if (rc)
return unlock_pinentry (map_assuan_err (rc));
}
- if (ctrl->ttytype)
+ if (ctrl && ctrl->ttytype)
{
char *optstr;
if (asprintf (&optstr, "OPTION ttytype=%s", ctrl->ttytype) < 0 )
@@ -210,7 +210,7 @@
if (rc)
return unlock_pinentry (map_assuan_err (rc));
}
- if (ctrl->lc_ctype)
+ if (ctrl && ctrl->lc_ctype)
{
char *optstr;
if (asprintf (&optstr, "OPTION lc-ctype=%s", ctrl->lc_ctype) < 0 )
@@ -220,7 +220,7 @@
if (rc)
return unlock_pinentry (map_assuan_err (rc));
}
- if (ctrl->lc_messages)
+ if (ctrl && ctrl->lc_messages)
{
char *optstr;
if (asprintf (&optstr, "OPTION lc-messages=%s", ctrl->lc_messages) < 0 )
More information about the Gnupg-commits
mailing list