12c593315Sopenharmony_ci/* 22c593315Sopenharmony_ci * nghttp2 - HTTP/2 C Library 32c593315Sopenharmony_ci * 42c593315Sopenharmony_ci * Copyright (c) 2016 Tatsuhiro Tsujikawa 52c593315Sopenharmony_ci * 62c593315Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining 72c593315Sopenharmony_ci * a copy of this software and associated documentation files (the 82c593315Sopenharmony_ci * "Software"), to deal in the Software without restriction, including 92c593315Sopenharmony_ci * without limitation the rights to use, copy, modify, merge, publish, 102c593315Sopenharmony_ci * distribute, sublicense, and/or sell copies of the Software, and to 112c593315Sopenharmony_ci * permit persons to whom the Software is furnished to do so, subject to 122c593315Sopenharmony_ci * the following conditions: 132c593315Sopenharmony_ci * 142c593315Sopenharmony_ci * The above copyright notice and this permission notice shall be 152c593315Sopenharmony_ci * included in all copies or substantial portions of the Software. 162c593315Sopenharmony_ci * 172c593315Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 182c593315Sopenharmony_ci * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 192c593315Sopenharmony_ci * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 202c593315Sopenharmony_ci * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 212c593315Sopenharmony_ci * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 222c593315Sopenharmony_ci * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 232c593315Sopenharmony_ci * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 242c593315Sopenharmony_ci */ 252c593315Sopenharmony_ci#ifndef OPENSSL_COMPAT_H 262c593315Sopenharmony_ci 272c593315Sopenharmony_ci# include <openssl/opensslv.h> 282c593315Sopenharmony_ci 292c593315Sopenharmony_ci# ifdef LIBRESSL_VERSION_NUMBER 302c593315Sopenharmony_ci# define OPENSSL_1_1_API 0 312c593315Sopenharmony_ci# define OPENSSL_1_1_1_API 0 322c593315Sopenharmony_ci# define OPENSSL_3_0_0_API 0 332c593315Sopenharmony_ci# define LIBRESSL_IN_USE 1 342c593315Sopenharmony_ci# define LIBRESSL_LEGACY_API (LIBRESSL_VERSION_NUMBER < 0x20700000L) 352c593315Sopenharmony_ci# define LIBRESSL_2_7_API (LIBRESSL_VERSION_NUMBER >= 0x20700000L) 362c593315Sopenharmony_ci# define LIBRESSL_3_5_API (LIBRESSL_VERSION_NUMBER >= 0x30500000L) 372c593315Sopenharmony_ci# else // !LIBRESSL_VERSION_NUMBER 382c593315Sopenharmony_ci# define OPENSSL_1_1_API (OPENSSL_VERSION_NUMBER >= 0x1010000fL) 392c593315Sopenharmony_ci# define OPENSSL_1_1_1_API (OPENSSL_VERSION_NUMBER >= 0x10101000L) 402c593315Sopenharmony_ci# define OPENSSL_3_0_0_API (OPENSSL_VERSION_NUMBER >= 0x30000000L) 412c593315Sopenharmony_ci# define LIBRESSL_IN_USE 0 422c593315Sopenharmony_ci# define LIBRESSL_LEGACY_API 0 432c593315Sopenharmony_ci# define LIBRESSL_2_7_API 0 442c593315Sopenharmony_ci# define LIBRESSL_3_5_API 0 452c593315Sopenharmony_ci# endif // !LIBRESSL_VERSION_NUMBER 462c593315Sopenharmony_ci 472c593315Sopenharmony_ci#endif // OPENSSL_COMPAT_H 48