move CyaSSL_dtls() and CyaSSL_get_using_nonblock() out of #ifndef CYASSL_LEANPSK for use of leanPSK with standard I/O

This commit is contained in:
Chris Conlon 2014-03-14 15:33:49 -06:00
parent 692cbf111f
commit 5a1d420652

View File

@ -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