compiled fixes on mac and windows

This commit is contained in:
Benjamin Sergeant
2019-09-22 18:43:57 -07:00
parent 408ee41990
commit 041fa3e340
6 changed files with 21 additions and 4 deletions

View File

@ -8,6 +8,7 @@
#include "IXCancellationRequest.h"
#include "IXSocket.h"
#include "IXSocketTLSOptions.h"
#include <Security/SecureTransport.h>
#include <Security/Security.h>
#include <mutex>
@ -17,7 +18,7 @@ namespace ix
class SocketAppleSSL final : public Socket
{
public:
SocketAppleSSL(int fd = -1);
SocketAppleSSL(const SocketTLSOptions& tlsOptions, int fd = -1);
~SocketAppleSSL();
virtual bool connect(const std::string& host,
@ -33,6 +34,8 @@ namespace ix
private:
SSLContextRef _sslContext;
mutable std::mutex _mutex; // AppleSSL routines are not thread-safe
SocketTLSOptions _tlsOptions;
};
} // namespace ix