diff options
author | Stephen Frost <sfrost@snowman.net> | 2019-04-04 11:11:46 -0400 |
---|---|---|
committer | Stephen Frost <sfrost@snowman.net> | 2019-04-04 11:11:46 -0400 |
commit | 87e16db5ebe7256712999ec690899237029b9ae7 (patch) | |
tree | 54d7d3d207ff2047386c6a52e0367b480d1ca625 /src | |
parent | 3eb77eba5a51780d5cf52cd66a9844cd4d26feb0 (diff) | |
download | postgresql-87e16db5ebe7256712999ec690899237029b9ae7.tar.gz postgresql-87e16db5ebe7256712999ec690899237029b9ae7.zip |
Move the be_gssapi_get_* prototypes
The be_gssapi_get_* prototypes were put close to similar ones for SSL-
but a bit too close since that meant they ended up only being included
for SSL-enabled builds. Move those to be under ENABLE_GSS instead.
Pointed out by Tom.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/libpq/libpq-be.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h index 059218c85a3..b135ef9d9fd 100644 --- a/src/include/libpq/libpq-be.h +++ b/src/include/libpq/libpq-be.h @@ -270,13 +270,6 @@ extern void be_tls_get_peer_issuer_name(Port *port, char *ptr, size_t len); extern void be_tls_get_peer_serial(Port *port, char *ptr, size_t len); /* - * Return information about the GSSAPI authenticated connection - */ -extern bool be_gssapi_get_auth(Port *port); -extern bool be_gssapi_get_enc(Port *port); -extern const char *be_gssapi_get_princ(Port *port); - -/* * Get the server certificate hash for SCRAM channel binding type * tls-server-end-point. * @@ -294,6 +287,13 @@ extern char *be_tls_get_certificate_hash(Port *port, size_t *len); #endif /* USE_SSL */ #ifdef ENABLE_GSS +/* + * Return information about the GSSAPI authenticated connection + */ +extern bool be_gssapi_get_auth(Port *port); +extern bool be_gssapi_get_enc(Port *port); +extern const char *be_gssapi_get_princ(Port *port); + /* Read and write to a GSSAPI-encrypted connection. */ extern ssize_t be_gssapi_read(Port *port, void *ptr, size_t len); extern ssize_t be_gssapi_write(Port *port, void *ptr, size_t len); |