summaryrefslogtreecommitdiffstats
path: root/sm/certlist.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2003-11-12 16:17:44 +0100
committerWerner Koch <wk@gnupg.org>2003-11-12 16:17:44 +0100
commitdba40e5e45e80896dc8864c2ae97f026069e2906 (patch)
tree724a2e0f0f73ef66cf6284adb7e2463785874ffe /sm/certlist.c
parent2003-11-10 Moritz Schulte <mo@g10code.com> (diff)
downloadgnupg2-dba40e5e45e80896dc8864c2ae97f026069e2906.tar.xz
gnupg2-dba40e5e45e80896dc8864c2ae97f026069e2906.zip
Mainly changes to adjust for the changed KSBA API.
Diffstat (limited to 'sm/certlist.c')
-rw-r--r--sm/certlist.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sm/certlist.c b/sm/certlist.c
index eedc99025..0dfe50e04 100644
--- a/sm/certlist.c
+++ b/sm/certlist.c
@@ -45,7 +45,7 @@ cert_usage_p (KsbaCert cert, int mode)
unsigned int use;
err = ksba_cert_get_key_usage (cert, &use);
- if (err == KSBA_No_Data)
+ if (gpg_err_code (err) == GPG_ERR_NO_DATA)
{
if (opt.verbose && mode < 2)
log_info (mode?
@@ -56,8 +56,8 @@ cert_usage_p (KsbaCert cert, int mode)
if (err)
{
log_error (_("error getting key usage information: %s\n"),
- ksba_strerror (err));
- return map_ksba_err (err);
+ gpg_strerror (err));
+ return err;
}
if (mode == 4)