dd01f734c6
* wip: tls options implemented in openssl * update naming, remove #define guard * assert compiled with USE_TLS for tls options * apply autoformatter * include tls options impl * style cleanup; auto ssl_err * ssl_err -> sslErr * be explicit about SSL_VERIFY_NONE
22 lines
444 B
C++
22 lines
444 B
C++
|
|
/*
|
|
* IXSocketFactory.h
|
|
* Author: Benjamin Sergeant
|
|
* Copyright (c) 2018 Machine Zone, Inc. All rights reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "IXSocketTLSOptions.h"
|
|
|
|
namespace ix
|
|
{
|
|
class Socket;
|
|
std::shared_ptr<Socket> createSocket(bool tls, std::string& errorMsg, const SocketTLSOptions& tlsOptions);
|
|
|
|
std::shared_ptr<Socket> createSocket(int fd, std::string& errorMsg);
|
|
} // namespace ix
|