diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-01-24 17:19:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-01-24 17:19:08 +0000 |
commit | 3239f059b82d2b20a76f7470d8c4a334755f25c4 (patch) | |
tree | 34b450b212571aafbae42050c6a3fab87066492f /lib/sslgen.c | |
parent | 45bac25d90e89110f211dc41461bcdce81e74427 (diff) |
moved the SSL pending function to the proper place and name
Diffstat (limited to 'lib/sslgen.c')
-rw-r--r-- | lib/sslgen.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sslgen.c b/lib/sslgen.c index 33f038017..210ea9af5 100644 --- a/lib/sslgen.c +++ b/lib/sslgen.c @@ -600,3 +600,16 @@ int Curl_ssl_check_cxn(struct connectdata *conn) return -1; /* connection status unknown */ #endif /* USE_SSLEAY */ } + +bool Curl_ssl_data_pending(struct connectdata *conn, + int connindex) +{ +#ifdef USE_SSLEAY + /* OpenSSL-specific */ + if(conn->ssl[connindex].handle) + /* SSL is in use */ + return SSL_pending(conn->ssl[connindex].handle); +#endif + return FALSE; /* nothing pending */ + +} |