aboutsummaryrefslogtreecommitdiffstats
path: root/g10/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/status.c')
-rw-r--r--g10/status.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/status.c b/g10/status.c
index 71a4e8341..4ed91d2d9 100644
--- a/g10/status.c
+++ b/g10/status.c
@@ -56,6 +56,11 @@ set_status_fd ( int newfd )
fd = newfd;
}
+int
+is_status_enabled()
+{
+ return fd != -1;
+}
void
write_status ( int no )
@@ -92,6 +97,7 @@ write_status_text ( int no, const char *text)
case STATUS_SHM_GET_BOOL : s = "SHM_GET_BOOL\n"; break;
case STATUS_SHM_GET_HIDDEN : s = "SHM_GET_HIDDEN\n"; break;
case STATUS_NEED_PASSPHRASE: s = "NEED_PASSPHRASE\n"; break;
+ case STATUS_VALIDSIG : s = "VALIDSIG\n"; break;
default: s = "?\n"; break;
}