increase buffer sizes when building the status view

otherwise data buffer will be to small after loading a big certificate
This commit is contained in:
Klas Lindfors
2015-12-07 19:53:43 +01:00
parent 6f6490f023
commit a1d6007375
+2 -2
View File
@@ -1204,7 +1204,7 @@ static void print_cert_info(ykpiv_state *state, enum enum_slot slot, const EVP_M
FILE *output) {
int object = get_object_id(slot);
int slot_name;
unsigned char data[2048];
unsigned char data[3072];
const unsigned char *ptr = data;
unsigned long len = sizeof(data);
int cert_len;
@@ -1314,7 +1314,7 @@ static bool status(ykpiv_state *state, enum enum_hash hash,
enum enum_slot slot,
const char *output_file_name) {
const EVP_MD *md;
unsigned char chuid[2048];
unsigned char chuid[3072];
long unsigned len = sizeof(chuid);
int i;
FILE *output_file = open_file(output_file_name, OUTPUT);