forked from wolfSSL/wolfssl
Removed replaced the last two references to "CYASSL" macros with "WOLFSSL" in the example server.
This commit is contained in:
@@ -160,7 +160,7 @@ static int NonBlockingSSL_Accept(SSL* ssl)
|
|||||||
|| error == WC_PENDING_E
|
|| error == WC_PENDING_E
|
||||||
#endif
|
#endif
|
||||||
) {
|
) {
|
||||||
#ifndef CYASSL_CALLBACKS
|
#ifndef WOLFSSL_CALLBACKS
|
||||||
ret = SSL_accept(ssl);
|
ret = SSL_accept(ssl);
|
||||||
#else
|
#else
|
||||||
ret = SSL_accept_ex(ssl,
|
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)
|
static void NonBlockingServerRead(WOLFSSL* ssl, char* input, int inputLen)
|
||||||
{
|
{
|
||||||
int ret, err;
|
int ret, err;
|
||||||
char buffer[CYASSL_MAX_ERROR_SZ];
|
char buffer[WOLFSSL_MAX_ERROR_SZ];
|
||||||
|
|
||||||
/* Read data */
|
/* Read data */
|
||||||
do {
|
do {
|
||||||
@@ -301,7 +301,7 @@ static void NonBlockingServerRead(WOLFSSL* ssl, char* input, int inputLen)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
#ifdef CYASSL_DTLS
|
#ifdef WOLFSSL_DTLS
|
||||||
if (wolfSSL_dtls(ssl) && err == DECRYPT_ERROR) {
|
if (wolfSSL_dtls(ssl) && err == DECRYPT_ERROR) {
|
||||||
printf("Dropped client's message due to a bad MAC\n");
|
printf("Dropped client's message due to a bad MAC\n");
|
||||||
}
|
}
|
||||||
@@ -1800,7 +1800,7 @@ exit:
|
|||||||
args.signal = &ready;
|
args.signal = &ready;
|
||||||
InitTcpReady(&ready);
|
InitTcpReady(&ready);
|
||||||
|
|
||||||
#if defined(DEBUG_CYASSL) && !defined(WOLFSSL_MDK_SHELL)
|
#if defined(DEBUG_WOLFSSL) && !defined(WOLFSSL_MDK_SHELL)
|
||||||
wolfSSL_Debugging_ON();
|
wolfSSL_Debugging_ON();
|
||||||
#endif
|
#endif
|
||||||
wolfSSL_Init();
|
wolfSSL_Init();
|
||||||
|
Reference in New Issue
Block a user