diff options
author | 2015-09-29 13:10:53 +0000 | |
---|---|---|
committer | 2015-09-29 13:10:53 +0000 | |
commit | fc5c813d12eafcf3fd0e29516a5c8cd3438177ef (patch) | |
tree | fe6078fa80450db9b636768d639a48a32fad7ac9 /lib/libtls/tls_internal.h | |
parent | make the bpf filters a bpf_program instead of an array of bpf_insn. (diff) | |
download | wireguard-openbsd-fc5c813d12eafcf3fd0e29516a5c8cd3438177ef.tar.xz wireguard-openbsd-fc5c813d12eafcf3fd0e29516a5c8cd3438177ef.zip |
Instead of declaring a union in multiple places, move it to tls_internal.h.
ok deraadt@
Diffstat (limited to 'lib/libtls/tls_internal.h')
-rw-r--r-- | lib/libtls/tls_internal.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libtls/tls_internal.h b/lib/libtls/tls_internal.h index 8128c05dfce..b070b326c11 100644 --- a/lib/libtls/tls_internal.h +++ b/lib/libtls/tls_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_internal.h,v 1.24 2015/09/14 16:16:38 jsing Exp $ */ +/* $OpenBSD: tls_internal.h,v 1.25 2015/09/29 13:10:53 jsing Exp $ */ /* * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> @@ -19,6 +19,9 @@ #ifndef HEADER_TLS_INTERNAL_H #define HEADER_TLS_INTERNAL_H +#include <arpa/inet.h> +#include <netinet/in.h> + #include <openssl/ssl.h> #define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" @@ -26,6 +29,11 @@ #define TLS_CIPHERS_COMPAT "ALL:!aNULL:!eNULL" #define TLS_CIPHERS_DEFAULT "TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE" +union tls_addr { + struct in_addr ip4; + struct in6_addr ip6; +}; + struct tls_config { const char *ca_file; const char *ca_path; |