summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_internal.h
diff options
context:
space:
mode:
authorjsing <>2015-09-29 13:10:53 +0000
committerjsing <>2015-09-29 13:10:53 +0000
commit709c2c131d5d5d3f3c8ecb110b01f3d5afa6ddfd (patch)
tree0c312edb7d4149622244dbffd24cd841a31acbd4 /src/lib/libtls/tls_internal.h
parenta5f8b1e3beaca544186a330e0f61427c67779c1f (diff)
downloadopenbsd-709c2c131d5d5d3f3c8ecb110b01f3d5afa6ddfd.tar.gz
openbsd-709c2c131d5d5d3f3c8ecb110b01f3d5afa6ddfd.tar.bz2
openbsd-709c2c131d5d5d3f3c8ecb110b01f3d5afa6ddfd.zip
Instead of declaring a union in multiple places, move it to tls_internal.h.
ok deraadt@
Diffstat (limited to 'src/lib/libtls/tls_internal.h')
-rw-r--r--src/lib/libtls/tls_internal.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_internal.h b/src/lib/libtls/tls_internal.h
index 8128c05dfc..b070b326c1 100644
--- a/src/lib/libtls/tls_internal.h
+++ b/src/lib/libtls/tls_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls_internal.h,v 1.24 2015/09/14 16:16:38 jsing Exp $ */ 1/* $OpenBSD: tls_internal.h,v 1.25 2015/09/29 13:10:53 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org> 3 * Copyright (c) 2014 Jeremie Courreges-Anglas <jca@openbsd.org>
4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 4 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
@@ -19,6 +19,9 @@
19#ifndef HEADER_TLS_INTERNAL_H 19#ifndef HEADER_TLS_INTERNAL_H
20#define HEADER_TLS_INTERNAL_H 20#define HEADER_TLS_INTERNAL_H
21 21
22#include <arpa/inet.h>
23#include <netinet/in.h>
24
22#include <openssl/ssl.h> 25#include <openssl/ssl.h>
23 26
24#define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem" 27#define _PATH_SSL_CA_FILE "/etc/ssl/cert.pem"
@@ -26,6 +29,11 @@
26#define TLS_CIPHERS_COMPAT "ALL:!aNULL:!eNULL" 29#define TLS_CIPHERS_COMPAT "ALL:!aNULL:!eNULL"
27#define TLS_CIPHERS_DEFAULT "TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE" 30#define TLS_CIPHERS_DEFAULT "TLSv1.2+AEAD+ECDHE:TLSv1.2+AEAD+DHE"
28 31
32union tls_addr {
33 struct in_addr ip4;
34 struct in6_addr ip6;
35};
36
29struct tls_config { 37struct tls_config {
30 const char *ca_file; 38 const char *ca_file;
31 const char *ca_path; 39 const char *ca_path;