mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-21 14:33:55 +00:00
Bundle pinned offline dependencies, remove libcork/libipset and submodule requirements, and add portable runtime helpers with relocatable static/shared library installations.
Add Clang static build validation for Linux/musl, macOS and Windows, real TCP/UDP and SIP003 interoperability coverage, and recorded performance tradeoffs. All 21 hosted checks pass at the reviewed PR head 8d504e6218.
32 lines
969 B
C
32 lines
969 B
C
/* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
#ifndef SS_MBEDTLS_CONFIG_H
|
|
#define SS_MBEDTLS_CONFIG_H
|
|
/* Only the primitives used by Shadowsocks. No TLS, X.509, networking, public
|
|
* key operations, PSA storage or independent entropy subsystem. Randomness
|
|
* is supplied by libsodium. MD5/SHA1 remain required by legacy AEAD key
|
|
* derivation even when legacy stream ciphers are disabled. */
|
|
#define MBEDTLS_AES_C
|
|
#define MBEDTLS_CIPHER_C
|
|
#define MBEDTLS_GCM_C
|
|
#define MBEDTLS_MD_C
|
|
#define MBEDTLS_MD5_C
|
|
#define MBEDTLS_SHA1_C
|
|
#define MBEDTLS_SHA256_C
|
|
#define MBEDTLS_SHA512_C
|
|
#define MBEDTLS_PLATFORM_C
|
|
#define MBEDTLS_VERSION_C
|
|
#define MBEDTLS_VERSION_FEATURES
|
|
#define MBEDTLS_CIPHER_MODE_CTR
|
|
#define MBEDTLS_CIPHER_MODE_CFB
|
|
#define MBEDTLS_CAMELLIA_C
|
|
#if defined(__x86_64__) || defined(_M_X64)
|
|
#define MBEDTLS_AESNI_C
|
|
#if defined(__GNUC__) || defined(__clang__)
|
|
#define MBEDTLS_HAVE_ASM
|
|
#endif
|
|
#endif
|
|
#if defined(__aarch64__)
|
|
#define MBEDTLS_AESCE_C
|
|
#endif
|
|
#endif
|