From 5a1d420652f6535f9aaf527c4c962e10070b67ab Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Fri, 14 Mar 2014 15:33:49 -0600 Subject: [PATCH] move CyaSSL_dtls() and CyaSSL_get_using_nonblock() out of #ifndef CYASSL_LEANPSK for use of leanPSK with standard I/O --- src/ssl.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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