removed unused variables
This commit is contained in:
parent
fa9ffb7b90
commit
8e7049c2fa
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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 }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user