Files
platform-external-webrtc/rtc_base/openssl.h
Jiawei Ou a9c94d5b12 Be explicit about OpenSSL version requriement.
https://chromium-review.googlesource.com/c/external/webrtc/+/575910 pretty much made it a mandate to have OpenSSL 1.1.0 to compile webrtc.

So, let's be explicit about it and cleanup old code for older version support.

Also, generate a compiler error for older OpenSSL versions.

Bug: webrtc:8817
Change-Id: I28590348137b6a04503eabdcc6328297ecf5213e
Reviewed-on: https://webrtc-review.googlesource.com/46502
Reviewed-by: Justin Uberti <juberti@webrtc.org>
Commit-Queue: Jiawei Ou <ouj@fb.com>
Cr-Commit-Position: refs/heads/master@{#21861}
2018-02-01 22:21:12 +00:00

21 lines
651 B
C

/*
* Copyright 2013 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef RTC_BASE_OPENSSL_H_
#define RTC_BASE_OPENSSL_H_
#include <openssl/ssl.h>
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
#error OpenSSL is older than 1.1.0, which is the minimum supported version.
#endif
#endif // RTC_BASE_OPENSSL_H_