forked from wolfSSL/wolfssl
crl warning fixes
This commit is contained in:
@@ -5189,7 +5189,7 @@ static int GetCRL_Signature(const byte* source, word32* idx, DecodedCRL* dcrl,
|
|||||||
|
|
||||||
|
|
||||||
/* prase crl buffer into decoded state, 0 on success */
|
/* 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;
|
int version, len;
|
||||||
word32 oid, idx = 0;
|
word32 oid, idx = 0;
|
||||||
|
@@ -472,7 +472,7 @@ struct DecodedCRL {
|
|||||||
};
|
};
|
||||||
|
|
||||||
CYASSL_LOCAL void InitDecodedCRL(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*);
|
CYASSL_LOCAL void FreeDecodedCRL(DecodedCRL*);
|
||||||
|
|
||||||
|
|
||||||
|
@@ -723,7 +723,7 @@ static INLINE int myVerify(int preverify, CYASSL_X509_STORE_CTX* store)
|
|||||||
|
|
||||||
#ifdef HAVE_CRL
|
#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);
|
printf("CRL callback url = %s\n", url);
|
||||||
}
|
}
|
||||||
|
@@ -254,7 +254,7 @@ int BufferLoadCRL(CYASSL_CRL* crl, const byte* buff, long sz, int type)
|
|||||||
}
|
}
|
||||||
|
|
||||||
InitDecodedCRL(&dcrl);
|
InitDecodedCRL(&dcrl);
|
||||||
ret = ParseCRL(&dcrl, myBuffer, sz, crl->cm);
|
ret = ParseCRL(&dcrl, myBuffer, (word32)sz, crl->cm);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
CYASSL_MSG("ParseCRL error");
|
CYASSL_MSG("ParseCRL error");
|
||||||
}
|
}
|
||||||
@@ -490,6 +490,8 @@ static int StartMonitorCRL(CYASSL_CRL* crl)
|
|||||||
|
|
||||||
static int StartMonitorCRL(CYASSL_CRL* crl)
|
static int StartMonitorCRL(CYASSL_CRL* crl)
|
||||||
{
|
{
|
||||||
|
(void)crl;
|
||||||
|
|
||||||
CYASSL_ENTER("StartMonitorCRL");
|
CYASSL_ENTER("StartMonitorCRL");
|
||||||
CYASSL_MSG("Not compiled in");
|
CYASSL_MSG("Not compiled in");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user