mirror of https://github.com/wolfSSL/wolfssl.git
fix x64 windows warnings, make sure word is 64bit
parent
dc83cc6a0e
commit
0e2c236e77
|
@ -82,7 +82,7 @@
|
||||||
|
|
||||||
/* These platforms have 64-bit CPU registers. */
|
/* These platforms have 64-bit CPU registers. */
|
||||||
#if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \
|
#if (defined(__alpha__) || defined(__ia64__) || defined(_ARCH_PPC64) || \
|
||||||
defined(__mips64) || defined(__x86_64__))
|
defined(__mips64) || defined(__x86_64__) || defined(_M_X64))
|
||||||
typedef word64 word;
|
typedef word64 word;
|
||||||
#else
|
#else
|
||||||
typedef word32 word;
|
typedef word32 word;
|
||||||
|
|
|
@ -167,7 +167,7 @@ static int decode_url(const char* url, int urlSz,
|
||||||
int CyaSSL_OCSP_set_override_url(CYASSL_OCSP* ocsp, const char* url)
|
int CyaSSL_OCSP_set_override_url(CYASSL_OCSP* ocsp, const char* url)
|
||||||
{
|
{
|
||||||
if (ocsp != NULL) {
|
if (ocsp != NULL) {
|
||||||
int urlSz = strlen(url);
|
int urlSz = (int)XSTRLEN(url);
|
||||||
decode_url(url, urlSz,
|
decode_url(url, urlSz,
|
||||||
ocsp->overrideName, ocsp->overridePath, &ocsp->overridePort);
|
ocsp->overrideName, ocsp->overridePath, &ocsp->overridePort);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -6649,7 +6649,7 @@ static int initGlobalRNG = 0;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Base16_Decode((byte*)str, (int)strlen(str), decoded, &decSz) < 0) {
|
if (Base16_Decode((byte*)str, (int)XSTRLEN(str), decoded, &decSz) < 0) {
|
||||||
CYASSL_MSG("Bad Base16_Decode error");
|
CYASSL_MSG("Bad Base16_Decode error");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue