summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-03-14 23:40:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-03-14 23:40:46 +0000
commitd31445303711155262c733b4eb34c1d6461a0f41 (patch)
tree02fbb6be5f1d87edc0867782d999954aefb9f16f /lib
parent9cb69f77f1a84706c44984444aaa8c430c50121c (diff)
downloadcurl-d31445303711155262c733b4eb34c1d6461a0f41.tar.gz
yassl doesn't have SSL_get_shutdown() in its OpenSSL() layer so we check for
it and avoid it, even if this cripples the CCC command
Diffstat (limited to 'lib')
-rw-r--r--lib/ssluse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c
index 5bcc3a1e3..815289df7 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -801,6 +801,7 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex)
} /* while()-loop for the select() */
if(data->set.verbose) {
+#ifdef HAVE_SSL_GET_SHUTDOWN
switch(SSL_get_shutdown(connssl->handle)) {
case SSL_SENT_SHUTDOWN:
infof(data, "SSL_get_shutdown() returned SSL_SENT_SHUTDOWN\n");
@@ -813,6 +814,7 @@ int Curl_ossl_shutdown(struct connectdata *conn, int sockindex)
"SSL_RECEIVED__SHUTDOWN\n");
break;
}
+#endif
}
connssl->use = FALSE; /* get back to ordinary socket usage */