diff --git a/src/ssl.c b/src/ssl.c index 96abe5332..101082fec 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -226,14 +226,6 @@ int CyaSSL_get_fd(const CYASSL* ssl) } -#ifndef CYASSL_LEANPSK -void CyaSSL_set_using_nonblock(CYASSL* ssl, int nonblock) -{ - CYASSL_ENTER("CyaSSL_set_using_nonblock"); - ssl->options.usingNonblock = (nonblock != 0); -} - - int CyaSSL_get_using_nonblock(CYASSL* ssl) { CYASSL_ENTER("CyaSSL_get_using_nonblock"); @@ -248,6 +240,14 @@ int CyaSSL_dtls(CYASSL* ssl) } +#ifndef CYASSL_LEANPSK +void CyaSSL_set_using_nonblock(CYASSL* ssl, int nonblock) +{ + CYASSL_ENTER("CyaSSL_set_using_nonblock"); + ssl->options.usingNonblock = (nonblock != 0); +} + + int CyaSSL_dtls_set_peer(CYASSL* ssl, void* peer, unsigned int peerSz) { #ifdef CYASSL_DTLS