blob: 07a13b5b2340eccc6c384527064da9f890adfec6 [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
kjellandere96c45b2017-06-30 10:45:21 -070011#include "webrtc/rtc_base/ssladapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000012
kjellandere96c45b2017-06-30 10:45:21 -070013#include "webrtc/rtc_base/openssladapter.h"
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000014
15///////////////////////////////////////////////////////////////////////////////
16
17namespace rtc {
18
19SSLAdapter*
20SSLAdapter::Create(AsyncSocket* socket) {
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000021 return new OpenSSLAdapter(socket);
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000022}
23
24///////////////////////////////////////////////////////////////////////////////
25
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000026bool InitializeSSL(VerificationCallback callback) {
27 return OpenSSLAdapter::InitializeSSL(callback);
28}
29
Torbjorn Granlund9adc91d2016-03-24 14:05:06 +010030bool InitializeSSLThread() {
31 return OpenSSLAdapter::InitializeSSLThread();
32}
33
34bool CleanupSSL() {
35 return OpenSSLAdapter::CleanupSSL();
36}
37
henrike@webrtc.orgf0488722014-05-13 18:00:26 +000038///////////////////////////////////////////////////////////////////////////////
39
40} // namespace rtc