diff options
Diffstat (limited to 'libmincrypt/test/rsa_test.c')
-rw-r--r-- | libmincrypt/test/rsa_test.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libmincrypt/test/rsa_test.c b/libmincrypt/test/rsa_test.c index 17862dc..055138f 100644 --- a/libmincrypt/test/rsa_test.c +++ b/libmincrypt/test/rsa_test.c @@ -1,5 +1,4 @@ -/* rsa_test.c -** +/* ** Copyright 2013, The Android Open Source Project ** ** Redistribution and use in source and binary forms, with or without @@ -25,14 +24,19 @@ ** ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <stdio.h> #include <ctype.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/cdefs.h> #include "mincrypt/rsa.h" #include "mincrypt/sha.h" +#ifndef __unused +#define __unused __attribute__((unused)) +#endif + // RSA test data taken from: // // ftp://ftp.rsa.com/pub/rsalabs/tmp/pkcs1v15sign-vectors.txt @@ -791,7 +795,7 @@ unsigned char* parsehex(char* str, int* len) { } -int main(int arg, char** argv) { +int main(int arg __unused, char** argv __unused) { unsigned char hash[SHA_DIGEST_SIZE]; |