scd: Minor changes to app-sc-hsm.
authorWerner Koch <wk@gnupg.org>
Tue, 12 Aug 2014 08:36:30 +0000 (10:36 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 14 Aug 2014 12:09:37 +0000 (14:09 +0200)
commita61b28df1f29b1e306115282ec1ce580fa54945a
tree571afaec0240848b07b42ab3ca744744186c0fbc
parentae29b52119aa419989b773b2d6abb6e287dfc81b
scd: Minor changes to app-sc-hsm.

* scd/app-sc-hsm.c: Re-indendet some parts and set some vars to NULL
after xfree for improbed robustness.
(read_ef_prkd): Replace serial operator by blocks for better
readability.
(apply_PKCS_padding): Rewrite for easier auditing.
(strip_PKCS15_padding): Ditto.  Add stricter check on SRCLEN.

Signed-off-by: Werner Koch <wk@gnupg.org>
scd/app-sc-hsm.c