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:
parent
692cbf111f
commit
5a1d420652
16
src/ssl.c
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user