blob: 9d414ea2ff32b6711ea0f26daf60c1ec62a36f6b [file] [log] [blame]
henrike@webrtc.orgf0488722014-05-13 18:00:261/*
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 17:11:0011#include "rtc_base/ssl_adapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:2612
Steve Anton10542f22019-01-11 17:11:0013#include "rtc_base/openssl_adapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:2614
15///////////////////////////////////////////////////////////////////////////////
16
17namespace rtc {
18
Justin Uberti1d445502017-08-15 00:04:3419SSLAdapterFactory* SSLAdapterFactory::Create() {
20 return new OpenSSLAdapterFactory();
21}
22
23SSLAdapter* SSLAdapter::Create(AsyncSocket* socket) {
henrike@webrtc.orgf0488722014-05-13 18:00:2624 return new OpenSSLAdapter(socket);
henrike@webrtc.orgf0488722014-05-13 18:00:2625}
26
27///////////////////////////////////////////////////////////////////////////////
28
Benjamin Wrightd6f86e82018-05-08 20:12:2529bool InitializeSSL() {
30 return OpenSSLAdapter::InitializeSSL();
henrike@webrtc.orgf0488722014-05-13 18:00:2631}
32
Torbjorn Granlund9adc91d2016-03-24 13:05:0633bool CleanupSSL() {
34 return OpenSSLAdapter::CleanupSSL();
35}
36
henrike@webrtc.orgf0488722014-05-13 18:00:2637///////////////////////////////////////////////////////////////////////////////
38
39} // namespace rtc