diff --git a/src/libopensc/pkcs15-data.c b/src/libopensc/pkcs15-data.c index d5d76215..ba51e667 100644 --- a/src/libopensc/pkcs15-data.c +++ b/src/libopensc/pkcs15-data.c @@ -36,11 +36,6 @@ #include "asn1.h" #include "pkcs15.h" -static const struct sc_asn1_entry c_asn1_data_object[] = { - { "dataObject", SC_ASN1_OCTET_STRING, SC_ASN1_TAG_OCTET_STRING, 0, NULL, NULL }, - { NULL, 0, 0, 0, NULL, NULL } -}; - int sc_pkcs15_read_data_object(struct sc_pkcs15_card *p15card, diff --git a/src/pkcs15init/pkcs15-rutoken.c b/src/pkcs15init/pkcs15-rutoken.c index bea7f32f..1638ef61 100644 --- a/src/pkcs15init/pkcs15-rutoken.c +++ b/src/pkcs15init/pkcs15-rutoken.c @@ -33,17 +33,6 @@ #include "pkcs15-init.h" #include "profile.h" -static const sc_SecAttrV2_t pr_sec_attr = { - 0x43, 1, 1, 0, 0, 0, 0, 1, - 2, 0, 0, 0, - 2, 0, 0, 0, - 0, 0, 0, 0, - 0, 0, 0, 0, - 0, 0, 0, 0, - 0, 0, 0, 0, - 2, 0, 0, 0, - 0, 0, 0, 0 /* reserve */ -}; static const sc_SecAttrV2_t wn_sec_attr = { 0x43, 1, 1, 0, 0, 0, 0, -1, 2, 0, 0, 0, diff --git a/src/smm/sm-cwa14890.c b/src/smm/sm-cwa14890.c index 2ba4b635..1d0dcb89 100644 --- a/src/smm/sm-cwa14890.c +++ b/src/smm/sm-cwa14890.c @@ -45,17 +45,6 @@ #include "libopensc/iasecc-sdo.h" #include "sm-module.h" -static const struct sc_asn1_entry c_asn1_card_response[2] = { - { "cardResponse", SC_ASN1_STRUCT, SC_ASN1_CTX | 1 | SC_ASN1_CONS, 0, NULL, NULL }, - { NULL, 0, 0, 0, NULL, NULL } -}; -static const struct sc_asn1_entry c_asn1_iasecc_response[4] = { - { "number", SC_ASN1_INTEGER, SC_ASN1_TAG_INTEGER, 0, NULL, NULL }, - { "status", SC_ASN1_INTEGER, SC_ASN1_TAG_INTEGER, 0, NULL, NULL }, - { "data", SC_ASN1_OCTET_STRING, SC_ASN1_CTX | 2 | SC_ASN1_CONS, SC_ASN1_OPTIONAL, NULL, NULL }, - { NULL, 0, 0, 0, NULL, NULL } -}; - int sm_cwa_get_mac(struct sc_context *ctx, unsigned char *key, DES_cblock *icv, unsigned char *in, int in_len, DES_cblock *out, int force_padding) diff --git a/src/smm/sm-global-platform.c b/src/smm/sm-global-platform.c index f71a774f..5f8ec449 100644 --- a/src/smm/sm-global-platform.c +++ b/src/smm/sm-global-platform.c @@ -45,17 +45,6 @@ #include "sm-module.h" -static const struct sc_asn1_entry c_asn1_authentic_card_response[4] = { - { "number", SC_ASN1_INTEGER, SC_ASN1_TAG_INTEGER, 0, NULL, NULL }, - { "status", SC_ASN1_INTEGER, SC_ASN1_TAG_INTEGER, 0, NULL, NULL }, - { "data", SC_ASN1_OCTET_STRING, SC_ASN1_CTX | 2 | SC_ASN1_CONS, SC_ASN1_OPTIONAL, NULL, NULL }, - { NULL, 0, 0, 0, NULL, NULL } -}; -static const struct sc_asn1_entry c_asn1_card_response[2] = { - { "cardResponse", SC_ASN1_STRUCT, SC_ASN1_CTX | 1 | SC_ASN1_CONS, 0, NULL, NULL }, - { NULL, 0, 0, 0, NULL, NULL } -}; - int sm_gp_decode_card_answer(struct sc_context *ctx, struct sc_remote_data *rdata, unsigned char *out, size_t out_len) { diff --git a/src/tools/pkcs15-tool.c b/src/tools/pkcs15-tool.c index 2e9c8421..0811c78b 100644 --- a/src/tools/pkcs15-tool.c +++ b/src/tools/pkcs15-tool.c @@ -2201,16 +2201,3 @@ end: sc_release_context(ctx); return err; } - -/* - * Helper function for PEM encoding public key - */ -static const struct sc_asn1_entry c_asn1_pem_key_items[] = { - { "algorithm", SC_ASN1_ALGORITHM_ID, SC_ASN1_CONS| SC_ASN1_TAG_SEQUENCE, 0, NULL, NULL}, - { "key", SC_ASN1_BIT_STRING_NI, SC_ASN1_TAG_BIT_STRING, 0, NULL, NULL }, - { NULL, 0, 0, 0, NULL, NULL } -}; -static const struct sc_asn1_entry c_asn1_pem_key[] = { - { "publicKey", SC_ASN1_STRUCT, SC_ASN1_CONS | SC_ASN1_TAG_SEQUENCE, 0, NULL, NULL}, - { NULL, 0, 0, 0, NULL, NULL } -};