aboutsummaryrefslogtreecommitdiffstats
path: root/scd/card.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-06-18 19:56:13 +0000
committerWerner Koch <[email protected]>2003-06-18 19:56:13 +0000
commited0d33f1d0ed6ff25a1febe551896b4331bcf8be (patch)
treed5c58ce41044d9e9903c3d7318ccb4e8f970a9c2 /scd/card.c
parent* parse-packet.c (parse): Disallow old style partial length for (diff)
downloadgnupg-ed0d33f1d0ed6ff25a1febe551896b4331bcf8be.tar.gz
gnupg-ed0d33f1d0ed6ff25a1febe551896b4331bcf8be.zip
Finished the bulk of changes for gnupg 1.9. This included switching
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
Diffstat (limited to 'scd/card.c')
-rw-r--r--scd/card.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/scd/card.c b/scd/card.c
index c3c563cb0..574867a58 100644
--- a/scd/card.c
+++ b/scd/card.c
@@ -52,7 +52,7 @@ map_sc_err (int rc)
#endif
default: e = GPG_ERR_CARD; break;
}
- return gpg_make_error (GPG_ERR_SOURCE_UNKNOWN, e);
+ return gpg_err_make (GPG_ERR_SOURCE_UNKNOWN, e);
}
/* Get the keygrip from CERT, return 0 on success */
@@ -443,7 +443,7 @@ card_enum_keypairs (CARD card, int idx,
rc = card->fnc.enum_keypairs (card, idx, keygrip, keyid);
if (opt.verbose)
log_info ("card operation enum_keypairs result: %s\n",
- gnupg_strerror (rc));
+ gpg_strerror (rc));
return rc;
}
@@ -475,7 +475,7 @@ card_enum_certs (CARD card, int idx, char **certid, int *certtype)
rc = card->fnc.enum_certs (card, idx, certid, certtype);
if (opt.verbose)
log_info ("card operation enum_certs result: %s\n",
- gnupg_strerror (rc));
+ gpg_strerror (rc));
return rc;
}
@@ -499,7 +499,7 @@ card_read_cert (CARD card, const char *certidstr,
return gpg_error (GPG_ERR_UNSUPPORTED_OPERATION);
rc = card->fnc.read_cert (card, certidstr, cert, ncert);
if (opt.verbose)
- log_info ("card operation read_cert result: %s\n", gnupg_strerror (rc));
+ log_info ("card operation read_cert result: %s\n", gpg_strerror (rc));
return rc;
}
@@ -527,7 +527,7 @@ card_sign (CARD card, const char *keyidstr, int hashalgo,
indata, indatalen,
outdata, outdatalen);
if (opt.verbose)
- log_info ("card operation sign result: %s\n", gnupg_strerror (rc));
+ log_info ("card operation sign result: %s\n", gpg_strerror (rc));
return rc;
}
@@ -555,6 +555,6 @@ card_decipher (CARD card, const char *keyidstr,
indata, indatalen,
outdata, outdatalen);
if (opt.verbose)
- log_info ("card operation decipher result: %s\n", gnupg_strerror (rc));
+ log_info ("card operation decipher result: %s\n", gpg_strerror (rc));
return rc;
}