summaryrefslogtreecommitdiff
path: root/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2017-01-23 14:35:43 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2017-01-23 14:35:43 +0000
commitd9bc1e1ab0fde9b55b05c03d238a989dbd6d5f3d (patch)
treeaf2c41fa11aac6991f587d0ab4fd0667a8db3e79 /lib/libssl/ssl_locl.h
parent3d4b887ebf11a989ddd51202bc5ac33e377c6270 (diff)
Move options and mode from SSL_CTX and SSL to internal, since these can be
set and cleared via existing functions.
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r--lib/libssl/ssl_locl.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index df1e12bf398..d0d72cbfdf6 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.161 2017/01/23 13:36:13 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.162 2017/01/23 14:35:42 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -434,6 +434,9 @@ typedef struct ssl_ctx_internal_st {
uint16_t min_version;
uint16_t max_version;
+ unsigned long options;
+ unsigned long mode;
+
/* If this callback is not null, it will be called each
* time a session id is added to the cache. If this function
* returns 1, it means that the callback will do a
@@ -612,6 +615,9 @@ typedef struct ssl_internal_st {
uint16_t min_version;
uint16_t max_version;
+ unsigned long options; /* protocol behaviour */
+ unsigned long mode; /* API behaviour */
+
/* Next protocol negotiation. For the client, this is the protocol that
* we sent in NextProtocol and is set when handling ServerHello
* extensions.