2 /* Configuration settings */
3 #define CONFIGURE_DEFINES "N/A"
5 /* Enable async push */
6 #cmakedefine ENABLE_ASYNC_PUSH
8 /* Use mbed TLS library */
9 #cmakedefine ENABLE_CRYPTO_MBEDTLS
12 #cmakedefine ENABLE_CRYPTO_OPENSSL
14 /* Use wolfSSL crypto library */
15 #cmakedefine ENABLE_CRYPTO_WOLFSSL
17 /* Enable shared data channel offload */
18 #cmakedefine ENABLE_DCO
20 /* Enable debugging support (needed for verb>=4) */
21 #define ENABLE_DEBUG 1
23 /* We have persist tun capability */
24 #cmakedefine ENABLE_FEATURE_TUN_PERSIST
26 /* Enable internal fragmentation support */
27 #define ENABLE_FRAGMENT 1
29 /* Enable linux data channel offload */
30 #cmakedefine ENABLE_LINUXDCO
32 /* Enable LZ4 compression library */
33 #cmakedefine ENABLE_LZ4
35 /* Enable LZO compression library */
36 #cmakedefine ENABLE_LZO
38 /* Enable management server capability */
39 #define ENABLE_MANAGEMENT 1
41 /* Enable OFB and CFB cipher modes */
42 #define ENABLE_OFB_CFB_MODE
45 #cmakedefine ENABLE_PKCS11
47 /* Enable plug-in support */
48 #define ENABLE_PLUGIN 1
50 /* Enable TCP Server port sharing */
51 #cmakedefine ENABLE_PORT_SHARE
54 #cmakedefine ENABLE_SELINUX
56 /* enable sitnl support */
57 #cmakedefine ENABLE_SITNL
59 /* Enable systemd integration */
60 /* #undef ENABLE_SYSTEMD */
62 /* Enable --x509-username-field feature */
63 #cmakedefine ENABLE_X509ALTUSERNAME
65 /* Compiler supports anonymous unions */
66 #define HAVE_ANONYMOUS_UNION_SUPPORT
68 /* Define to 1 if you have the <arpa/inet.h> header file. */
69 #cmakedefine HAVE_ARPA_INET_H 1
71 /* Define to 1 if you have the `basename' function. */
72 #cmakedefine HAVE_BASENAME
74 /* Define to 1 if you have the `chdir' function. */
75 #cmakedefine HAVE_CHDIR
77 /* Define to 1 if you have the `chroot' function. */
78 #cmakedefine HAVE_CHROOT
80 /* Define to 1 if you have the `chsize' function. */
81 #cmakedefine HAVE_CHSIZE
83 /* struct cmsghdr needed for extended socket error support */
84 #cmakedefine HAVE_CMSGHDR
86 /* git version information in config-version.h */
87 #cmakedefine HAVE_CONFIG_VERSION_H
89 /* Define to 1 if you have the `daemon' function. */
90 #cmakedefine HAVE_DAEMON
92 /* Define to 1 if you have the declaration of `SO_MARK', and to 0 if you
94 #cmakedefine01 HAVE_DECL_SO_MARK
96 /* Define to 1 if you have the <direct.h> header file. */
97 #cmakedefine HAVE_DIRECT_H
99 /* Define to 1 if you have the `dirname' function. */
100 #cmakedefine HAVE_DIRNAME
102 /* Define to 1 if you have the <dlfcn.h> header file. */
103 #cmakedefine HAVE_DLFCN_H
105 /* Define to 1 if you have the <dmalloc.h> header file. */
106 #cmakedefine HAVE_DMALLOC_H
108 /* Define to 1 if you have the `dup' function. */
109 #cmakedefine HAVE_DUP
111 /* Define to 1 if you have the `dup2' function. */
112 #cmakedefine HAVE_DUP2
114 /* Define to 1 if you have the `epoll_create' function. */
115 #cmakedefine HAVE_EPOLL_CREATE
117 /* Define to 1 if you have the <err.h> header file. */
118 #cmakedefine HAVE_ERR_H
120 /* Crypto library supports keying material exporter */
121 #define HAVE_EXPORT_KEYING_MATERIAL 1
123 /* Define to 1 if you have the <fcntl.h> header file. */
124 #cmakedefine HAVE_FCNTL_H
126 /* Define to 1 if you have the `fork' function. */
127 #cmakedefine HAVE_FORK
128 #cmakedefine HAVE_EXECVE
130 /* Define to 1 if you have the `ftruncate' function. */
131 #cmakedefine HAVE_FTRUNCATE
133 /* Define to 1 if you have the `getgrnam' function. */
134 #cmakedefine HAVE_GETGRNAM
136 /* Define to 1 if you have the `getpeereid' function. */
137 #cmakedefine HAVE_GETPEEREID
139 /* Define to 1 if you have the `getpwnam' function. */
140 #cmakedefine HAVE_GETPWNAM
142 /* Define to 1 if you have the `getrlimit' function. */
143 #cmakedefine HAVE_GETRLIMIT
145 /* Define to 1 if you have the `getsockname' function. */
146 #cmakedefine HAVE_GETSOCKNAME
148 /* Define to 1 if you have the `gettimeofday' function. */
149 #cmakedefine HAVE_GETTIMEOFDAY
151 /* Define to 1 if you have the <grp.h> header file. */
152 #cmakedefine HAVE_GRP_H
154 /* struct in_pktinfo needed for IP_PKTINFO support */
155 #cmakedefine HAVE_IN_PKTINFO
157 /* Define to 1 if you have the <io.h> header file. */
158 #cmakedefine HAVE_IO_H
160 /* struct in_pktinfo.ipi_spec_dst needed for IP_PKTINFO support */
161 #cmakedefine HAVE_IPI_SPEC_DST
163 /* Define to 1 if you have the <libgen.h> header file. */
164 #cmakedefine HAVE_LIBGEN_H
166 /* Define to 1 if you have the <limits.h> header file. */
167 #define HAVE_LIMITS_H 1
169 /* Define to 1 if you have the <linux/if_tun.h> header file. */
170 #cmakedefine HAVE_LINUX_IF_TUN_H
172 /* Define to 1 if you have the <linux/sockios.h> header file. */
173 #cmakedefine HAVE_LINUX_SOCKIOS_H
175 /* Define to 1 if you have the <linux/types.h> header file. */
176 #cmakedefine HAVE_LINUX_TYPES_H
178 /* Define to 1 if you have the <lzoconf.h> header file. */
179 #define HAVE_LZO_CONF_H
181 /* Define to 1 if you have the <lzo1x.h> header file. */
182 #define HAVE_LZO1X_H 1
184 /* Define to 1 if you have the <lzoutil.h> header file. */
185 #define HAVE_LZOUTIL_H 1
187 /* Define to 1 if you have the `mlockall' function. */
188 #cmakedefine HAVE_MLOCKALL
190 /* struct msghdr needed for extended socket error support */
191 #cmakedefine HAVE_MSGHDR
193 /* Define to 1 if you have the <netdb.h> header file. */
194 #cmakedefine HAVE_NETDB_H
196 /* Define to 1 if you have the <netinet/in.h> header file. */
197 #cmakedefine HAVE_NETINET_IN_H
199 /* Define to 1 if you have the <netinet/ip.h> header file. */
200 #cmakedefine HAVE_NETINET_IP_H
202 /* Define to 1 if you have the <netinet/tcp.h> header file. */
203 #undef HAVE_NETINET_TCP_H
205 /* Define to 1 if you have the <net/if.h> header file. */
206 #cmakedefine HAVE_NET_IF_H
208 /* Define to 1 if you have the <net/if_tun.h> header file. */
209 #cmakedefine HAVE_NET_IF_TUN_H
211 /* Define to 1 if you have the <net/if_utun.h> header file. */
212 #cmakedefine01 HAVE_NET_IF_UTUN_H
214 /* Define to 1 if you have the <net/tun/if_tun.h> header file. */
215 #cmakedefine HAVE_NET_TUN_IF_TUN_H
217 /* Define to 1 if you have the `nice' function. */
218 #cmakedefine HAVE_NICE
220 /* Define to 1 if you have the `openlog' function. */
221 #cmakedefine HAVE_OPENLOG
223 /* OpenSSL engine support available */
224 #undef HAVE_OPENSSL_ENGINE
226 /* Define to 1 if you have the `poll' function. */
229 /* Define to 1 if you have the <poll.h> header file. */
230 #cmakedefine HAVE_POLL_H
232 /* Define to 1 if you have the `putenv' function. */
235 /* Define to 1 if you have the <pwd.h> header file. */
236 #cmakedefine HAVE_PWD_H
239 /* Define to 1 if you have the `recvmsg' function. */
240 #cmakedefine HAVE_RECVMSG
241 #cmakedefine HAVE_SENDMSG
243 /* Define to 1 if you have the <resolv.h> header file. */
244 #cmakedefine HAVE_RESOLV_H
246 /* sa_family_t, needed to hold AF_* info */
247 #cmakedefine HAVE_SA_FAMILY_T
249 /* Define to 1 if you have the `sd_booted' function. */
250 #undef HAVE_SD_BOOTED
252 /* Define to 1 if you have the `setgid' function. */
253 #cmakedefine HAVE_SETGID
255 /* Define to 1 if you have the `setgroups' function. */
256 #undef HAVE_SETGROUPS
258 /* Define to 1 if you have the `setsid' function. */
259 #cmakedefine HAVE_SETSID
261 /* Define to 1 if you have the `setsockopt' function. */
262 #define HAVE_SETSOCKOPT 1
264 /* Define to 1 if you have the `setuid' function. */
265 #cmakedefine HAVE_SETUID
267 /* Define to 1 if you have the <signal.h> header file. */
270 /* Define to 1 if you have the `socket' function. */
273 /* struct sock_extended_err needed for extended socket error support */
274 #undef HAVE_SOCK_EXTENDED_ERR
276 /* Define to 1 if you have the `stat' function. */
279 /* Define to 1 if you have the <stdarg.h> header file. */
280 #define HAVE_STDARG_H 1
282 /* Define to 1 if you have the <stdint.h> header file. */
283 #define HAVE_STDINT_H 1
285 /* Define to 1 if you have the <stdio.h> header file. */
286 #define HAVE_STDIO_H 1
288 /* Define to 1 if you have the <stdlib.h> header file. */
289 #define HAVE_STDLIB_H 1
291 /* Define to 1 if you have the `strdup' function. */
294 /* Define to 1 if you have the <strings.h> header file. */
295 #define HAVE_STRINGS_H 1
297 /* Define to 1 if you have the <string.h> header file. */
298 #define HAVE_STRING_H 1
300 /* Define to 1 if you have the `strsep' function. */
303 /* Define to 1 if you have the `syslog' function. */
304 #cmakedefine HAVE_SYSLOG
306 /* Define to 1 if you have the <syslog.h> header file. */
307 #cmakedefine HAVE_SYSLOG_H
309 /* Define to 1 if you have the `system' function. */
312 /* Define to 1 if you have the <systemd/sd-daemon.h> header file. */
313 #undef HAVE_SYSTEMD_SD_DAEMON_H
315 /* Define to 1 if you have the <sys/epoll.h> header file. */
316 #cmakedefine HAVE_SYS_EPOLL_H
318 /* Define to 1 if you have the <sys/file.h> header file. */
319 #undef HAVE_SYS_FILE_H
321 /* Define to 1 if you have the <sys/inotify.h> header file. */
322 #cmakedefine HAVE_SYS_INOTIFY_H
324 /* Define to 1 if you have the <sys/ioctl.h> header file. */
325 #cmakedefine HAVE_SYS_IOCTL_H
327 /* Define to 1 if you have the <sys/kern_control.h> header file. */
328 #undef HAVE_SYS_KERN_CONTROL_H
330 /* Define to 1 if you have the <sys/mman.h> header file. */
331 #cmakedefine HAVE_SYS_MMAN_H
333 /* Define to 1 if you have the <sys/socket.h> header file. */
334 #cmakedefine HAVE_SYS_SOCKET_H
336 /* Define to 1 if you have the <sys/sockio.h> header file. */
337 #undef HAVE_SYS_SOCKIO_H
339 /* Define to 1 if you have the <sys/stat.h> header file. */
340 #define HAVE_SYS_STAT_H 1
342 /* Define to 1 if you have the <sys/time.h> header file. */
343 #cmakedefine HAVE_SYS_TIME_H
345 /* Define to 1 if you have the <sys/types.h> header file. */
346 #undef HAVE_SYS_TYPES_H
348 /* Define to 1 if you have the <sys/uio.h> header file. */
349 #cmakedefine HAVE_SYS_UIO_H
351 /* Define to 1 if you have the <sys/un.h> header file. */
352 #cmakedefine HAVE_SYS_UN_H
354 /* Define to 1 if you have the <sys/wait.h> header file. */
355 #cmakedefine HAVE_SYS_WAIT_H
357 /* Define to 1 if you have the <tap-windows.h> header file. */
358 #undef HAVE_TAP_WINDOWS_H
360 /* Define to 1 if you have the `time' function. */
363 /* Define to 1 if you have the <time.h> header file. */
364 #define HAVE_TIME_H 1
366 /* Define to 1 if you have the <uapi.h> header file. */
369 /* Define to 1 if you have the <unistd.h> header file. */
370 #cmakedefine HAVE_UNISTD_H
372 /* Define to 1 if you have the <valgrind/memcheck.h> header file. */
373 #undef HAVE_VALGRIND_MEMCHECK_H
375 /* Define to 1 if you have the <versionhelpers.h> header file. */
376 #undef HAVE_VERSIONHELPERS_H
378 /* Define to 1 if you have the `vfork' function. */
381 /* Define to 1 if you have the <vfork.h> header file. */
384 /* we always assume a recent mbed TLS version */
385 #define HAVE_MBEDTLS_PSA_CRYPTO_H 1
386 #define HAVE_MBEDTLS_SSL_TLS_PRF 1
387 #define HAVE_MBEDTLS_SSL_SET_EXPORT_KEYS_CB 1
388 #define HAVE_MBEDTLS_CTR_DRBG_UPDATE_RET 1
390 /* Path to ifconfig tool */
391 #define IFCONFIG_PATH "@IFCONFIG_PATH@"
393 /* Path to iproute tool */
394 #define IPROUTE_PATH "@IPROUTE_PATH@"
396 /* Path to route tool */
397 #define ROUTE_PATH "@ROUTE_PATH@"
399 /* OpenVPN version in Windows resource format - string */
400 #define OPENVPN_VERSION_RESOURCE @OPENVPN_VERSION_RESOURCE@
402 /* Name of package */
403 #define PACKAGE "openvpn"
405 /* Define to the address where bug reports for this package should be sent. */
406 #undef PACKAGE_BUGREPORT
408 /* Define to the full name of this package. */
409 #define PACKAGE_NAME "OpenVPN"
411 /* Define to the full name and version of this package. */
412 #define PACKAGE_STRING "OpenVPN @OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
414 /* Define to the version of this package. */
415 #define PACKAGE_VERSION "@OPENVPN_VERSION_MAJOR@.@OPENVPN_VERSION_MINOR@@OPENVPN_VERSION_PATCH@"
417 /* Path to systemd-ask-password tool */
418 #undef SYSTEMD_ASK_PASSWORD_PATH
420 /* systemd is newer than v216 */
421 #define SYSTEMD_NEWER_THAN_216
423 /* The tap-windows id */
424 #define TAP_WIN_COMPONENT_ID "tap0901"
426 /* The tap-windows version number is required for OpenVPN */
427 #define TAP_WIN_MIN_MAJOR 9
429 /* The tap-windows version number is required for OpenVPN */
430 #define TAP_WIN_MIN_MINOR 9
432 /* Are we running on Mac OS X? */
433 #cmakedefine TARGET_DARWIN
435 /* Are we running on FreeBSD? */
436 #cmakedefine TARGET_FREEBSD
438 /* Are we running on Linux? */
439 #cmakedefine TARGET_LINUX
441 /* Are we running WIN32? */
442 #cmakedefine TARGET_WIN32
444 #define TARGET_ALIAS "@CMAKE_SYSTEM_NAME@"
446 /* Enable GNU extensions on systems that have them. */
448 # define _GNU_SOURCE 1
453 #include <inttypes.h>
454 typedef uint32_t in_addr_t;
455 typedef uint16_t in_port_t;
464 #if defined(_MSC_VER)
466 typedef SSIZE_T ssize_t;
467 #define strncasecmp strnicmp
468 #define strcasecmp _stricmp
470 #define S_IRUSR _S_IREAD
471 #define S_IWUSR _S_IWRITE