let set_length take a size_t

This commit is contained in:
Klas Lindfors
2014-06-25 15:52:01 +02:00
parent ea88f94fd4
commit 0d754893f4
+2 -2
View File
@@ -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;