summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-10-14 16:44:15 +0000
committerjsing <jsing@openbsd.org>2020-10-14 16:44:15 +0000
commit354e02d3863e354b89a34196bc9a9f80c45196b0 (patch)
tree06d92ad18243f86f8f49d31fef2f9a815fc92c7b /lib/libssl/ssl_locl.h
parentHook up dtls regress. (diff)
downloadwireguard-openbsd-354e02d3863e354b89a34196bc9a9f80c45196b0.tar.xz
wireguard-openbsd-354e02d3863e354b89a34196bc9a9f80c45196b0.zip
Mark DTLS methods as DTLS.
Rather than inferring DTLS from the method version, add a field that marks a method as specifically being DTLS. Have SSL_IS_DTLS condition on this rather than on version. ok tb@
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r--lib/libssl/ssl_locl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index f2e1cb97f8e..12838bf2945 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.304 2020/10/11 12:45:52 guenther Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.305 2020/10/14 16:44:15 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -315,7 +315,7 @@ __BEGIN_HIDDEN_DECLS
/* Check if an SSL structure is using DTLS. */
#define SSL_IS_DTLS(s) \
- (s->method->internal->version == DTLS1_VERSION)
+ (s->method->internal->dtls)
/* See if we use signature algorithms extension. */
#define SSL_USE_SIGALGS(s) \
@@ -362,6 +362,7 @@ __BEGIN_HIDDEN_DECLS
#define NAMED_CURVE_TYPE 3
typedef struct ssl_method_internal_st {
+ int dtls;
int version;
uint16_t min_version;