aboutsummaryrefslogtreecommitdiffstats
path: root/sm/sign.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2001-12-11 12:31:04 +0000
committerWerner Koch <[email protected]>2001-12-11 12:31:04 +0000
commit6a8c47bd29d24d160b56d782513db0187b80819d (patch)
tree1a7cbc3a98010a058913b8faa3c62132c6fa09e2 /sm/sign.c
parentNew searchmode and hack to allow a hex encoded serial number (diff)
downloadgnupg-6a8c47bd29d24d160b56d782513db0187b80819d.tar.gz
gnupg-6a8c47bd29d24d160b56d782513db0187b80819d.zip
Implemented encryption in server mode.
Allow to specify a recipient on the commandline There is still a default hardwired recipient if none has been set.
Diffstat (limited to 'sm/sign.c')
-rw-r--r--sm/sign.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sm/sign.c b/sm/sign.c
index 4adffe613..6ea0ffeba 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -186,7 +186,7 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp)
rc = map_ksba_err (err);
goto leave;
}
- cert = NULL; /* cms does now own the certificate */
+ ksba_cert_release (cert); cert = NULL;
/* fixme: We might want to include a list of certificate which are
put as info into the signed data object - maybe we should add a
@@ -270,7 +270,6 @@ gpgsm_sign (CTRL ctrl, int data_fd, int detached, FILE *out_fp)
rc = map_ksba_err (err);
goto leave;
}
- log_debug ("ksba_cms_build - stop reason %d\n", stopreason);
if (stopreason == KSBA_SR_BEGIN_DATA)
{ /* hash the data and store the message digest */