henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012 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 | |
| 11 | #ifndef WEBRTC_BASE_SSLCONFIG_H_ |
| 12 | #define WEBRTC_BASE_SSLCONFIG_H_ |
| 13 | |
| 14 | // If no preference has been indicated, default to SChannel on Windows and |
| 15 | // OpenSSL everywhere else, if it is available. |
torbjorng | 07d0936 | 2015-09-22 11:58:04 -0700 | [diff] [blame] | 16 | #if !defined(SSL_USE_SCHANNEL) && !defined(SSL_USE_OPENSSL) |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 17 | #if defined(WEBRTC_WIN) |
| 18 | |
| 19 | #define SSL_USE_SCHANNEL 1 |
| 20 | |
| 21 | #else // defined(WEBRTC_WIN) |
| 22 | |
| 23 | #if defined(HAVE_OPENSSL_SSL_H) |
| 24 | #define SSL_USE_OPENSSL 1 |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 25 | #endif |
| 26 | |
| 27 | #endif // !defined(WEBRTC_WIN) |
| 28 | #endif |
| 29 | |
| 30 | #endif // WEBRTC_BASE_SSLCONFIG_H_ |