scd: Minor and editorial changes to app-sc-hsm.c
authorWerner Koch <wk@gnupg.org>
Thu, 24 Jul 2014 14:16:53 +0000 (16:16 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 25 Jul 2014 09:04:53 +0000 (11:04 +0200)
commit2e936915cf2f830e60d974d607b08822645f5753
tree0f9491d171c2ba19f761e9a31b16bfd9ccdbe83e
parente49c851ff54d5ecf856411bf6cdee721695ea172
scd: Minor and editorial changes to app-sc-hsm.c

* scd/app-sc-hsm.c (select_and_read_binary): Use SW_ macro.
(parse_certid): Remove useless test.
(send_certinfo, send_keypairinfo): Shrink malloc to the needed size.
(do_getattr): Ditto.
(verify_pin): Use SW_ macro.
(do_decipher): Replace OFS variable and extend comment.
--

Code parts which have not been audited are marked with a warning
pragma.
scd/app-sc-hsm.c