aboutsummaryrefslogtreecommitdiff
path: root/ssl.h
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2010-06-04 23:18:03 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2010-06-04 23:18:03 +0200
commite0ca5fdf8f54c3c264fcb1ddaf0adbde212d858a (patch)
tree202c201b860f996ccf754d3bfc256658c3694dc4 /ssl.h
parentOCSP_check.sh: new check logic (diff)
parentMerge branch 'svn-BETA21' (diff)
downloadopenvpn-e0ca5fdf8f54c3c264fcb1ddaf0adbde212d858a.tar.xz
Merge branch 'master' into bugfix2.1
Diffstat (limited to 'ssl.h')
-rw-r--r--ssl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ssl.h b/ssl.h
index e909c43..5eeca21 100644
--- a/ssl.h
+++ b/ssl.h
@@ -432,6 +432,9 @@ struct tls_options
#ifdef ENABLE_OCC
bool disable_occ;
#endif
+#ifdef ENABLE_PUSH_PEER_INFO
+ bool push_peer_info;
+#endif
int transition_window;
int handshake_window;
interval_t packet_timeout;
@@ -618,6 +621,12 @@ struct tls_multi
*/
char *client_reason;
+ /*
+ * A multi-line string of general-purpose info received from peer
+ * over control channel.
+ */
+ char *peer_info;
+
/* Time of last call to tls_authentication_status */
time_t tas_last;
#endif
@@ -721,6 +730,12 @@ void tls_deauthenticate (struct tls_multi *multi);
#ifdef MANAGEMENT_DEF_AUTH
bool tls_authenticate_key (struct tls_multi *multi, const unsigned int mda_key_id, const bool auth, const char *client_reason);
+
+static inline char *
+tls_get_peer_info(const struct tls_multi *multi)
+{
+ return multi->peer_info;
+}
#endif
/*