-
Notifications
You must be signed in to change notification settings - Fork 839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More fixes for building x86 in Visual Studio for non-windows OS #8098
Changes from 3 commits
84b5d66
99daac3
671f931
aad0f6e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1634,7 +1634,8 @@ int wolfSSL_OCSP_REQ_CTX_nbio(WOLFSSL_OCSP_REQ_CTX *ctx) | |
case ORIOS_WRITE: | ||
{ | ||
const unsigned char *req; | ||
int reqLen = wolfSSL_BIO_get_mem_data(ctx->reqResp, &req); | ||
int reqLen = wolfSSL_BIO_get_mem_data(ctx->reqResp, | ||
(unsigned char*)&req); | ||
if (reqLen <= 0) { | ||
WOLFSSL_MSG("wolfSSL_BIO_get_mem_data error"); | ||
return WOLFSSL_FAILURE; | ||
|
@@ -1710,7 +1711,8 @@ int wolfSSL_OCSP_sendreq_nbio(OcspResponse **presp, WOLFSSL_OCSP_REQ_CTX *ctx) | |
if (ret != WOLFSSL_SUCCESS) | ||
return ret; | ||
|
||
len = wolfSSL_BIO_get_mem_data(ctx->reqResp, &resp); | ||
len = wolfSSL_BIO_get_mem_data(ctx->reqResp, | ||
(unsigned char*)&resp); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same for |
||
if (len <= 0) | ||
return WOLFSSL_FAILURE; | ||
return wolfSSL_d2i_OCSP_RESPONSE(presp, &resp, len) != NULL | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7174,9 +7174,9 @@ static int TLSX_CA_Names_Parse(WOLFSSL *ssl, const byte* input, | |
|
||
#else | ||
|
||
#define CAN_GET_SIZE(...) 0 | ||
#define CAN_WRITE(...) 0 | ||
#define CAN_PARSE(...) 0 | ||
#define CAN_GET_SIZE() 0 | ||
#define CAN_WRITE() 0 | ||
#define CAN_PARSE() 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These should be defined to take one dummy arg, as explained in my comment below. |
||
|
||
#endif | ||
|
||
|
@@ -14764,7 +14764,7 @@ static word16 TLSX_GetMinSize_Client(word16* type) | |
} | ||
#define TLSX_GET_MIN_SIZE_CLIENT TLSX_GetMinSize_Client | ||
#else | ||
#define TLSX_GET_MIN_SIZE_CLIENT(...) 0 | ||
#define TLSX_GET_MIN_SIZE_CLIENT() 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this should also take one dummy arg. |
||
#endif | ||
|
||
|
||
|
@@ -14833,7 +14833,7 @@ static word16 TLSX_GetMinSize_Server(const word16 *type) | |
} | ||
#define TLSX_GET_MIN_SIZE_SERVER TLSX_GetMinSize_Server | ||
#else | ||
#define TLSX_GET_MIN_SIZE_SERVER(...) 0 | ||
#define TLSX_GET_MIN_SIZE_SERVER() 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this. |
||
#endif | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,7 +178,7 @@ WOLFSSL_API void wolfSSL_SetLoggingPrefix(const char* prefix); | |
WOLFSSL_API void WOLFSSL_MSG_EX(const char* fmt, ...); | ||
#define HAVE_WOLFSSL_MSG_EX | ||
#else | ||
#define WOLFSSL_MSG_EX(...) WC_DO_NOTHING | ||
#define WOLFSSL_MSG_EX() WC_DO_NOTHING | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suspect this is going to cause problems, given that can we gate the |
||
#endif | ||
WOLFSSL_API void WOLFSSL_MSG(const char* msg); | ||
#ifdef WOLFSSL_DEBUG_CODEPOINTS | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
req
should be cast to(void *)
here.