PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <unistd.h>
#include "libpq/auth.h"
#include "libpq/be-gssapi-common.h"
#include "libpq/libpq.h"
#include "miscadmin.h"
#include "pgstat.h"
#include "port/pg_bswap.h"
#include "utils/injection_point.h"
#include "utils/memutils.h"
Go to the source code of this file.
Macros | |
#define | PQ_GSS_SEND_BUFFER_SIZE 16384 |
#define | PQ_GSS_RECV_BUFFER_SIZE 16384 |
Functions | |
ssize_t | be_gssapi_write (Port *port, void *ptr, size_t len) |
ssize_t | be_gssapi_read (Port *port, void *ptr, size_t len) |
static ssize_t | read_or_wait (Port *port, ssize_t len) |
ssize_t | secure_open_gssapi (Port *port) |
bool | be_gssapi_get_auth (Port *port) |
bool | be_gssapi_get_enc (Port *port) |
const char * | be_gssapi_get_princ (Port *port) |
bool | be_gssapi_get_delegation (Port *port) |
Variables | |
static char * | PqGSSSendBuffer |
static int | PqGSSSendLength |
static int | PqGSSSendNext |
static int | PqGSSSendConsumed |
static char * | PqGSSRecvBuffer |
static int | PqGSSRecvLength |
static char * | PqGSSResultBuffer |
static int | PqGSSResultLength |
static int | PqGSSResultNext |
static uint32 | PqGSSMaxPktSize |
#define PQ_GSS_RECV_BUFFER_SIZE 16384 |
Definition at line 53 of file be-secure-gssapi.c.
#define PQ_GSS_SEND_BUFFER_SIZE 16384 |
Definition at line 52 of file be-secure-gssapi.c.
bool be_gssapi_get_auth | ( | Port * | port | ) |
Definition at line 717 of file be-secure-gssapi.c.
References port.
Referenced by PerformAuthentication(), and pgstat_bestart().
bool be_gssapi_get_delegation | ( | Port * | port | ) |
Definition at line 755 of file be-secure-gssapi.c.
References port.
Referenced by check_conn_params(), dblink_connstr_check(), dblink_security_check(), PerformAuthentication(), pgfdw_security_check(), and pgstat_bestart().
bool be_gssapi_get_enc | ( | Port * | port | ) |
Definition at line 729 of file be-secure-gssapi.c.
References port.
Referenced by PerformAuthentication(), and pgstat_bestart().
const char* be_gssapi_get_princ | ( | Port * | port | ) |
Definition at line 742 of file be-secure-gssapi.c.
References port.
Referenced by PerformAuthentication(), and pgstat_bestart().
ssize_t be_gssapi_read | ( | Port * | port, |
void * | ptr, | ||
size_t | len | ||
) |
Definition at line 263 of file be-secure-gssapi.c.
References _, Assert, COMMERROR, ECONNRESET, ereport, errmsg(), EWOULDBLOCK, input, len, Min, output, pg_GSS_error(), pg_ntoh32, port, PQ_GSS_RECV_BUFFER_SIZE, PqGSSRecvBuffer, PqGSSRecvLength, PqGSSResultBuffer, PqGSSResultLength, PqGSSResultNext, and secure_raw_read().
Referenced by secure_read().
ssize_t be_gssapi_write | ( | Port * | port, |
void * | ptr, | ||
size_t | len | ||
) |
Definition at line 96 of file be-secure-gssapi.c.
References _, Assert, COMMERROR, ECONNRESET, elog, ereport, errmsg(), input, len, output, pg_GSS_error(), pg_hton32, port, PQ_GSS_SEND_BUFFER_SIZE, PqGSSMaxPktSize, PqGSSSendBuffer, PqGSSSendConsumed, PqGSSSendLength, PqGSSSendNext, and secure_raw_write().
Referenced by secure_write().
|
static |
Definition at line 424 of file be-secure-gssapi.c.
References EAGAIN, EINTR, EWOULDBLOCK, len, port, PqGSSRecvBuffer, PqGSSRecvLength, secure_raw_read(), WaitLatchOrSocket(), WL_EXIT_ON_PM_DEATH, and WL_SOCKET_READABLE.
Referenced by secure_open_gssapi().
ssize_t secure_open_gssapi | ( | Port * | port | ) |
Definition at line 496 of file be-secure-gssapi.c.
References _, COMMERROR, EAGAIN, EINTR, ereport, errcode(), errmsg(), EWOULDBLOCK, FATAL, INJECTION_POINT, input, malloc, MemoryContextAllocZero(), output, pg_gss_accept_delegation, pg_GSS_error(), pg_hton32, pg_krb_server_keyfile, pg_ntoh32, pg_store_delegated_credential(), port, PQ_GSS_RECV_BUFFER_SIZE, PQ_GSS_SEND_BUFFER_SIZE, PqGSSMaxPktSize, PqGSSRecvBuffer, PqGSSRecvLength, PqGSSResultBuffer, PqGSSResultLength, PqGSSResultNext, PqGSSSendBuffer, PqGSSSendConsumed, PqGSSSendLength, PqGSSSendNext, read_or_wait(), secure_raw_write(), setenv, TopMemoryContext, WaitLatchOrSocket(), WL_EXIT_ON_PM_DEATH, and WL_SOCKET_WRITEABLE.
Referenced by ProcessStartupPacket().
|
static |
Definition at line 75 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 67 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), read_or_wait(), and secure_open_gssapi().
|
static |
Definition at line 68 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), read_or_wait(), and secure_open_gssapi().
|
static |
Definition at line 70 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), and secure_open_gssapi().
|
static |
Definition at line 71 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), and secure_open_gssapi().
|
static |
Definition at line 72 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), and secure_open_gssapi().
|
static |
Definition at line 60 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 64 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 61 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 62 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().