blob: f26ebdab4bcd2aa45d1c251c3271ec04b8f5f0f9 [file] [log] [blame]
henrike@webrtc.org47be73b2014-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
kjellander19796962017-06-30 17:45:2111#include "webrtc/rtc_base/ssladapter.h"
henrike@webrtc.org47be73b2014-05-13 18:00:2612
kjellander19796962017-06-30 17:45:2113#include "webrtc/rtc_base/openssladapter.h"
henrike@webrtc.org47be73b2014-05-13 18:00:2614
15///////////////////////////////////////////////////////////////////////////////
16
17namespace rtc {
18
Justin Ubertid5bb8312017-08-15 00:04:3419SSLAdapterFactory* SSLAdapterFactory::Create() {
20 return new OpenSSLAdapterFactory();
21}
22
23SSLAdapter* SSLAdapter::Create(AsyncSocket* socket) {
henrike@webrtc.org47be73b2014-05-13 18:00:2624 return new OpenSSLAdapter(socket);
henrike@webrtc.org47be73b2014-05-13 18:00:2625}
26
27///////////////////////////////////////////////////////////////////////////////
28
henrike@webrtc.org47be73b2014-05-13 18:00:2629bool InitializeSSL(VerificationCallback callback) {
30 return OpenSSLAdapter::InitializeSSL(callback);
31}
32
Torbjorn Granlund2bef95e2016-03-24 13:05:0633bool InitializeSSLThread() {
34 return OpenSSLAdapter::InitializeSSLThread();
35}
36
37bool CleanupSSL() {
38 return OpenSSLAdapter::CleanupSSL();
39}
40
henrike@webrtc.org47be73b2014-05-13 18:00:2641///////////////////////////////////////////////////////////////////////////////
42
43} // namespace rtc