mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
refactor MDK options in client/server.c
This commit is contained in:
committed by
Takashi Kojo
parent
d8ca8586c0
commit
8c000c05ee
@@ -102,9 +102,7 @@ static int NonBlockingSSL_Connect(WOLFSSL* ssl)
|
|||||||
while (ret != WOLFSSL_SUCCESS && (error == WOLFSSL_ERROR_WANT_READ ||
|
while (ret != WOLFSSL_SUCCESS && (error == WOLFSSL_ERROR_WANT_READ ||
|
||||||
error == WOLFSSL_ERROR_WANT_WRITE ||
|
error == WOLFSSL_ERROR_WANT_WRITE ||
|
||||||
error == WC_PENDING_E)) {
|
error == WC_PENDING_E)) {
|
||||||
#ifdef WOLFSSL_DTLS
|
|
||||||
int currTimeout = 1;
|
int currTimeout = 1;
|
||||||
#endif
|
|
||||||
|
|
||||||
if (error == WOLFSSL_ERROR_WANT_READ)
|
if (error == WOLFSSL_ERROR_WANT_READ)
|
||||||
printf("... client would read block\n");
|
printf("... client would read block\n");
|
||||||
|
@@ -35,21 +35,12 @@
|
|||||||
#if defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
#if defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "cmsis_os.h"
|
||||||
#if !defined(WOLFSSL_MDK_ARM)
|
#include "rl_fs.h"
|
||||||
#include "cmsis_os.h"
|
#include "rl_net.h"
|
||||||
#include "rl_net.h"
|
#include "wolfssl_MDK_ARM.h"
|
||||||
#else
|
|
||||||
#include "rtl.h"
|
|
||||||
#include "wolfssl_MDK_ARM.h"
|
|
||||||
#endif
|
|
||||||
#if defined(WOLFSSL_MDK_SHELL)
|
|
||||||
char * wolfssl_fgets ( char * str, int num, FILE * f ) ;
|
|
||||||
#define fgets wolfssl_fgets
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <cyassl/test.h>
|
#include <cyassl/test.h>
|
||||||
|
|
||||||
#include <examples/echoclient/echoclient.h>
|
#include <examples/echoclient/echoclient.h>
|
||||||
|
@@ -33,15 +33,10 @@
|
|||||||
#if defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
#if defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "cmsis_os.h"
|
||||||
#if !defined(WOLFSSL_MDK_ARM)
|
#include "rl_fs.h"
|
||||||
#include "cmsis_os.h"
|
#include "rl_net.h"
|
||||||
#include "rl_fs.h"
|
#include "wolfssl_MDK_ARM.h"
|
||||||
#include "rl_net.h"
|
|
||||||
#else
|
|
||||||
#include "rtl.h"
|
|
||||||
#include "wolfssl_MDK_ARM.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cyassl/ssl.h>
|
#include <cyassl/ssl.h>
|
||||||
|
@@ -33,18 +33,12 @@
|
|||||||
#if defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
#if defined(WOLFSSL_MDK_ARM) || defined(WOLFSSL_KEIL_TCP_NET)
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "cmsis_os.h"
|
||||||
#if !defined(WOLFSSL_MDK_ARM)
|
#include "rl_fs.h"
|
||||||
#include "cmsis_os.h"
|
#include "rl_net.h"
|
||||||
#include "rl_fs.h"
|
#include "wolfssl_MDK_ARM.h"
|
||||||
#include "rl_net.h"
|
|
||||||
#else
|
|
||||||
#include "rtl.h"
|
|
||||||
#include "wolfssl_MDK_ARM.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <cyassl/openssl/ssl.h>
|
#include <cyassl/openssl/ssl.h>
|
||||||
#include <cyassl/test.h>
|
#include <cyassl/test.h>
|
||||||
#ifdef CYASSL_DTLS
|
#ifdef CYASSL_DTLS
|
||||||
|
Reference in New Issue
Block a user