mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
vtls: make sure all _data_pending() functions return bool
This patch makes the signature of the _data_pending() functions consistent among the SSL backends, in preparation for unifying the way all SSL backends are accessed. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
b31d1dcddb
commit
2568cfed2d
@ -1002,7 +1002,7 @@ void Curl_mbedtls_cleanup(void)
|
||||
(void)Curl_polarsslthreadlock_thread_cleanup();
|
||||
}
|
||||
|
||||
int Curl_mbedtls_data_pending(const struct connectdata *conn, int sockindex)
|
||||
bool Curl_mbedtls_data_pending(const struct connectdata *conn, int sockindex)
|
||||
{
|
||||
return mbedtls_ssl_get_bytes_avail(&conn->ssl[sockindex].ssl) != 0;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
/* Called on first use mbedTLS, setup threading if supported */
|
||||
int Curl_mbedtls_init(void);
|
||||
void Curl_mbedtls_cleanup(void);
|
||||
int Curl_mbedtls_data_pending(const struct connectdata *conn, int sockindex);
|
||||
bool Curl_mbedtls_data_pending(const struct connectdata *conn, int sockindex);
|
||||
|
||||
CURLcode Curl_mbedtls_connect(struct connectdata *conn, int sockindex);
|
||||
|
||||
|
@ -865,7 +865,7 @@ void Curl_polarssl_cleanup(void)
|
||||
}
|
||||
|
||||
|
||||
int Curl_polarssl_data_pending(const struct connectdata *conn, int sockindex)
|
||||
bool Curl_polarssl_data_pending(const struct connectdata *conn, int sockindex)
|
||||
{
|
||||
return ssl_get_bytes_avail(&conn->ssl[sockindex].ssl) != 0;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
/* Called on first use PolarSSL, setup threading if supported */
|
||||
int Curl_polarssl_init(void);
|
||||
void Curl_polarssl_cleanup(void);
|
||||
int Curl_polarssl_data_pending(const struct connectdata *conn, int sockindex);
|
||||
bool Curl_polarssl_data_pending(const struct connectdata *conn, int sockindex);
|
||||
|
||||
|
||||
CURLcode Curl_polarssl_connect(struct connectdata *conn, int sockindex);
|
||||
|
Loading…
Reference in New Issue
Block a user