summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_locl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2015-01-23 03:29:50 +0100
committerDr. Stephen Henson <steve@openssl.org>2015-02-03 15:50:07 +0100
commit6f152a15d433c249b4b73d0a7968d4ea63925a24 (patch)
tree62cc815599d6ac4a99a4925a80611bf612b40d4f /ssl/ssl_locl.h
parentCheck PKCS#8 pkey field is valid before cleansing. (diff)
downloadopenssl-6f152a15d433c249b4b73d0a7968d4ea63925a24.tar.xz
openssl-6f152a15d433c249b4b73d0a7968d4ea63925a24.zip
Add flags field to SSL_SESSION.
Add a "flags" field to SSL_SESSION. This will contain various flags such as encrypt-then-mac and extended master secret support. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl/ssl_locl.h')
-rw-r--r--ssl/ssl_locl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ssl/ssl_locl.h b/ssl/ssl_locl.h
index 56d6108ea3..513940fc3e 100644
--- a/ssl/ssl_locl.h
+++ b/ssl/ssl_locl.h
@@ -597,6 +597,7 @@ struct ssl_method_st {
* Ticket [10] EXPLICIT OCTET STRING, -- session ticket (clients only)
* Compression_meth [11] EXPLICIT OCTET STRING, -- optional compression method
* SRP_username [ 12 ] EXPLICIT OCTET STRING -- optional SRP username
+ * flags [ 13 ] EXPLICIT INTEGER -- optional flags
* }
* Look in ssl/ssl_asn1.c for more details
* I'm using EXPLICIT tags so I can read the damn things using asn1parse :-).
@@ -674,8 +675,12 @@ struct ssl_session_st {
# ifndef OPENSSL_NO_SRP
char *srp_username;
# endif
+ long flags;
};
+/* Extended master secret support */
+# define SSL_SESS_FLAG_EXTMS 0x1
+
# ifndef OPENSSL_NO_SRP