henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 11 | #ifndef RTC_BASE_OPENSSL_ADAPTER_H_ |
| 12 | #define RTC_BASE_OPENSSL_ADAPTER_H_ |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 13 | |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 14 | #include <openssl/ossl_typ.h> |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 15 | #include <stddef.h> |
| 16 | #include <stdint.h> |
Jonas Olsson | a4d8737 | 2019-07-05 19:08:33 +0200 | [diff] [blame] | 17 | |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 18 | #include <memory> |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 19 | #include <string> |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 20 | #include <vector> |
| 21 | |
Ali Tofigh | 7fa9057 | 2022-03-17 15:47:49 +0100 | [diff] [blame] | 22 | #include "absl/strings/string_view.h" |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 23 | #include "rtc_base/buffer.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 24 | #include "rtc_base/message_handler.h" |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 25 | #ifdef OPENSSL_IS_BORINGSSL |
| 26 | #include "rtc_base/boringssl_identity.h" |
| 27 | #else |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 28 | #include "rtc_base/openssl_identity.h" |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 29 | #endif |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 30 | #include "rtc_base/openssl_session_cache.h" |
Yves Gerey | 988cc08 | 2018-10-23 12:03:01 +0200 | [diff] [blame] | 31 | #include "rtc_base/socket.h" |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 32 | #include "rtc_base/socket_address.h" |
| 33 | #include "rtc_base/ssl_adapter.h" |
| 34 | #include "rtc_base/ssl_certificate.h" |
| 35 | #include "rtc_base/ssl_identity.h" |
| 36 | #include "rtc_base/ssl_stream_adapter.h" |
henrike@webrtc.org | f048872 | 2014-05-13 18:00:26 +0000 | [diff] [blame] | 37 | |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 38 | namespace rtc { |
| 39 | |
Niels Möller | 9aa46c6 | 2022-05-11 15:02:55 +0200 | [diff] [blame^] | 40 | namespace webrtc_openssl_adapter_internal { |
| 41 | |
| 42 | // Local definition, since absl::StrJoin is not allow-listed. Declared in header |
| 43 | // file only for unittests. |
| 44 | std::string StrJoin(const std::vector<std::string>& list, char delimiter); |
| 45 | |
| 46 | } // namespace webrtc_openssl_adapter_internal |
| 47 | |
Tomas Gunnarsson | abdb470 | 2020-09-05 18:43:36 +0200 | [diff] [blame] | 48 | class OpenSSLAdapter final : public SSLAdapter, |
| 49 | public MessageHandlerAutoCleanup { |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 50 | public: |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 51 | static bool InitializeSSL(); |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 52 | static bool CleanupSSL(); |
| 53 | |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 54 | // Creating an OpenSSLAdapter requires a socket to bind to, an optional |
| 55 | // session cache if you wish to improve performance by caching sessions for |
| 56 | // hostnames you have previously connected to and an optional |
| 57 | // SSLCertificateVerifier which can override any existing trusted roots to |
| 58 | // validate a peer certificate. The cache and verifier are effectively |
| 59 | // immutable after the the SSL connection starts. |
Niels Möller | d0b8879 | 2021-08-12 10:32:30 +0200 | [diff] [blame] | 60 | explicit OpenSSLAdapter(Socket* socket, |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 61 | OpenSSLSessionCache* ssl_session_cache = nullptr, |
| 62 | SSLCertificateVerifier* ssl_cert_verifier = nullptr); |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 63 | ~OpenSSLAdapter() override; |
| 64 | |
Sergey Silkin | 9c147dd | 2018-09-12 10:45:38 +0000 | [diff] [blame] | 65 | void SetIgnoreBadCert(bool ignore) override; |
| 66 | void SetAlpnProtocols(const std::vector<std::string>& protos) override; |
| 67 | void SetEllipticCurves(const std::vector<std::string>& curves) override; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 68 | void SetMode(SSLMode mode) override; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 69 | void SetCertVerifier(SSLCertificateVerifier* ssl_cert_verifier) override; |
Harald Alvestrand | 8515d5a | 2020-03-20 22:51:32 +0100 | [diff] [blame] | 70 | void SetIdentity(std::unique_ptr<SSLIdentity> identity) override; |
Steve Anton | 786de70 | 2017-08-17 15:15:46 -0700 | [diff] [blame] | 71 | void SetRole(SSLRole role) override; |
Ali Tofigh | 2ab914c | 2022-04-13 12:55:15 +0200 | [diff] [blame] | 72 | int StartSSL(absl::string_view hostname) override; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 73 | int Send(const void* pv, size_t cb) override; |
| 74 | int SendTo(const void* pv, size_t cb, const SocketAddress& addr) override; |
| 75 | int Recv(void* pv, size_t cb, int64_t* timestamp) override; |
| 76 | int RecvFrom(void* pv, |
| 77 | size_t cb, |
| 78 | SocketAddress* paddr, |
| 79 | int64_t* timestamp) override; |
| 80 | int Close() override; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 81 | // Note that the socket returns ST_CONNECTING while SSL is being negotiated. |
| 82 | ConnState GetState() const override; |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 83 | bool IsResumedSession() override; |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 84 | // Creates a new SSL_CTX object, configured for client-to-server usage |
Artem Titov | 96e3b99 | 2021-07-26 16:03:14 +0200 | [diff] [blame] | 85 | // with SSLMode `mode`, and if `enable_cache` is true, with support for |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 86 | // storing successful sessions so that they can be later resumed. |
| 87 | // OpenSSLAdapterFactory will call this method to create its own internal |
| 88 | // SSL_CTX, and OpenSSLAdapter will also call this when used without a |
| 89 | // factory. |
| 90 | static SSL_CTX* CreateContext(SSLMode mode, bool enable_cache); |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 91 | |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 92 | protected: |
Niels Möller | d0b8879 | 2021-08-12 10:32:30 +0200 | [diff] [blame] | 93 | void OnConnectEvent(Socket* socket) override; |
| 94 | void OnReadEvent(Socket* socket) override; |
| 95 | void OnWriteEvent(Socket* socket) override; |
| 96 | void OnCloseEvent(Socket* socket, int err) override; |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 97 | |
| 98 | private: |
Vojin Ilic | f11f0e0 | 2021-06-30 14:22:11 +0200 | [diff] [blame] | 99 | class EarlyExitCatcher { |
| 100 | public: |
| 101 | EarlyExitCatcher(OpenSSLAdapter& adapter_ptr); |
| 102 | void disable(); |
| 103 | ~EarlyExitCatcher(); |
| 104 | |
| 105 | private: |
| 106 | bool disabled_ = false; |
| 107 | OpenSSLAdapter& adapter_ptr_; |
| 108 | }; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 109 | enum SSLState { |
Yves Gerey | 665174f | 2018-06-19 15:03:05 +0200 | [diff] [blame] | 110 | SSL_NONE, |
| 111 | SSL_WAIT, |
| 112 | SSL_CONNECTING, |
| 113 | SSL_CONNECTED, |
| 114 | SSL_ERROR |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 115 | }; |
| 116 | |
| 117 | enum { MSG_TIMEOUT }; |
| 118 | |
| 119 | int BeginSSL(); |
| 120 | int ContinueSSL(); |
Ali Tofigh | 2ab914c | 2022-04-13 12:55:15 +0200 | [diff] [blame] | 121 | void Error(absl::string_view context, int err, bool signal = true); |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 122 | void Cleanup(); |
| 123 | |
Artem Titov | 96e3b99 | 2021-07-26 16:03:14 +0200 | [diff] [blame] | 124 | // Return value and arguments have the same meanings as for Send; `error` is |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 125 | // an output parameter filled with the result of SSL_get_error. |
| 126 | int DoSslWrite(const void* pv, size_t cb, int* error); |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 127 | void OnMessage(Message* msg) override; |
Ali Tofigh | 7fa9057 | 2022-03-17 15:47:49 +0100 | [diff] [blame] | 128 | bool SSLPostConnectionCheck(SSL* ssl, absl::string_view host); |
Benjamin Wright | 9201d1a | 2018-04-05 12:12:26 -0700 | [diff] [blame] | 129 | |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 130 | #if !defined(NDEBUG) |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 131 | // In debug builds, logs info about the state of the SSL connection. |
| 132 | static void SSLInfoCallback(const SSL* ssl, int where, int ret); |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 133 | #endif |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 134 | |
| 135 | #if defined(OPENSSL_IS_BORINGSSL) && \ |
| 136 | defined(WEBRTC_EXCLUDE_BUILT_IN_SSL_ROOT_CERTS) |
| 137 | static enum ssl_verify_result_t SSLVerifyCallback(SSL* ssl, |
| 138 | uint8_t* out_alert); |
| 139 | enum ssl_verify_result_t SSLVerifyInternal(SSL* ssl, uint8_t* out_alert); |
| 140 | #else |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 141 | static int SSLVerifyCallback(int ok, X509_STORE_CTX* store); |
Harald Alvestrand | b32650e | 2021-09-10 08:03:22 +0000 | [diff] [blame] | 142 | // Call a custom verifier, if installed. |
| 143 | // Returns 1 on success, `status_on_error` on error or verification failure. |
| 144 | int SSLVerifyInternal(int status_on_error, SSL* ssl, X509_STORE_CTX* store); |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 145 | #endif |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 146 | friend class OpenSSLStreamAdapter; // for custom_verify_callback_; |
| 147 | |
Artem Titov | 96e3b99 | 2021-07-26 16:03:14 +0200 | [diff] [blame] | 148 | // If the SSL_CTX was created with `enable_cache` set to true, this callback |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 149 | // will be called when a SSL session has been successfully established, |
| 150 | // to allow its SSL_SESSION* to be cached for later resumption. |
| 151 | static int NewSSLSessionCallback(SSL* ssl, SSL_SESSION* session); |
| 152 | |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 153 | // Optional SSL Shared session cache to improve performance. |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 154 | OpenSSLSessionCache* ssl_session_cache_ = nullptr; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 155 | // Optional SSL Certificate verifier which can be set by a third party. |
| 156 | SSLCertificateVerifier* ssl_cert_verifier_ = nullptr; |
| 157 | // The current connection state of the (d)TLS connection. |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 158 | SSLState state_; |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 159 | |
| 160 | #ifdef OPENSSL_IS_BORINGSSL |
| 161 | std::unique_ptr<BoringSSLIdentity> identity_; |
| 162 | #else |
Steve Anton | 786de70 | 2017-08-17 15:15:46 -0700 | [diff] [blame] | 163 | std::unique_ptr<OpenSSLIdentity> identity_; |
Taylor Brandstetter | 165c618 | 2020-12-10 16:23:03 -0800 | [diff] [blame] | 164 | #endif |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 165 | // Indicates whethere this is a client or a server. |
Steve Anton | 786de70 | 2017-08-17 15:15:46 -0700 | [diff] [blame] | 166 | SSLRole role_; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 167 | bool ssl_read_needs_write_; |
| 168 | bool ssl_write_needs_read_; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 169 | // This buffer is used if SSL_write fails with SSL_ERROR_WANT_WRITE, which |
| 170 | // means we need to keep retrying with *the same exact data* until it |
| 171 | // succeeds. Afterwards it will be cleared. |
| 172 | Buffer pending_data_; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 173 | SSL* ssl_; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 174 | // Holds the SSL context, which may be shared if an session cache is provided. |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 175 | SSL_CTX* ssl_ctx_; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 176 | // Hostname of server that is being connected, used for SNI. |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 177 | std::string ssl_host_name_; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 178 | // Set the adapter to DTLS or TLS mode before creating the context. |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 179 | SSLMode ssl_mode_; |
Sergey Silkin | 9c147dd | 2018-09-12 10:45:38 +0000 | [diff] [blame] | 180 | // If true, the server certificate need not match the configured hostname. |
| 181 | bool ignore_bad_cert_; |
| 182 | // List of protocols to be used in the TLS ALPN extension. |
| 183 | std::vector<std::string> alpn_protocols_; |
| 184 | // List of elliptic curves to be used in the TLS elliptic curves extension. |
| 185 | std::vector<std::string> elliptic_curves_; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 186 | // Holds the result of the call to run of the ssl_cert_verify_->Verify() |
| 187 | bool custom_cert_verifier_status_; |
Henrik Kjellander | ec78f1c | 2017-06-29 07:52:50 +0200 | [diff] [blame] | 188 | }; |
| 189 | |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 190 | // The OpenSSLAdapterFactory is responsbile for creating multiple new |
| 191 | // OpenSSLAdapters with a shared SSL_CTX and a shared SSL_SESSION cache. The |
| 192 | // SSL_SESSION cache allows existing SSL_SESSIONS to be reused instead of |
| 193 | // recreating them leading to a significant performance improvement. |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 194 | class OpenSSLAdapterFactory : public SSLAdapterFactory { |
| 195 | public: |
| 196 | OpenSSLAdapterFactory(); |
| 197 | ~OpenSSLAdapterFactory() override; |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 198 | // Set the SSL Mode to use with this factory. This should only be set before |
| 199 | // the first adapter is created with the factory. If it is called after it |
| 200 | // will DCHECK. |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 201 | void SetMode(SSLMode mode) override; |
Niels Möller | ac9a288 | 2021-10-20 15:25:09 +0200 | [diff] [blame] | 202 | |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 203 | // Set a custom certificate verifier to be passed down to each instance |
| 204 | // created with this factory. This should only ever be set before the first |
| 205 | // call to the factory and cannot be changed after the fact. |
| 206 | void SetCertVerifier(SSLCertificateVerifier* ssl_cert_verifier) override; |
Niels Möller | ac9a288 | 2021-10-20 15:25:09 +0200 | [diff] [blame] | 207 | |
| 208 | void SetIdentity(std::unique_ptr<SSLIdentity> identity) override; |
| 209 | |
| 210 | // Choose whether the socket acts as a server socket or client socket. |
| 211 | void SetRole(SSLRole role) override; |
| 212 | |
| 213 | // Methods that control server certificate verification, used in unit tests. |
| 214 | // Do not call these methods in production code. |
| 215 | void SetIgnoreBadCert(bool ignore) override; |
| 216 | |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 217 | // Constructs a new socket using the shared OpenSSLSessionCache. This means |
| 218 | // existing SSLSessions already in the cache will be reused instead of |
| 219 | // re-created for improved performance. |
Niels Möller | d0b8879 | 2021-08-12 10:32:30 +0200 | [diff] [blame] | 220 | OpenSSLAdapter* CreateAdapter(Socket* socket) override; |
Henrik Kjellander | c036276 | 2017-06-29 08:03:04 +0200 | [diff] [blame] | 221 | |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 222 | private: |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 223 | // Holds the SSLMode (DTLS,TLS) that will be used to set the session cache. |
| 224 | SSLMode ssl_mode_ = SSL_MODE_TLS; |
Niels Möller | ac9a288 | 2021-10-20 15:25:09 +0200 | [diff] [blame] | 225 | SSLRole ssl_role_ = SSL_CLIENT; |
| 226 | bool ignore_bad_cert_ = false; |
| 227 | |
| 228 | std::unique_ptr<SSLIdentity> identity_; |
| 229 | |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 230 | // Holds a cache of existing SSL Sessions. |
| 231 | std::unique_ptr<OpenSSLSessionCache> ssl_session_cache_; |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 232 | // Provides an optional custom callback for verifying SSL certificates, this |
| 233 | // in currently only used for TLS-TURN connections. |
| 234 | SSLCertificateVerifier* ssl_cert_verifier_ = nullptr; |
Benjamin Wright | 19aab2e | 2018-04-05 15:39:06 -0700 | [diff] [blame] | 235 | // TODO(benwright): Remove this when context is moved to OpenSSLCommon. |
| 236 | // Hold a friend class to the OpenSSLAdapter to retrieve the context. |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 237 | friend class OpenSSLAdapter; |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 238 | }; |
| 239 | |
Vojin Ilic | f11f0e0 | 2021-06-30 14:22:11 +0200 | [diff] [blame] | 240 | // The EarlyExitCatcher is responsible for calling OpenSSLAdapter::Cleanup on |
| 241 | // destruction. By doing this we have scoped cleanup which can be disabled if |
| 242 | // there were no errors, aka early exits. |
| 243 | |
Benjamin Wright | d6f86e8 | 2018-05-08 13:12:25 -0700 | [diff] [blame] | 244 | std::string TransformAlpnProtocols(const std::vector<std::string>& protos); |
| 245 | |
Justin Uberti | 1d44550 | 2017-08-14 17:04:34 -0700 | [diff] [blame] | 246 | } // namespace rtc |
| 247 | |
Steve Anton | 10542f2 | 2019-01-11 09:11:00 -0800 | [diff] [blame] | 248 | #endif // RTC_BASE_OPENSSL_ADAPTER_H_ |