2014-05-13 18:00:26 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright 2004 The WebRTC Project Authors. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "rtc_base/ssl_adapter.h"
|
2014-05-13 18:00:26 +00:00
|
|
|
|
2019-01-11 09:11:00 -08:00
|
|
|
#include "rtc_base/openssl_adapter.h"
|
2014-05-13 18:00:26 +00:00
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
namespace rtc {
|
|
|
|
|
|
2017-08-14 17:04:34 -07:00
|
|
|
SSLAdapterFactory* SSLAdapterFactory::Create() {
|
|
|
|
|
return new OpenSSLAdapterFactory();
|
|
|
|
|
}
|
|
|
|
|
|
2021-08-12 10:32:30 +02:00
|
|
|
SSLAdapter* SSLAdapter::Create(Socket* socket) {
|
2014-05-13 18:00:26 +00:00
|
|
|
return new OpenSSLAdapter(socket);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2018-05-08 13:12:25 -07:00
|
|
|
bool InitializeSSL() {
|
|
|
|
|
return OpenSSLAdapter::InitializeSSL();
|
2014-05-13 18:00:26 +00:00
|
|
|
}
|
|
|
|
|
|
2016-03-24 14:05:06 +01:00
|
|
|
bool CleanupSSL() {
|
|
|
|
|
return OpenSSLAdapter::CleanupSSL();
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-13 18:00:26 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
} // namespace rtc
|