pkcs15: Remove unused code

This commit is contained in:
Jakub Jelen 2019-10-16 17:31:53 +02:00 committed by Frank Morgner
parent 5e9e5b232c
commit ff893d2224
1 changed files with 1 additions and 4 deletions

View File

@ -2257,7 +2257,7 @@ sc_pkcs15_parse_unusedspace(const unsigned char *buf, size_t buflen, struct sc_p
const unsigned char *p = buf;
size_t left = buflen;
int r;
struct sc_path path, dummy_path;
struct sc_path path;
struct sc_pkcs15_id auth_id;
struct sc_asn1_entry asn1_unusedspace[] = {
{ "UnusedSpace", SC_ASN1_STRUCT, SC_ASN1_TAG_SEQUENCE | SC_ASN1_CONS, 0, NULL, NULL },
@ -2272,9 +2272,6 @@ sc_pkcs15_parse_unusedspace(const unsigned char *buf, size_t buflen, struct sc_p
/* Clean the list if already present */
sc_pkcs15_free_unusedspace(p15card);
sc_format_path("3F00", &dummy_path);
dummy_path.index = dummy_path.count = 0;
sc_format_asn1_entry(asn1_unusedspace, asn1_unusedspace_values, NULL, 1);
sc_format_asn1_entry(asn1_unusedspace_values, &path, NULL, 1);
sc_format_asn1_entry(asn1_unusedspace_values+1, &auth_id, NULL, 0);