| 127 | } |
| 128 | |
| 129 | PostgresPollingStatusType |
| 130 | pgtls_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 | |
| 151 | ssize_t |
| 152 | pgtls_read(PGconn *conn, void *ptr, size_t len) |
no test coverage detected