OpenVPN 3 Core Library
Loading...
Searching...
No Matches
xkey_msg_compat.h
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) 2022- OpenVPN Inc.
8// Copyright (C) 2021-2022 Selva Nair <selva.nair@gmail.com>
9//
10// SPDX-License-Identifier: MPL-2.0 OR AGPL-3.0-only WITH openvpn3-openssl-exception OR GPL-2.0-only WITH openvpn-openssl-exception
11//
12
13
14#define msg(flags, ...) openvpn_msg_xkey_compat(flags, __VA_ARGS__);
15#define dmsg(flags, ...) openvpn_msg_xkey_compat(flags, __VA_ARGS__);
16
17/* dummy definitions for the flags, not identical with the real values from
18 * OpenVPN 2.x */
19#define D_XKEY 1u
20#define M_NOLF 2u
21#define M_WARN 4u
22#define M_NOPREFIX 8u
23#define M_NONFATAL 16u
24
25void openvpn_msg_xkey_compat(unsigned int flags, const char *format, ...)
26#ifdef __GNUC__
27__attribute__ ((format(__printf__, 2, 3)))
28#endif
29;
reroute_gw flags
void openvpn_msg_xkey_compat(unsigned int flags, const char *format,...)