OpenVPN 3 Core Library
Loading...
Searching...
No Matches
cliconstants.hpp
Go to the documentation of this file.
1// OpenVPN -- An application to securely tunnel IP networks
2// over a single port, with support for SSL/TLS-based
3// session authentication and key exchange,
4// packet encryption, packet authentication, and
5// packet compression.
6//
7// Copyright (C) 2012- OpenVPN Inc.
8//
9// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception
10//
11
12#ifndef OPENVPN_CLIENT_CLICONSTANTS_H
13#define OPENVPN_CLIENT_CLICONSTANTS_H
14
15// Various sanity checks for different limits on OpenVPN clients
16
18enum
19{
20 MAX_PROFILE_SIZE = 262144, // maximum size of an OpenVPN configuration file
21 MAX_PUSH_SIZE = 262144, // maximum size of aggregate data that can be pushed to a client
22 MAX_LINE_SIZE = 512, // maximum size of an OpenVPN configuration file line
23 MAX_DIRECTIVE_SIZE = 64, // maximum number of chars in an OpenVPN directive
24 OPT_OVERHEAD = 64, // bytes overhead of one option/directive, for accounting purposes
25 TERM_OVERHEAD = 16, // bytes overhead of one argument in an option, for accounting purposes
26 MAX_SERVER_LIST_SIZE = 4096, // maximum server list size, i.e. "setenv SERVER ..."
27};
28} // namespace openvpn::ProfileParseLimits
29
30#endif