Skip to content

Commit 87e16db

Browse files
committed
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.
1 parent 3eb77eb commit 87e16db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/include/libpq/libpq-be.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -269,13 +269,6 @@ extern void be_tls_get_peer_subject_name(Port *port, char *ptr, size_t len);
269269
extern void be_tls_get_peer_issuer_name(Port *port, char *ptr, size_t len);
270270
extern void be_tls_get_peer_serial(Port *port, char *ptr, size_t len);
271271

272-
/*
273-
* Return information about the GSSAPI authenticated connection
274-
*/
275-
extern bool be_gssapi_get_auth(Port *port);
276-
extern bool be_gssapi_get_enc(Port *port);
277-
extern const char *be_gssapi_get_princ(Port *port);
278-
279272
/*
280273
* Get the server certificate hash for SCRAM channel binding type
281274
* tls-server-end-point.
@@ -294,6 +287,13 @@ extern char *be_tls_get_certificate_hash(Port *port, size_t *len);
294287
#endif /* USE_SSL */
295288

296289
#ifdef ENABLE_GSS
290+
/*
291+
* Return information about the GSSAPI authenticated connection
292+
*/
293+
extern bool be_gssapi_get_auth(Port *port);
294+
extern bool be_gssapi_get_enc(Port *port);
295+
extern const char *be_gssapi_get_princ(Port *port);
296+
297297
/* Read and write to a GSSAPI-encrypted connection. */
298298
extern ssize_t be_gssapi_read(Port *port, void *ptr, size_t len);
299299
extern ssize_t be_gssapi_write(Port *port, void *ptr, size_t len);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy