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
17
namespace
openvpn::ProfileParseLimits
{
18
enum
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
openvpn::ProfileParseLimits
Definition
cliconstants.hpp:17
openvpn::ProfileParseLimits::MAX_PUSH_SIZE
@ MAX_PUSH_SIZE
Definition
cliconstants.hpp:21
openvpn::ProfileParseLimits::MAX_LINE_SIZE
@ MAX_LINE_SIZE
Definition
cliconstants.hpp:22
openvpn::ProfileParseLimits::MAX_SERVER_LIST_SIZE
@ MAX_SERVER_LIST_SIZE
Definition
cliconstants.hpp:26
openvpn::ProfileParseLimits::OPT_OVERHEAD
@ OPT_OVERHEAD
Definition
cliconstants.hpp:24
openvpn::ProfileParseLimits::TERM_OVERHEAD
@ TERM_OVERHEAD
Definition
cliconstants.hpp:25
openvpn::ProfileParseLimits::MAX_DIRECTIVE_SIZE
@ MAX_DIRECTIVE_SIZE
Definition
cliconstants.hpp:23
openvpn::ProfileParseLimits::MAX_PROFILE_SIZE
@ MAX_PROFILE_SIZE
Definition
cliconstants.hpp:20
openvpn
client
cliconstants.hpp
Generated by
1.9.8