diff options
author | Max Dymond <max.dymond@metaswitch.com> | 2017-05-31 12:09:56 +0100 |
---|---|---|
committer | ng0 <ng0@infotropique.org> | 2017-08-22 15:29:36 +0000 |
commit | 7456fc0f2695c69c32d22f44ed29afd103282e46 (patch) | |
tree | 276b1cb2c0008b8033a05f79ef3855bd01f26dd4 /lib/ldap.c | |
parent | a8526897874613e5712f2310f4c7572f933c33e6 (diff) | |
download | gnurl-7456fc0f2695c69c32d22f44ed29afd103282e46.tar.gz gnurl-7456fc0f2695c69c32d22f44ed29afd103282e46.tar.bz2 gnurl-7456fc0f2695c69c32d22f44ed29afd103282e46.zip |
handler: refactor connection checking
Add a new type of callback to Curl_handler which performs checks on
the connection. Alter RTSP so that it uses this callback to do its
own check on connection health.
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index 79e84d94e..421393f11 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -150,6 +150,7 @@ const struct Curl_handler Curl_handler_ldap = { ZERO_NULL, /* perform_getsock */ ZERO_NULL, /* disconnect */ ZERO_NULL, /* readwrite */ + ZERO_NULL, /* connection_check */ PORT_LDAP, /* defport */ CURLPROTO_LDAP, /* protocol */ PROTOPT_NONE /* flags */ @@ -175,6 +176,7 @@ const struct Curl_handler Curl_handler_ldaps = { ZERO_NULL, /* perform_getsock */ ZERO_NULL, /* disconnect */ ZERO_NULL, /* readwrite */ + ZERO_NULL, /* connection_check */ PORT_LDAPS, /* defport */ CURLPROTO_LDAPS, /* protocol */ PROTOPT_SSL /* flags */ |