From a6dd93aa2e72181ab9be77795f92bba83b013448 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 6 Jun 2018 13:14:06 -0700 Subject: [PATCH] Removed replaced the last two references to "CYASSL" macros with "WOLFSSL" in the example server. --- examples/server/server.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/server/server.c b/examples/server/server.c index 9186c9ed6..c24ac94d6 100644 --- a/examples/server/server.c +++ b/examples/server/server.c @@ -160,7 +160,7 @@ static int NonBlockingSSL_Accept(SSL* ssl) || error == WC_PENDING_E #endif ) { - #ifndef CYASSL_CALLBACKS + #ifndef WOLFSSL_CALLBACKS ret = SSL_accept(ssl); #else ret = SSL_accept_ex(ssl, @@ -285,7 +285,7 @@ int ServerEchoData(SSL* ssl, int clientfd, int echoData, int block, static void NonBlockingServerRead(WOLFSSL* ssl, char* input, int inputLen) { int ret, err; - char buffer[CYASSL_MAX_ERROR_SZ]; + char buffer[WOLFSSL_MAX_ERROR_SZ]; /* Read data */ do { @@ -301,7 +301,7 @@ static void NonBlockingServerRead(WOLFSSL* ssl, char* input, int inputLen) } else #endif - #ifdef CYASSL_DTLS + #ifdef WOLFSSL_DTLS if (wolfSSL_dtls(ssl) && err == DECRYPT_ERROR) { printf("Dropped client's message due to a bad MAC\n"); } @@ -1800,7 +1800,7 @@ exit: args.signal = &ready; InitTcpReady(&ready); -#if defined(DEBUG_CYASSL) && !defined(WOLFSSL_MDK_SHELL) +#if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_MDK_SHELL) wolfSSL_Debugging_ON(); #endif wolfSSL_Init();