aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-04-27 19:47:53 +0000
committerWerner Koch <[email protected]>2005-04-27 19:47:53 +0000
commiteb3f014b5d57373b9eb7b3430c7afa115e2f871e (patch)
tree70ee2c81251953cfd24772a9023a4724315e8994 /scd/app.c
parent(symcryptrun): Added. (diff)
downloadgnupg-eb3f014b5d57373b9eb7b3430c7afa115e2f871e.tar.gz
gnupg-eb3f014b5d57373b9eb7b3430c7afa115e2f871e.zip
* app-p15.c (micardo_mse): New.
(do_sign): Call it. * iso7816.c (iso7816_manage_security_env): Allow passing DATA as NULL to indicate an empty Lc. * tlv.c (find_tlv): Check that a found object fits into the buffer. (find_tlv_unchecked): New as replacement for the old non-checking variant. * app.c (select_application): Keep on using the non-checking variant. * app-openpgp.c (get_one_do, dump_all_do): Ditto.
Diffstat (limited to '')
-rw-r--r--scd/app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app.c b/scd/app.c
index b6d46326b..8e95ef7ef 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -83,7 +83,7 @@ select_application (ctrl_t ctrl, int slot, const char *name, app_t *r_app)
size_t n;
const unsigned char *p;
- p = find_tlv (result, resultlen, 0x5A, &n);
+ p = find_tlv_unchecked (result, resultlen, 0x5A, &n);
if (p)
resultlen -= (p-result);
if (p && n > resultlen && n == 0x0d && resultlen+1 == n)