From dc83cc6a0e5c9572d187f67c97eebc1b47a24b89 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 1 Nov 2012 11:29:11 -0600 Subject: [PATCH] fix VS2008 asn.c warning, CTaoCrypt RSA test --- ctaocrypt/src/asn.c | 1 - ctaocrypt/test/test.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index c282225a8..4267bbfd6 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -2193,7 +2193,6 @@ static int ConfirmSignature(const byte* buf, word32 bufSz, CYASSL_MSG("Verify Key type unknown"); return 0; } - return ret; } diff --git a/ctaocrypt/test/test.c b/ctaocrypt/test/test.c index b4711c098..347164d53 100644 --- a/ctaocrypt/test/test.c +++ b/ctaocrypt/test/test.c @@ -1419,6 +1419,7 @@ int rsa_test(void) word32 inLen = (word32)strlen((char*)in); byte out[256]; byte plain[256]; + FILE* file, * file2; #ifdef CYASSL_TEST_CERT DecodedCert cert; #endif @@ -1427,7 +1428,7 @@ int rsa_test(void) if (tmp == NULL) return -40; - FILE* file = fopen(clientKey, "rb"), * file2; + file = fopen(clientKey, "rb"); if (!file) err_sys("can't open ./certs/client-key.der, "