|
PostgreSQL Source Code git master
|
#include "postgres_fe.h"#include <signal.h>#include <fcntl.h>#include <ctype.h>#include <sys/socket.h>#include <unistd.h>#include <netdb.h>#include <netinet/in.h>#include <netinet/tcp.h>#include <arpa/inet.h>#include <sys/stat.h>#include <pthread.h>#include "fe-auth.h"#include "libpq-fe.h"#include "libpq-int.h"
Go to the source code of this file.
Data Structures | |
| struct | sigpipe_info |
Macros | |
| #define | SIGPIPE_MASKED(conn) ((conn)->sigpipe_so || (conn)->sigpipe_flag) |
| #define | DECLARE_SIGPIPE_INFO(spinfo) struct sigpipe_info spinfo |
| #define | DISABLE_SIGPIPE(conn, spinfo, failaction) |
| #define | REMEMBER_EPIPE(spinfo, cond) |
| #define | RESTORE_SIGPIPE(conn, spinfo) |
| #define DECLARE_SIGPIPE_INFO | ( | spinfo | ) | struct sigpipe_info spinfo |
Definition at line 64 of file fe-secure.c.
| #define DISABLE_SIGPIPE | ( | conn, | |
| spinfo, | |||
| failaction | |||
| ) |
Definition at line 66 of file fe-secure.c.
Definition at line 55 of file fe-secure.c.
Definition at line 504 of file fe-secure.c.
References fb(), SIGPIPE, SOCK_ERRNO, and SOCK_ERRNO_SET.
Definition at line 554 of file fe-secure.c.
References fb(), SIGPIPE, SOCK_ERRNO, and SOCK_ERRNO_SET.
Definition at line 473 of file fe-secure.c.
| PQsslKeyPassHook_OpenSSL_type PQgetSSLKeyPassHook_OpenSSL | ( | void | ) |
Definition at line 489 of file fe-secure.c.
Definition at line 129 of file fe-secure.c.
Definition at line 117 of file fe-secure.c.
Definition at line 152 of file fe-secure.c.
References conn, and pgtls_close().
Referenced by pqDropConnection().
| PostgresPollingStatusType pqsecure_open_client | ( | PGconn * | conn | ) |
Definition at line 138 of file fe-secure.c.
References conn, PGRES_POLLING_FAILED, and pgtls_open_client().
Referenced by PQconnectPoll().
Definition at line 193 of file fe-secure.c.
References conn, EAGAIN, ECONNRESET, EINTR, EWOULDBLOCK, fb(), len, libpq_append_conn_error(), PG_STRERROR_R_BUFLEN, recv, pg_conn::sock, SOCK_ERRNO, SOCK_ERRNO_SET, and SOCK_STRERROR.
Referenced by gss_read(), pg_GSS_read(), pgconn_bio_read(), and pqsecure_read().
Definition at line 316 of file fe-secure.c.
References conn, DECLARE_SIGPIPE_INFO, DISABLE_SIGPIPE, EAGAIN, ECONNRESET, EINTR, EWOULDBLOCK, fb(), len, libpq_gettext, PG_STRERROR_R_BUFLEN, REMEMBER_EPIPE, RESTORE_SIGPIPE, send, pg_conn::sigpipe_flag, snprintf, pg_conn::sock, SOCK_ERRNO, SOCK_ERRNO_SET, SOCK_STRERROR, strlcat(), pg_conn::write_err_msg, and pg_conn::write_failed.
Referenced by pg_GSS_write(), pgconn_bio_write(), pqsecure_open_gss(), and pqsecure_write().
Definition at line 167 of file fe-secure.c.
References conn, fb(), len, pg_GSS_read(), pgtls_read(), pqsecure_raw_read(), and pg_conn::ssl_in_use.
Referenced by pqReadData().
Definition at line 267 of file fe-secure.c.
References conn, fb(), len, pg_GSS_write(), pgtls_write(), pqsecure_raw_write(), and pg_conn::ssl_in_use.
Referenced by pqSendSome().
| void PQsetSSLKeyPassHook_OpenSSL | ( | PQsslKeyPassHook_OpenSSL_type | hook | ) |
Definition at line 467 of file fe-secure.c.
Definition at line 446 of file fe-secure.c.
References fb().
Definition at line 103 of file fe-secure.c.
References conn, and pg_conn::ssl_in_use.
Referenced by exec_command_conninfo(), and printSSLInfo().