2018-08-11 20:27:14 -05:00
|
|
|
// SPDX-License-Identifier: AGPL-1.0-only
|
|
|
|
// Copyright (C) 2018 Ludvig Strigeus <info@tunsafe.com>. All Rights Reserved.
|
2018-08-08 06:12:38 -05:00
|
|
|
#pragma once
|
|
|
|
|
2018-12-16 15:27:24 -06:00
|
|
|
#define TUNSAFE_VERSION_STRING "TunSafe 1.5-rc2"
|
|
|
|
#define TUNSAFE_VERSION_STRING_LONG "TunSafe 1.5-rc2"
|
2018-08-08 06:12:38 -05:00
|
|
|
|
2018-12-16 15:27:24 -06:00
|
|
|
// Enable support for handshake extensions
|
2018-11-19 14:24:43 -06:00
|
|
|
#define WITH_HANDSHAKE_EXT 1
|
2018-12-16 15:27:24 -06:00
|
|
|
|
|
|
|
// Whether to enable the boolean features functionality
|
2018-12-10 16:14:09 -06:00
|
|
|
#define WITH_BOOLEAN_FEATURES 1
|
2018-12-16 15:27:24 -06:00
|
|
|
|
|
|
|
// Enable support for header obfuscation
|
|
|
|
#define WITH_HEADER_OBFUSCATION 1
|
|
|
|
|
|
|
|
// Enable support for two-factor authentication (requires WITH_HANDSHAKE_EXT)
|
|
|
|
#define WITH_TWO_FACTOR_AUTHENTICATION 1
|
|
|
|
|
|
|
|
// Whether to enable the short MAC feature, that uses an 8-byte MAC instead of 16-byte (Saves overhead)
|
|
|
|
#define WITH_SHORT_MAC 0
|
|
|
|
|
|
|
|
// Enable support for the keypair->compress_handler_ feature
|
2018-11-20 13:25:27 -06:00
|
|
|
#define WITH_PACKET_COMPRESSION 0
|
|
|
|
|
2018-12-16 15:27:24 -06:00
|
|
|
// Enable support for short (down to 2 byte headers) instead of 16 bytes
|
2018-08-08 06:12:38 -05:00
|
|
|
#define WITH_SHORT_HEADERS 0
|
2018-11-20 13:25:27 -06:00
|
|
|
|
2018-12-16 15:27:24 -06:00
|
|
|
// Enable support for alternative cipher suites
|
|
|
|
#define WITH_CIPHER_SUITES 0
|
2018-11-20 13:25:27 -06:00
|
|
|
|
2018-12-16 15:27:24 -06:00
|
|
|
#define WITH_AVX512_OPTIMIZATIONS 0
|
|
|
|
#define WITH_BENCHMARK 0
|
2018-11-20 13:25:27 -06:00
|
|
|
|
2018-10-07 12:22:17 -05:00
|
|
|
// Use bytell hashmap instead. Only works in 64-bit builds
|
|
|
|
#define WITH_BYTELL_HASHMAP 0
|