blob: e091f00520012b62cc3987476ad9cbbb95c56d0f [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
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#include "rtc_base/ssladapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000012
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020013#include "rtc_base/openssladapter.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