diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Makefile.am | 21 | ||||
-rw-r--r-- | include/compat/sys/types.h | 12 | ||||
-rw-r--r-- | include/compat/unistd.h | 4 | ||||
-rw-r--r-- | include/tls.h | 14 |
4 files changed, 14 insertions, 37 deletions
diff --git a/include/Makefile.am b/include/Makefile.am index aed6721..d76e32e 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -1,47 +1,28 @@ include $(top_srcdir)/Makefile.am.common -EXTRA_DIST = CMakeLists.txt - -SUBDIRS = openssl - -noinst_HEADERS = pqueue.h -noinst_HEADERS += compat/dirent.h -noinst_HEADERS += compat/dirent_msvc.h -noinst_HEADERS += compat/endian.h -noinst_HEADERS += compat/err.h -noinst_HEADERS += compat/fcntl.h +noinst_HEADERS = compat/fcntl.h noinst_HEADERS += compat/limits.h noinst_HEADERS += compat/netdb.h -noinst_HEADERS += compat/poll.h noinst_HEADERS += compat/pthread.h -noinst_HEADERS += compat/readpassphrase.h -noinst_HEADERS += compat/resolv.h noinst_HEADERS += compat/stdio.h noinst_HEADERS += compat/stdlib.h noinst_HEADERS += compat/string.h -noinst_HEADERS += compat/syslog.h noinst_HEADERS += compat/time.h noinst_HEADERS += compat/unistd.h noinst_HEADERS += compat/win32netcompat.h noinst_HEADERS += compat/arpa/inet.h -noinst_HEADERS += compat/arpa/nameser.h noinst_HEADERS += compat/netinet/in.h noinst_HEADERS += compat/netinet/ip.h noinst_HEADERS += compat/netinet/tcp.h -noinst_HEADERS += compat/sys/_null.h noinst_HEADERS += compat/sys/ioctl.h noinst_HEADERS += compat/sys/mman.h noinst_HEADERS += compat/sys/param.h -noinst_HEADERS += compat/sys/queue.h -noinst_HEADERS += compat/sys/select.h noinst_HEADERS += compat/sys/socket.h noinst_HEADERS += compat/sys/stat.h -noinst_HEADERS += compat/sys/tree.h noinst_HEADERS += compat/sys/time.h noinst_HEADERS += compat/sys/types.h -noinst_HEADERS += compat/sys/uio.h include_HEADERS = tls.h diff --git a/include/compat/sys/types.h b/include/compat/sys/types.h index 4967843..59664bc 100644 --- a/include/compat/sys/types.h +++ b/include/compat/sys/types.h @@ -45,18 +45,6 @@ typedef SSIZE_T ssize_t; #endif -#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__) -# define __bounded__(x, y, z) -#endif - -#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead) -#ifdef _MSC_VER -#define __dead __declspec(noreturn) -#else -#define __dead __attribute__((__noreturn__)) -#endif -#endif - #ifdef _WIN32 #define __warn_references(sym,msg) #else diff --git a/include/compat/unistd.h b/include/compat/unistd.h index 5e6ab1d..2583a6e 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h @@ -64,6 +64,10 @@ int getentropy(void *buf, size_t buflen); #endif #endif +#ifndef HAVE_GETOPT +#include <getopt.h> +#endif + #ifndef HAVE_GETPAGESIZE int getpagesize(void); #endif diff --git a/include/tls.h b/include/tls.h index 0c9e497..59b2c4c 100644 --- a/include/tls.h +++ b/include/tls.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls.h,v 1.62 2022/03/24 15:56:34 tb Exp $ */ +/* $OpenBSD: tls.h,v 1.63 2023/07/02 06:37:27 beck Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -36,14 +36,18 @@ typedef SSIZE_T ssize_t; #define TLS_API 20200120 -#define TLS_PROTOCOL_TLSv1_0 (1 << 1) -#define TLS_PROTOCOL_TLSv1_1 (1 << 2) +/* + * Deprecated versions of TLS. Using these effectively selects + * the minimum supported version. + */ +#define TLS_PROTOCOL_TLSv1_0 (1 << 3) +#define TLS_PROTOCOL_TLSv1_1 (1 << 3) +/* Supported versions of TLS */ #define TLS_PROTOCOL_TLSv1_2 (1 << 3) #define TLS_PROTOCOL_TLSv1_3 (1 << 4) #define TLS_PROTOCOL_TLSv1 \ - (TLS_PROTOCOL_TLSv1_0|TLS_PROTOCOL_TLSv1_1|\ - TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) + (TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) #define TLS_PROTOCOLS_ALL TLS_PROTOCOL_TLSv1 #define TLS_PROTOCOLS_DEFAULT (TLS_PROTOCOL_TLSv1_2|TLS_PROTOCOL_TLSv1_3) |