Skip to content
Snippets Groups Projects
Commit c2e78d5f authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Gerrit Code Review
Browse files

OSX: doesn't build on XCode

Refs #68312

Change-Id: Ifb82dd529bf2b12f9bd2f33d03af5f45684d2749
parent 49732f87
Branches
Tags
No related merge requests found
......@@ -203,11 +203,8 @@ ManagerImpl::ManagerImpl() :
, ringbufferpool_(new RingBufferPool)
, callFactory(), conferenceMap_()
, accountFactory_(), ice_tf_()
, gnutlGIG_ {tls::GnuTlsGlobalInit::make_guard()}
{
#if HAVE_TLS
thread_local static auto gnutlGIG = tls::GnuTlsGlobalInit::make_guard();
#endif
// initialize random generator
// mt19937_64 should be seeded with 2 x 32 bits
std::random_device rdev;
......
......@@ -68,6 +68,10 @@ class YamlParser;
class YamlEmitter;
}
namespace tls {
class GnuTlsGlobalInit;
}
class PluginManager;
class AudioFile;
class DTMF;
......@@ -985,6 +989,8 @@ class ManagerImpl {
/* ICE support */
std::unique_ptr<IceTransportFactory> ice_tf_;
std::unique_ptr<tls::GnuTlsGlobalInit> gnutlGIG_;
};
} // namespace ring
......
......@@ -643,10 +643,6 @@ bool
SipsIceTransport::setup()
{
RING_WARN("Starting GnuTLS thread");
// GNU TLS library init
thread_local static auto gtlsGIG = GnuTlsGlobalInit::make_guard();
if (is_server_) {
gnutls_key_generate(&cookie_key_, GNUTLS_COOKIE_KEY_SIZE);
state_ = TlsConnectionState::COOKIE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment