From 0d754893f4168876c46be3b9b785eec1ad5ef4eb Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Wed, 25 Jun 2014 15:52:01 +0200 Subject: [PATCH] let set_length take a size_t --- lib/ykpiv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ykpiv.c b/lib/ykpiv.c index 5f288a7..436fd6b 100644 --- a/lib/ykpiv.c +++ b/lib/ykpiv.c @@ -49,7 +49,7 @@ static void dump_hex(const unsigned char *buf, unsigned int len) { } } -static int set_length(unsigned char *buffer, int length) { +static int set_length(unsigned char *buffer, size_t length) { if(length < 0x80) { *buffer++ = length; return 1; @@ -477,7 +477,7 @@ ykpiv_rc ykpiv_sign_data(ykpiv_state *state, unsigned char sign_in[256]; size_t pad_len = 0; int sw; - int bytes; + size_t bytes; size_t len = 0; ykpiv_rc res;