From ae905d70c4d11840aecefcdab66146883d337e82 Mon Sep 17 00:00:00 2001 From: toddouska Date: Thu, 1 Nov 2012 14:14:40 -0700 Subject: [PATCH] crl warning fixes --- ctaocrypt/src/asn.c | 2 +- cyassl/ctaocrypt/asn.h | 2 +- cyassl/test.h | 2 +- src/crl.c | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ctaocrypt/src/asn.c b/ctaocrypt/src/asn.c index 4267bbfd6..3055617b3 100644 --- a/ctaocrypt/src/asn.c +++ b/ctaocrypt/src/asn.c @@ -5189,7 +5189,7 @@ static int GetCRL_Signature(const byte* source, word32* idx, DecodedCRL* dcrl, /* prase crl buffer into decoded state, 0 on success */ -int ParseCRL(DecodedCRL* dcrl, const byte* buff, long sz, void* cm) +int ParseCRL(DecodedCRL* dcrl, const byte* buff, word32 sz, void* cm) { int version, len; word32 oid, idx = 0; diff --git a/cyassl/ctaocrypt/asn.h b/cyassl/ctaocrypt/asn.h index 0b9e2f67a..cd136501f 100644 --- a/cyassl/ctaocrypt/asn.h +++ b/cyassl/ctaocrypt/asn.h @@ -472,7 +472,7 @@ struct DecodedCRL { }; CYASSL_LOCAL void InitDecodedCRL(DecodedCRL*); -CYASSL_LOCAL int ParseCRL(DecodedCRL*, const byte* buff, long sz, void* cm); +CYASSL_LOCAL int ParseCRL(DecodedCRL*, const byte* buff, word32 sz, void* cm); CYASSL_LOCAL void FreeDecodedCRL(DecodedCRL*); diff --git a/cyassl/test.h b/cyassl/test.h index 8d9d341b8..b9d4a546d 100644 --- a/cyassl/test.h +++ b/cyassl/test.h @@ -723,7 +723,7 @@ static INLINE int myVerify(int preverify, CYASSL_X509_STORE_CTX* store) #ifdef HAVE_CRL -static void INLINE CRL_CallBack(const char* url) +static INLINE void CRL_CallBack(const char* url) { printf("CRL callback url = %s\n", url); } diff --git a/src/crl.c b/src/crl.c index 681d0ee9a..dbcffa1fe 100644 --- a/src/crl.c +++ b/src/crl.c @@ -254,7 +254,7 @@ int BufferLoadCRL(CYASSL_CRL* crl, const byte* buff, long sz, int type) } InitDecodedCRL(&dcrl); - ret = ParseCRL(&dcrl, myBuffer, sz, crl->cm); + ret = ParseCRL(&dcrl, myBuffer, (word32)sz, crl->cm); if (ret != 0) { CYASSL_MSG("ParseCRL error"); } @@ -490,6 +490,8 @@ static int StartMonitorCRL(CYASSL_CRL* crl) static int StartMonitorCRL(CYASSL_CRL* crl) { + (void)crl; + CYASSL_ENTER("StartMonitorCRL"); CYASSL_MSG("Not compiled in");