1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-25 01:02:05 +03:00

Extract common bits from OpenSSL implementation

Some things in be-secure-openssl.c and fe-secure-openssl.c were not
actually specific to OpenSSL but could also be used by other
implementations.  In order to avoid copy-and-pasting, move some of that
code to common files.
This commit is contained in:
Peter Eisentraut
2018-01-19 10:17:56 -05:00
parent f966101d19
commit 1c2183403b
5 changed files with 81 additions and 75 deletions

View File

@ -1547,14 +1547,6 @@ SSLerrfree(char *buf)
/* SSL information functions */
/* ------------------------------------------------------------ */
int
PQsslInUse(PGconn *conn)
{
if (!conn)
return 0;
return conn->ssl_in_use;
}
/*
* Return pointer to OpenSSL object.
*/