MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / SSLReceive

Method SSLReceive

UTCP/src/ut_clnt.cpp:799–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797}
798
799int CUT_WSClient::SSLReceive(LPSTR buffer, int maxSize, bool peek) {
800 if (m_isSSL && m_SSLconnected) {
801 if (!peek) {
802 int size = SSL_read(m_ssl, (char *)buffer, maxSize);
803 return size;
804 }
805 else {
806 //return SSL_peek(m_ssl, (char *)buffer, maxSize);
807 int size = SSL_peek(m_ssl, (char *)buffer, maxSize);
808 return size;
809 }
810 } else {
811 return SocketRecv(m_socket, (char *)buffer, maxSize, peek?MSG_PEEK:0);
812 }
813}
814
815SSL_SESSION * CUT_WSClient::SSLGetCurrentSession() {
816 if (m_ssl)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected