summaryrefslogtreecommitdiffstats
path: root/ssl.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-09-28 07:27:22 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2009-09-28 07:27:22 +0000
commite1e977f3cc52e230031f8770b0a9c977eab7db69 (patch)
treeb388e4c981ee17ebc53e4baf621b103cf839fc00 /ssl.h
parent3eee126eba7314e203a50b6398fa5333cbf12ff7 (diff)
downloadopenvpn-e1e977f3cc52e230031f8770b0a9c977eab7db69.tar.gz
openvpn-e1e977f3cc52e230031f8770b0a9c977eab7db69.tar.xz
openvpn-e1e977f3cc52e230031f8770b0a9c977eab7db69.zip
Added --server-poll-timeout option : when polling possible remote
servers to connect to in a round-robin fashion, spend no more than n seconds waiting for a response before trying the next server. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5010 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'ssl.h')
-rw-r--r--ssl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ssl.h b/ssl.h
index 910c77c..e7ccb42 100644
--- a/ssl.h
+++ b/ssl.h
@@ -703,6 +703,12 @@ bool tls_authenticate_key (struct tls_multi *multi, const unsigned int mda_key_i
*/
static inline bool
+tls_initial_packet_received (const struct tls_multi *multi)
+{
+ return multi->n_sessions > 0;
+}
+
+static inline bool
tls_test_auth_deferred_interval (const struct tls_multi *multi)
{
if (multi)