| 797 | } |
| 798 | |
| 799 | int 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 | |
| 815 | SSL_SESSION * CUT_WSClient::SSLGetCurrentSession() { |
| 816 | if (m_ssl) |
nothing calls this directly
no outgoing calls
no test coverage detected