MCPcopy Create free account
hub / github.com/apache/cloudberry / pgtls_open_client

Function pgtls_open_client

src/interfaces/libpq/fe-secure-openssl.c:129–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129PostgresPollingStatusType
130pgtls_open_client(PGconn *conn)
131{
132 /* First time through? */
133 if (conn->ssl == NULL)
134 {
135 /*
136 * Create a connection-specific SSL object, and load client
137 * certificate, private key, and trusted CA certs.
138 */
139 if (initialize_SSL(conn) != 0)
140 {
141 /* initialize_SSL already put a message in conn->errorMessage */
142 pgtls_close(conn);
143 return PGRES_POLLING_FAILED;
144 }
145 }
146
147 /* Begin or continue the actual handshake */
148 return open_client_SSL(conn);
149}
150
151ssize_t
152pgtls_read(PGconn *conn, void *ptr, size_t len)

Callers 1

pqsecure_open_clientFunction · 0.85

Calls 3

initialize_SSLFunction · 0.85
pgtls_closeFunction · 0.85
open_client_SSLFunction · 0.85

Tested by

no test coverage detected