summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl.h
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2017-01-23 08:08:06 +0000
committerbeck <beck@openbsd.org>2017-01-23 08:08:06 +0000
commitd2a38c8ae537989d0e986356a383eb44b37a2cb5 (patch)
tree3cf685b3bcb37a7cd823730cd675d9ae504399b4 /lib/libssl/ssl.h
parentAdd drivers for the Raspberry Pi 3. (diff)
downloadwireguard-openbsd-d2a38c8ae537989d0e986356a383eb44b37a2cb5.tar.xz
wireguard-openbsd-d2a38c8ae537989d0e986356a383eb44b37a2cb5.zip
move back read_hash and enc_read_ctx into ssl_st. wpa_supplicant and
other perversions touches them sickly and unnaturally.
Diffstat (limited to 'lib/libssl/ssl.h')
-rw-r--r--lib/libssl/ssl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/libssl/ssl.h b/lib/libssl/ssl.h
index 4069fcd024a..678246b23e4 100644
--- a/lib/libssl/ssl.h
+++ b/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl.h,v 1.114 2017/01/23 06:45:30 beck Exp $ */
+/* $OpenBSD: ssl.h,v 1.115 2017/01/23 08:08:06 beck Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -894,6 +894,14 @@ struct ssl_st {
SSL_CTX * initial_ctx; /* initial ctx, used to store sessions */
#define session_ctx initial_ctx
+ /*
+ * XXX really should be internal, but is
+ * touched unnaturally by wpa-supplicant
+ * and freeradius and other perversions
+ */
+ EVP_CIPHER_CTX *enc_read_ctx; /* cryptographic state */
+ EVP_MD_CTX *read_hash; /* used for mac generation */
+
struct ssl_internal_st *internal;
};