blob: 9d414ea2ff32b6711ea0f26daf60c1ec62a36f6b [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:26 +00001/*
2 * Copyright 2004 The WebRTC Project Authors. All rights reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Steve Anton10542f22019-01-11 09:11:00 -080011#include "rtc_base/ssl_adapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000012
Steve Anton10542f22019-01-11 09:11:00 -080013#include "rtc_base/openssl_adapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000014
15///////////////////////////////////////////////////////////////////////////////
16
17namespace rtc {
18
Justin Uberti1d445502017-08-14 17:04:34 -070019SSLAdapterFactory* SSLAdapterFactory::Create() {
20 return new OpenSSLAdapterFactory();
21}
22
23SSLAdapter* SSLAdapter::Create(AsyncSocket* socket) {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000024 return new OpenSSLAdapter(socket);
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000025}
26
27///////////////////////////////////////////////////////////////////////////////
28
Benjamin Wrightd6f86e82018-05-08 13:12:25 -070029bool InitializeSSL() {
30 return OpenSSLAdapter::InitializeSSL();
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000031}
32
Torbjorn Granlund9adc91d2016-03-24 14:05:06 +010033bool CleanupSSL() {
34 return OpenSSLAdapter::CleanupSSL();
35}
36
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000037///////////////////////////////////////////////////////////////////////////////
38
39} // namespace rtc