Remove unused variables. Fix warning: unused variable
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4157 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
ecae106253
commit
30b7888c34
|
@ -234,7 +234,6 @@ static int piv_general_io(sc_card_t *card, int ins, int p1, int p2,
|
|||
const u8 * sendbuf, size_t sendbuflen, u8 ** recvbuf,
|
||||
size_t * recvbuflen)
|
||||
{
|
||||
piv_private_data_t * priv = PIV_DATA(card);
|
||||
int r;
|
||||
sc_apdu_t apdu;
|
||||
u8 rbufinitbuf[4096];
|
||||
|
|
|
@ -1056,7 +1056,6 @@ static int westcos_set_security_env(sc_card_t *card,
|
|||
{
|
||||
sc_apdu_t apdu;
|
||||
unsigned char mode = 0;
|
||||
size_t buflen;
|
||||
u8 buf[128];
|
||||
|
||||
if ((priv_data->env.flags) & SC_ALGORITHM_RSA_PAD_PKCS1)
|
||||
|
|
|
@ -97,7 +97,6 @@ static int westcos_pkcs15_create_pin(sc_profile_t *profile,
|
|||
{
|
||||
int r;
|
||||
sc_file_t *pinfile = NULL;
|
||||
sc_path_t path;
|
||||
|
||||
if(pin_len>9 || puk_len>9)
|
||||
return SC_ERROR_INVALID_ARGUMENTS;
|
||||
|
|
|
@ -1330,7 +1330,6 @@ static void parse_rsa_public_key(struct rsakey_info *rsa,
|
|||
static int write_object(CK_SLOT_ID slot, CK_SESSION_HANDLE session)
|
||||
{
|
||||
CK_BBOOL _true = TRUE;
|
||||
CK_BBOOL _false = FALSE;
|
||||
unsigned char contents[MAX_OBJECT_SIZE];
|
||||
int contents_len = 0;
|
||||
unsigned char certdata[MAX_OBJECT_SIZE];
|
||||
|
|
|
@ -1220,7 +1220,6 @@ static int do_delete_crypto_objects(sc_pkcs15_card_t *myp15card,
|
|||
|
||||
if (which & SC_PKCS15INIT_TYPE_PRKEY) {
|
||||
sc_pkcs15_object_t *key_objs[0x10];
|
||||
struct sc_pkcs15_prkey_info *prkey_info = NULL;
|
||||
|
||||
r = sc_pkcs15_get_objects(myp15card, SC_PKCS15_TYPE_PRKEY, key_objs, 0x10);
|
||||
if (r < 0) {
|
||||
|
@ -2768,7 +2767,6 @@ ossl_print_errors(void)
|
|||
*/
|
||||
int get_pin(sc_ui_hints_t *hints, char **out)
|
||||
{
|
||||
sc_context_t *ctx = hints->card->ctx;
|
||||
sc_pkcs15_pin_info_t *pin_info;
|
||||
const char *label;
|
||||
int flags = hints->flags;
|
||||
|
|
Loading…
Reference in New Issue