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 "fe-auth.h"
#include "libpq-fe.h"
#include "libpq-int.h"
Go to the source code of this file.
Macros | |
#define | SIGPIPE_MASKED(conn) ((conn)->sigpipe_so || (conn)->sigpipe_flag) |
#define | DECLARE_SIGPIPE_INFO(spinfo) pqsigfunc spinfo = NULL |
#define | DISABLE_SIGPIPE(conn, spinfo, failaction) |
#define | REMEMBER_EPIPE(spinfo, cond) |
#define | RESTORE_SIGPIPE(conn, spinfo) |
#define DECLARE_SIGPIPE_INFO | ( | spinfo | ) | pqsigfunc spinfo = NULL |
Definition at line 95 of file fe-secure.c.
#define DISABLE_SIGPIPE | ( | conn, | |
spinfo, | |||
failaction | |||
) |
Definition at line 97 of file fe-secure.c.
#define REMEMBER_EPIPE | ( | spinfo, | |
cond | |||
) |
Definition at line 103 of file fe-secure.c.
#define RESTORE_SIGPIPE | ( | conn, | |
spinfo | |||
) |
Definition at line 105 of file fe-secure.c.
Definition at line 57 of file fe-secure.c.
int PQdefaultSSLKeyPassHook_OpenSSL | ( | char * | buf, |
int | size, | ||
PGconn * | conn | ||
) |
Definition at line 503 of file fe-secure.c.
void* PQgetgssctx | ( | PGconn * | conn | ) |
Definition at line 513 of file fe-secure.c.
void* PQgetssl | ( | PGconn * | conn | ) |
Definition at line 458 of file fe-secure.c.
PQsslKeyPassHook_OpenSSL_type PQgetSSLKeyPassHook_OpenSSL | ( | void | ) |
Definition at line 491 of file fe-secure.c.
int PQgssEncInUse | ( | PGconn * | conn | ) |
Definition at line 519 of file fe-secure.c.
void PQinitOpenSSL | ( | int | do_ssl, |
int | do_crypto | ||
) |
Definition at line 149 of file fe-secure.c.
References pgtls_init_library().
void PQinitSSL | ( | int | do_init | ) |
void pqsecure_close | ( | PGconn * | conn | ) |
Definition at line 189 of file fe-secure.c.
References conn, and pgtls_close().
Referenced by pqDropConnection().
Definition at line 160 of file fe-secure.c.
References conn, and pgtls_init().
Referenced by PQconnectPoll().
PostgresPollingStatusType pqsecure_open_client | ( | PGconn * | conn | ) |
Definition at line 175 of file fe-secure.c.
References conn, PGRES_POLLING_FAILED, and pgtls_open_client().
Referenced by PQconnectPoll().
ssize_t pqsecure_raw_read | ( | PGconn * | conn, |
void * | ptr, | ||
size_t | len | ||
) |
Definition at line 230 of file fe-secure.c.
References conn, EAGAIN, ECONNRESET, EINTR, EWOULDBLOCK, 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(), my_sock_read(), pg_GSS_read(), and pqsecure_read().
ssize_t pqsecure_raw_write | ( | PGconn * | conn, |
const void * | ptr, | ||
size_t | len | ||
) |
Definition at line 346 of file fe-secure.c.
References conn, DECLARE_SIGPIPE_INFO, DISABLE_SIGPIPE, EAGAIN, ECONNRESET, EINTR, EWOULDBLOCK, 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 my_sock_write(), pg_GSS_write(), pqsecure_open_gss(), and pqsecure_write().
ssize_t pqsecure_read | ( | PGconn * | conn, |
void * | ptr, | ||
size_t | len | ||
) |
Definition at line 204 of file fe-secure.c.
References conn, len, pg_GSS_read(), pgtls_read(), pqsecure_raw_read(), and pg_conn::ssl_in_use.
Referenced by pqReadData().
ssize_t pqsecure_write | ( | PGconn * | conn, |
const void * | ptr, | ||
size_t | len | ||
) |
Definition at line 297 of file fe-secure.c.
References conn, 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 497 of file fe-secure.c.
const char* PQsslAttribute | ( | PGconn * | conn, |
const char * | attribute_name | ||
) |
Definition at line 470 of file fe-secure.c.
const char* const* PQsslAttributeNames | ( | PGconn * | conn | ) |
Definition at line 476 of file fe-secure.c.
int PQsslInUse | ( | PGconn * | conn | ) |
Definition at line 125 of file fe-secure.c.
References conn, and pg_conn::ssl_in_use.
Referenced by printSSLInfo().
void* PQsslStruct | ( | PGconn * | conn, |
const char * | struct_name | ||
) |
Definition at line 464 of file fe-secure.c.