Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf4263c

Browse files
committed
Switch position of some declarations in libpq.h
This makes the header more consistent with the surroundings, with declarations associated to a given file grouped together. Author: Daniel Gustafsson Discussion: https://postgr.es/m/[email protected]
1 parent b880e22 commit cf4263c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/include/libpq/libpq.h

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ extern const PGDLLIMPORT PQcommMethods *PqCommMethods;
5353
/*
5454
* prototypes for functions in pqcomm.c
5555
*/
56+
extern WaitEventSet *FeBeWaitSet;
57+
5658
extern int StreamServerPort(int family, char *hostName,
5759
unsigned short portNumber, char *unixSocketDir,
5860
pgsocket ListenSocket[], int MaxListen);
@@ -83,6 +85,9 @@ extern char *ssl_crl_file;
8385
extern char *ssl_dh_params_file;
8486
extern char *ssl_passphrase_command;
8587
extern bool ssl_passphrase_command_supports_reload;
88+
#ifdef USE_SSL
89+
extern bool ssl_loaded_verify_locations;
90+
#endif
8691

8792
extern int secure_initialize(bool isServerStart);
8893
extern bool secure_loaded_verify_locations(void);
@@ -93,14 +98,14 @@ extern ssize_t secure_read(Port *port, void *ptr, size_t len);
9398
extern ssize_t secure_write(Port *port, void *ptr, size_t len);
9499
extern ssize_t secure_raw_read(Port *port, void *ptr, size_t len);
95100
extern ssize_t secure_raw_write(Port *port, const void *ptr, size_t len);
101+
102+
/*
103+
* prototypes for functions in be-secure-gssapi.c
104+
*/
96105
#ifdef ENABLE_GSS
97106
extern ssize_t secure_open_gssapi(Port *port);
98107
#endif
99108

100-
extern bool ssl_loaded_verify_locations;
101-
102-
extern WaitEventSet *FeBeWaitSet;
103-
104109
/* GUCs */
105110
extern char *SSLCipherSuites;
106111
extern char *SSLECDHCurve;

0 commit comments

Comments
 (0)