blob: 4f56cf7f027fcae0f0a541e9e0550d9c3f3d8665 [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
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000029bool InitializeSSL(VerificationCallback callback) {
30 return OpenSSLAdapter::InitializeSSL(callback);
31}
32
Torbjorn Granlund9adc91d2016-03-24 14:05:06 +010033bool InitializeSSLThread() {
34 return OpenSSLAdapter::InitializeSSLThread();
35}
36
37bool CleanupSSL() {
38 return OpenSSLAdapter::CleanupSSL();
39}
40
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000041///////////////////////////////////////////////////////////////////////////////
42
43} // namespace rtc