diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2020-05-16 16:20:43 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2020-05-16 16:20:43 -0400 |
commit | 36d1087611bf96b0cd716666fc8c4a2d168fa501 (patch) | |
tree | d7e1f264f4d9cb19fbff1f616385152ecb194d63 /src/interfaces/libpq/fe-secure.c | |
parent | 1cbc143f06113cbd1b94790c0781aa4b410cffc2 (diff) | |
download | postgresql-36d1087611bf96b0cd716666fc8c4a2d168fa501.tar.gz postgresql-36d1087611bf96b0cd716666fc8c4a2d168fa501.zip |
Rename PQsetSSLKeyPassHook and friends
4dc6355210 provided a way for libraries and clients to modify how libpq
handles client certificate passphrases, by installing a hook. However,
these routines are quite specific to how OpenSSL works, so it's
misleading and not future-proof to have these names not refer to OpenSSL.
Change all the names to add "_OpenSSL" after "Hook", and fix the docs
accordingly.
Author: Daniel Gustafsson
Discussion: https://postgr.es/m/981DE552-E399-45C2-9F60-3F0E3770CC61@yesql.se
Diffstat (limited to 'src/interfaces/libpq/fe-secure.c')
-rw-r--r-- | src/interfaces/libpq/fe-secure.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index b455b45e964..3311fd7a5bd 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -431,20 +431,20 @@ PQsslAttributeNames(PGconn *conn) return result; } -PQsslKeyPassHook_type -PQgetSSLKeyPassHook(void) +PQsslKeyPassHook_OpenSSL_type +PQgetSSLKeyPassHook_OpenSSL(void) { return NULL; } void -PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook) +PQsetSSLKeyPassHook_OpenSSL(PQsslKeyPassHook_OpenSSL_type hook) { return; } int -PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn) +PQdefaultSSLKeyPassHook_OpenSSL(char *buf, int size, PGconn *conn) { return 0; } |