Unit test for ykpiv_attest()

This commit is contained in:
Trevor Bentley
2017-09-26 16:05:39 +02:00
parent 5291bc4a63
commit 90209997cc
2 changed files with 18 additions and 2 deletions
+1 -1
View File
@@ -1594,7 +1594,7 @@ static bool list_readers(ykpiv_state *state) {
static bool attest(ykpiv_state *state, enum enum_slot slot,
enum enum_key_format key_format, const char *output_file_name) {
unsigned char data[YKPIV_OBJ_MAX_SIZE];
unsigned char data[2048];
unsigned long len = sizeof(data);
bool ret = false;
X509 *x509 = NULL;