PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "fe-gssapi-common.h"
#include "libpq-fe.h"
#include "libpq-int.h"
#include "port/pg_bswap.h"
Go to the source code of this file.
Macros | |
#define | GSS_REQUIRED_FLAGS |
#define | PQ_GSS_SEND_BUFFER_SIZE 16384 |
#define | PQ_GSS_RECV_BUFFER_SIZE 16384 |
#define | PqGSSSendBuffer (conn->gss_SendBuffer) |
#define | PqGSSSendLength (conn->gss_SendLength) |
#define | PqGSSSendNext (conn->gss_SendNext) |
#define | PqGSSSendConsumed (conn->gss_SendConsumed) |
#define | PqGSSRecvBuffer (conn->gss_RecvBuffer) |
#define | PqGSSRecvLength (conn->gss_RecvLength) |
#define | PqGSSResultBuffer (conn->gss_ResultBuffer) |
#define | PqGSSResultLength (conn->gss_ResultLength) |
#define | PqGSSResultNext (conn->gss_ResultNext) |
#define | PqGSSMaxPktSize (conn->gss_MaxPktSize) |
Functions | |
ssize_t | pg_GSS_write (PGconn *conn, const void *ptr, size_t len) |
ssize_t | pg_GSS_read (PGconn *conn, void *ptr, size_t len) |
static PostgresPollingStatusType | gss_read (PGconn *conn, void *recv_buffer, size_t length, ssize_t *ret) |
PostgresPollingStatusType | pqsecure_open_gss (PGconn *conn) |
void * | PQgetgssctx (PGconn *conn) |
int | PQgssEncInUse (PGconn *conn) |
#define GSS_REQUIRED_FLAGS |
Definition at line 26 of file fe-secure-gssapi.c.
#define PQ_GSS_RECV_BUFFER_SIZE 16384 |
Definition at line 54 of file fe-secure-gssapi.c.
#define PQ_GSS_SEND_BUFFER_SIZE 16384 |
Definition at line 53 of file fe-secure-gssapi.c.
#define PqGSSMaxPktSize (conn->gss_MaxPktSize) |
Definition at line 70 of file fe-secure-gssapi.c.
#define PqGSSRecvBuffer (conn->gss_RecvBuffer) |
Definition at line 65 of file fe-secure-gssapi.c.
#define PqGSSRecvLength (conn->gss_RecvLength) |
Definition at line 66 of file fe-secure-gssapi.c.
#define PqGSSResultBuffer (conn->gss_ResultBuffer) |
Definition at line 67 of file fe-secure-gssapi.c.
#define PqGSSResultLength (conn->gss_ResultLength) |
Definition at line 68 of file fe-secure-gssapi.c.
#define PqGSSResultNext (conn->gss_ResultNext) |
Definition at line 69 of file fe-secure-gssapi.c.
#define PqGSSSendBuffer (conn->gss_SendBuffer) |
Definition at line 61 of file fe-secure-gssapi.c.
#define PqGSSSendConsumed (conn->gss_SendConsumed) |
Definition at line 64 of file fe-secure-gssapi.c.
#define PqGSSSendLength (conn->gss_SendLength) |
Definition at line 62 of file fe-secure-gssapi.c.
#define PqGSSSendNext (conn->gss_SendNext) |
Definition at line 63 of file fe-secure-gssapi.c.
|
static |
Definition at line 428 of file fe-secure-gssapi.c.
References conn, EAGAIN, EINTR, EWOULDBLOCK, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, pqReadReady(), and pqsecure_raw_read().
Referenced by pqsecure_open_gss().
ssize_t pg_GSS_read | ( | PGconn * | conn, |
void * | ptr, | ||
size_t | len | ||
) |
Definition at line 259 of file fe-secure-gssapi.c.
References Assert, cleanup(), conn, EWOULDBLOCK, input, len, libpq_append_conn_error(), libpq_gettext, Min, output, pg_GSS_error(), pg_ntoh32, PQ_GSS_RECV_BUFFER_SIZE, PqGSSRecvBuffer, PqGSSRecvLength, PqGSSResultBuffer, PqGSSResultLength, PqGSSResultNext, and pqsecure_raw_read().
Referenced by pqsecure_read().
ssize_t pg_GSS_write | ( | PGconn * | conn, |
const void * | ptr, | ||
size_t | len | ||
) |
Definition at line 86 of file fe-secure-gssapi.c.
References appendPQExpBufferStr(), Assert, cleanup(), conn, pg_conn::errorMessage, input, len, libpq_append_conn_error(), libpq_gettext, output, pg_GSS_error(), pg_hton32, PQ_GSS_SEND_BUFFER_SIZE, PqGSSMaxPktSize, PqGSSSendBuffer, PqGSSSendConsumed, PqGSSSendLength, PqGSSSendNext, and pqsecure_raw_write().
Referenced by pqsecure_write().
void* PQgetgssctx | ( | PGconn * | conn | ) |
Definition at line 724 of file fe-secure-gssapi.c.
References conn.
int PQgssEncInUse | ( | PGconn * | conn | ) |
PostgresPollingStatusType pqsecure_open_gss | ( | PGconn * | conn | ) |
Definition at line 472 of file fe-secure-gssapi.c.
References appendPQExpBuffer(), Assert, conn, EAGAIN, EINTR, pg_conn::errorMessage, EWOULDBLOCK, gss_read(), GSS_REQUIRED_FLAGS, pg_conn::gssapi_used, pg_conn::gssdelegation, input, libpq_append_conn_error(), libpq_gettext, malloc, output, pg_GSS_error(), pg_GSS_have_cred_cache(), pg_GSS_load_servicename(), pg_hton32, pg_ntoh32, PGRES_POLLING_FAILED, PGRES_POLLING_OK, PGRES_POLLING_READING, PGRES_POLLING_WRITING, PQ_GSS_RECV_BUFFER_SIZE, PQ_GSS_SEND_BUFFER_SIZE, PqGSSMaxPktSize, PqGSSRecvBuffer, PqGSSRecvLength, PqGSSResultBuffer, PqGSSResultLength, PqGSSResultNext, PqGSSSendBuffer, PqGSSSendConsumed, PqGSSSendLength, PqGSSSendNext, pqsecure_raw_write(), and STATUS_OK.
Referenced by PQconnectPoll().