drop unused variable

found with clang scan-build
This commit is contained in:
Klas Lindfors
2015-07-09 11:03:11 +02:00
parent fb0c437533
commit 8ece5ed26e
-3
View File
@@ -105,7 +105,6 @@ static bool generate_key(ykpiv_state *state, const char *slot,
unsigned char data[1024]; unsigned char data[1024];
unsigned char templ[] = {0, YKPIV_INS_GENERATE_ASYMMERTRIC, 0, 0}; unsigned char templ[] = {0, YKPIV_INS_GENERATE_ASYMMERTRIC, 0, 0};
unsigned long recv_len = sizeof(data); unsigned long recv_len = sizeof(data);
unsigned long received = 0;
int sw; int sw;
int key = 0; int key = 0;
FILE *output_file = NULL; FILE *output_file = NULL;
@@ -152,8 +151,6 @@ static bool generate_key(ykpiv_state *state, const char *slot,
fprintf(stderr, "Failed to generate new key.\n"); fprintf(stderr, "Failed to generate new key.\n");
goto generate_out; goto generate_out;
} }
/* to drop the 90 00 and the 7f 49 at the start */
received += recv_len - 4;
if(key_format == key_format_arg_PEM) { if(key_format == key_format_arg_PEM) {
public_key = EVP_PKEY_new(); public_key = EVP_PKEY_new();