forked from wolfSSL/wolfssl
minor fix
This commit is contained in:
@@ -45,13 +45,13 @@
|
|||||||
/*Enable debug*/
|
/*Enable debug*/
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#define DBG_PRINTF(x, ...) printf("[HTTPSClient : DBG]"x"\r\n", ##__VA_ARGS__);
|
#define DBG_PRINTF(x, ...) printf("[HTTPSClient : DBG]"x"\r\n", ##__VA_ARGS__);
|
||||||
|
#define ERR_PRINTF(x, ...) printf("[HTTPSClient:ERROR]"x"\r\n", ##__VA_ARGS__);
|
||||||
#else
|
#else
|
||||||
/*Disable debug*/
|
/*Disable debug*/
|
||||||
#define DBG_PRINTF(x, ...)
|
#define DBG_PRINTF(x, ...)
|
||||||
|
#define ERR_PRINTF(x, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR_PRINTF(x, ...) printf("[HTTPSClient:ERROR]"x"\r\n", ##__VA_ARGS__);
|
|
||||||
|
|
||||||
static int LwIP_cb_mutex = 0 ;
|
static int LwIP_cb_mutex = 0 ;
|
||||||
|
|
||||||
static unsigned long localPort = 0 ;
|
static unsigned long localPort = 0 ;
|
||||||
@@ -141,12 +141,6 @@ int CyaSSL_HTTPS_Client_NB(void *nb)
|
|||||||
switch(https_nb->stat) {
|
switch(https_nb->stat) {
|
||||||
case BEGIN:
|
case BEGIN:
|
||||||
printf("======= LwIP: HTTPS Client Test(%x): %d =========\n", nb, count ++) ;
|
printf("======= LwIP: HTTPS Client Test(%x): %d =========\n", nb, count ++) ;
|
||||||
{
|
|
||||||
void * p ;
|
|
||||||
p = (void *)malloc(1) ;
|
|
||||||
printf("Watermark=%x\n", p) ;
|
|
||||||
free(p) ;
|
|
||||||
}
|
|
||||||
/*** Assuming LwIP has been initialized ***/
|
/*** Assuming LwIP has been initialized ***/
|
||||||
https_nb->stat = INITIALIZED ;
|
https_nb->stat = INITIALIZED ;
|
||||||
case INITIALIZED:
|
case INITIALIZED:
|
||||||
@@ -338,7 +332,7 @@ void *CyaSSL_HTTPS_ClientP_5 = (void *)&CyaSSL_HTTPS_Client_5 ;
|
|||||||
|
|
||||||
#define HTTPS_PORT 443
|
#define HTTPS_PORT 443
|
||||||
#define IP_ADDR(a,b,c,d) (((a)|((b)<<8)|((c)<<16)|(d)<<24))
|
#define IP_ADDR(a,b,c,d) (((a)|((b)<<8)|((c)<<16)|(d)<<24))
|
||||||
static struct ip_addr server_em = { IP_ADDR(192,168,11,9) } ;
|
static struct ip_addr server_em = { IP_ADDR(xxx,xxx,xxx,xxx) } ;
|
||||||
|
|
||||||
void HTTPSClient_main_init() {
|
void HTTPSClient_main_init() {
|
||||||
|
|
||||||
|
4
src/io.c
4
src/io.c
@@ -1055,9 +1055,11 @@ void CyaSSL_SetIO_NetX(CYASSL* ssl, NX_TCP_SOCKET* nxSocket, ULONG waitOption)
|
|||||||
/*Enable debug*/
|
/*Enable debug*/
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#define DBG_PRINTF(x, ...) printf("[SSLClient : DBG]"x"\r\n", ##__VA_ARGS__);
|
#define DBG_PRINTF(x, ...) printf("[SSLClient : DBG]"x"\r\n", ##__VA_ARGS__);
|
||||||
|
#define ERR_PRINTF(x, ...) printf("[SSLClient:ERROR]"x"\r\n", ##__VA_ARGS__);
|
||||||
#else
|
#else
|
||||||
/*Disable debug*/
|
/*Disable debug*/
|
||||||
#define DBG_PRINTF(x, ...)
|
#define DBG_PRINTF(x, ...)
|
||||||
|
#define ERR_PRINTF(x, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@@ -1068,8 +1070,6 @@ void CyaSSL_SetIO_NetX(CYASSL* ssl, NX_TCP_SOCKET* nxSocket, ULONG waitOption)
|
|||||||
#define DBG_PRINTF_CB(x, ...)
|
#define DBG_PRINTF_CB(x, ...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ERR_PRINTF(x, ...) printf("[SSLClient:ERROR]"x"\r\n", ##__VA_ARGS__);
|
|
||||||
|
|
||||||
void CyaSSL_PbufFree(void *vp)
|
void CyaSSL_PbufFree(void *vp)
|
||||||
{
|
{
|
||||||
struct pbuf *p ;
|
struct pbuf *p ;
|
||||||
|
Reference in New Issue
Block a user