1 /*-------------------------------------------------------------------------
5 * common implementation-independent SSL support code
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/interfaces/libpq/fe-secure-common.h
13 *-------------------------------------------------------------------------
16 #ifndef FE_SECURE_COMMON_H
17 #define FE_SECURE_COMMON_H
21 extern int pq_verify_peer_name_matches_certificate_name(PGconn
*conn
,
22 const char *namedata
, size_t namelen
,
24 extern int pq_verify_peer_name_matches_certificate_ip(PGconn
*conn
,
25 const unsigned char *ipdata
,
28 extern bool pq_verify_peer_name_matches_certificate(PGconn
*conn
);
30 #endif /* FE_SECURE_COMMON_H */