(tls / apple) minor refactoring, move functions out of the anonymous namespace to become static member functions

This commit is contained in:
Benjamin Sergeant
2019-12-23 16:30:38 -08:00
parent 1e97e5e536
commit b9cc6d7e23
2 changed files with 46 additions and 45 deletions

View File

@ -34,6 +34,10 @@ namespace ix
virtual ssize_t recv(void* buffer, size_t length) final;
private:
static std::string getSSLErrorDescription(OSStatus status);
static OSStatus writeToSocket(SSLConnectionRef connection, const void* data, size_t* len);
static OSStatus readFromSocket(SSLConnectionRef connection, void* data, size_t* len);
SSLContextRef _sslContext;
mutable std::mutex _mutex; // AppleSSL routines are not thread-safe