summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-06-24 16:03:09 +0200
committerWerner Koch <wk@gnupg.org>2009-06-24 16:03:09 +0200
commit2e0ce7d97f0de998cdf8e95e17ce169b7cae91cd (patch)
treec4042057b382f755d3bc1799e9c78d3355436fa2 /sm
parentPost release updates (diff)
downloadgnupg2-2e0ce7d97f0de998cdf8e95e17ce169b7cae91cd.tar.xz
gnupg2-2e0ce7d97f0de998cdf8e95e17ce169b7cae91cd.zip
Fixed a bunch of little bugs as reported by Fabian Keil.
Still one problem left; marked with a gcc #warning.
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog7
-rw-r--r--sm/call-dirmngr.c2
-rw-r--r--sm/certreqgen.c2
-rw-r--r--sm/sign.c2
4 files changed, 10 insertions, 3 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index c59ef06ea..93a9af122 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,10 @@
+2009-06-24 Werner Koch <wk@g10code.com>
+
+ * call-dirmngr.c (pattern_from_strlist): Remove dead assignment of N.
+ * sign.c (gpgsm_sign): Remove dead assignment.
+ * certreqgen.c (create_request): Assign GPG_ERR_BUG to RC.
+ Reported by Fabian Keil.
+
2009-05-27 Werner Koch <wk@g10code.com>
* encrypt.c (encrypt_dek): Make use of make_canon_sexp.
diff --git a/sm/call-dirmngr.c b/sm/call-dirmngr.c
index 914fdd03e..33aebdf13 100644
--- a/sm/call-dirmngr.c
+++ b/sm/call-dirmngr.c
@@ -747,7 +747,7 @@ pattern_from_strlist (strlist_t names)
if (!pattern)
return NULL;
- for (n=0, sl=names; sl; sl = sl->next)
+ for (sl=names; sl; sl = sl->next)
{
for (s=sl->d; *s; s++)
{
diff --git a/sm/certreqgen.c b/sm/certreqgen.c
index ca791aab8..59e667981 100644
--- a/sm/certreqgen.c
+++ b/sm/certreqgen.c
@@ -769,7 +769,7 @@ create_request (ctrl_t ctrl,
if (!n)
{
log_error ("libksba did not return a proper S-Exp\n");
- err = gpg_error (GPG_ERR_BUG);
+ rc = gpg_error (GPG_ERR_BUG);
goto leave;
}
rc = gcry_sexp_sscan (&s_pkey, NULL, (const char*)public, n);
diff --git a/sm/sign.c b/sm/sign.c
index 446cd3792..0569052ed 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -403,7 +403,7 @@ gpgsm_sign (ctrl_t ctrl, certlist_t signerlist,
log_info ("user requested hash algorithm %d\n", opt.forced_digest_algo);
for (i=0, cl=signerlist; cl; cl = cl->next, i++)
{
- const char *oid = ksba_cert_get_digest_algo (cl->cert);
+ const char *oid;
if (opt.forced_digest_algo)
{