summaryrefslogtreecommitdiffstats
path: root/sm/sign.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2001-11-27 19:38:59 +0100
committerWerner Koch <wk@gnupg.org>2001-11-27 19:38:59 +0100
commit95e6da1b07e27ed373ab744594442be685f77020 (patch)
tree027d0a05b5a49fcdc61c49e35257f6508c50d14b /sm/sign.c
parent* base64.c: New. Changed all other functions to use this instead (diff)
downloadgnupg2-95e6da1b07e27ed373ab744594442be685f77020.tar.xz
gnupg2-95e6da1b07e27ed373ab744594442be685f77020.zip
--armor does now produce PEM format.
Diffstat (limited to 'sm/sign.c')
-rw-r--r--sm/sign.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sm/sign.c b/sm/sign.c
index 42f409a7d..3101892f7 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -328,6 +328,12 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp)
}
while (stopreason != KSBA_SR_READY);
+ rc = gpgsm_finish_writer (b64writer);
+ if (rc)
+ {
+ log_error ("write failed: %s\n", gnupg_strerror (rc));
+ goto leave;
+ }
log_info ("signature created\n");
leave: