mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:43:32 +03:00
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
This commit is contained in:
parent
9cb69f77f1
commit
d314453037
2 changed files with 5 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue