From aaf72974672e4f2af2053247b63ef6f06bdc80c0 Mon Sep 17 00:00:00 2001 From: James Yonan Date: Tue, 1 Jun 2010 07:12:27 +0000 Subject: Implemented a key/value auth channel from client to server. Version 2.1.1i git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5668 e7ae566f-a301-0410-adde-c780ea21d3b5 --- ssl.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ssl.h') diff --git a/ssl.h b/ssl.h index 8302402..e895bb2 100644 --- a/ssl.h +++ b/ssl.h @@ -431,6 +431,9 @@ struct tls_options bool single_session; #ifdef ENABLE_OCC bool disable_occ; +#endif +#ifdef ENABLE_PUSH_PEER_INFO + bool push_peer_info; #endif int transition_window; int handshake_window; @@ -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 /* -- cgit v1.2.3