mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
Put SSL_pending() call behind the new internal SSL API.
It seems likely that any SSL implementation will need a similar call, not just OpenSSL.
This commit is contained in:
@ -186,6 +186,15 @@ pgtls_open_client(PGconn *conn)
|
||||
return open_client_SSL(conn);
|
||||
}
|
||||
|
||||
/*
|
||||
* Is there unread data waiting in the SSL read buffer?
|
||||
*/
|
||||
bool
|
||||
pgtls_read_pending(PGconn *conn)
|
||||
{
|
||||
return SSL_pending(conn->ssl);
|
||||
}
|
||||
|
||||
/*
|
||||
* Read data from a secure connection.
|
||||
*
|
||||
|
Reference in New Issue
Block a user