|
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_MAX_PACKET_SIZE 16384 /* includes uint32 header word */ |
| #define | PQ_GSS_AUTH_BUFFER_SIZE 65536 /* includes uint32 header word */ |
Functions | |
| ssize_t | be_gssapi_write (Port *port, const 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 |
Definition at line 60 of file be-secure-gssapi.c.
Definition at line 52 of file be-secure-gssapi.c.
| bool be_gssapi_get_auth | ( | Port * | port | ) |
Definition at line 744 of file be-secure-gssapi.c.
References port.
Referenced by PerformAuthentication(), and pgstat_bestart_security().
| bool be_gssapi_get_delegation | ( | Port * | port | ) |
Definition at line 782 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_security().
| bool be_gssapi_get_enc | ( | Port * | port | ) |
Definition at line 756 of file be-secure-gssapi.c.
References port.
Referenced by PerformAuthentication(), and pgstat_bestart_security().
| const char * be_gssapi_get_princ | ( | Port * | port | ) |
Definition at line 769 of file be-secure-gssapi.c.
References port.
Referenced by PerformAuthentication(), and pgstat_bestart_security().
| ssize_t be_gssapi_read | ( | Port * | port, |
| void * | ptr, | ||
| size_t | len | ||
| ) |
Definition at line 270 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_MAX_PACKET_SIZE, PqGSSRecvBuffer, PqGSSRecvLength, PqGSSResultBuffer, PqGSSResultLength, PqGSSResultNext, and secure_raw_read().
Referenced by secure_read().
| ssize_t be_gssapi_write | ( | Port * | port, |
| const void * | ptr, | ||
| size_t | len | ||
| ) |
Definition at line 103 of file be-secure-gssapi.c.
References _, Assert(), COMMERROR, ECONNRESET, elog, ereport, errmsg(), input, len, output, pg_GSS_error(), pg_hton32, port, PQ_GSS_MAX_PACKET_SIZE, PqGSSMaxPktSize, PqGSSSendBuffer, PqGSSSendConsumed, PqGSSSendLength, PqGSSSendNext, and secure_raw_write().
Referenced by secure_write().
|
static |
Definition at line 431 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 503 of file be-secure-gssapi.c.
References _, COMMERROR, EAGAIN, EINTR, ereport, errcode(), errmsg(), EWOULDBLOCK, FATAL, free, 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_AUTH_BUFFER_SIZE, PQ_GSS_MAX_PACKET_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 82 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 74 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), read_or_wait(), and secure_open_gssapi().
|
static |
Definition at line 75 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), read_or_wait(), and secure_open_gssapi().
|
static |
Definition at line 77 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), and secure_open_gssapi().
|
static |
Definition at line 78 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), and secure_open_gssapi().
|
static |
Definition at line 79 of file be-secure-gssapi.c.
Referenced by be_gssapi_read(), and secure_open_gssapi().
|
static |
Definition at line 67 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 71 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 68 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().
|
static |
Definition at line 69 of file be-secure-gssapi.c.
Referenced by be_gssapi_write(), and secure_open_gssapi().