PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | MBuf |
struct | PullFilter |
struct | PushFilter |
Macros | |
#define | STEP (16*1024) |
Variables | |
static const struct PullFilterOps | mbuf_reader |
static const struct PushFilterOps | mbuf_filter |
Definition at line 94 of file mbuf.c.
References buf, MBuf::data_end, len, MBuf::no_write, prepare_room(), px_debug(), and PXE_BUG.
Referenced by copy_crlf(), decrypt_internal(), encrypt_internal(), and parse_literal_data().
int mbuf_avail | ( | MBuf * | mbuf | ) |
Definition at line 50 of file mbuf.c.
References MBuf::data_end, and MBuf::read_pos.
Referenced by mbuf_grab(), and pgp_encrypt().
MBuf* mbuf_create | ( | int | len | ) |
Definition at line 111 of file mbuf.c.
References MBuf::buf_end, MBuf::data, MBuf::data_end, len, MBuf::no_write, MBuf::own_data, palloc(), and MBuf::read_pos.
Referenced by decrypt_internal(), and encrypt_internal().
Definition at line 131 of file mbuf.c.
References MBuf::buf_end, MBuf::data, data, MBuf::data_end, len, MBuf::no_write, MBuf::own_data, palloc(), and MBuf::read_pos.
Referenced by create_mbuf_from_vardata(), and decrypt_internal().
int mbuf_free | ( | MBuf * | mbuf | ) |
Definition at line 62 of file mbuf.c.
References MBuf::buf_end, MBuf::data, MBuf::own_data, pfree(), and px_memset().
Referenced by decrypt_internal(), encrypt_internal(), and pgp_key_id_w().
Definition at line 149 of file mbuf.c.
References len, mbuf_avail(), MBuf::no_write, and MBuf::read_pos.
Referenced by pgp_encrypt().
int mbuf_size | ( | MBuf * | mbuf | ) |
Definition at line 56 of file mbuf.c.
References MBuf::data, and MBuf::data_end.
Referenced by mbuf_steal_data().
Definition at line 162 of file mbuf.c.
References MBuf::buf_end, MBuf::data, MBuf::data_end, len, mbuf_size(), MBuf::no_write, MBuf::own_data, and MBuf::read_pos.
Referenced by decrypt_internal(), and encrypt_internal().
|
static |
Definition at line 74 of file mbuf.c.
References MBuf::buf_end, buf_end, MBuf::data, MBuf::data_end, MBuf::read_pos, repalloc(), and STEP.
Referenced by mbuf_append().
|
static |
int pullf_create | ( | PullFilter ** | pf_p, |
const PullFilterOps * | op, | ||
void * | init_arg, | ||
PullFilter * | src | ||
) |
Definition at line 191 of file mbuf.c.
References PullFilter::buf, PullFilter::buflen, PullFilterOps::init, PullFilter::op, palloc(), palloc0(), PullFilter::pos, PullFilter::priv, res, and PullFilter::src.
Referenced by parse_symenc_data(), parse_symenc_mdc_data(), pgp_create_pkt_reader(), process_data_packets(), process_secret_key(), and pullf_create_mbuf_reader().
int pullf_create_mbuf_reader | ( | PullFilter ** | mp_p, |
MBuf * | src | ||
) |
Definition at line 336 of file mbuf.c.
References mbuf_reader, and pullf_create().
Referenced by pgp_decrypt(), pgp_get_keyid(), and pgp_set_pubkey().
void pullf_free | ( | PullFilter * | pf | ) |
Definition at line 229 of file mbuf.c.
References PullFilter::buf, PullFilter::buflen, PullFilterOps::free, PullFilter::op, pfree(), PullFilter::priv, and px_memset().
Referenced by internal_read_key(), parse_compressed_data(), parse_symenc_data(), parse_symenc_mdc_data(), pgp_decrypt(), pgp_get_keyid(), pgp_set_pubkey(), process_data_packets(), and process_secret_key().
int pullf_read | ( | PullFilter * | pf, |
int | len, | ||
uint8 ** | data_p | ||
) |
Definition at line 246 of file mbuf.c.
References PullFilter::buf, PullFilter::buflen, len, PullFilter::op, PullFilter::priv, PullFilterOps::pull, res, and PullFilter::src.
Referenced by decrypt_read(), mdcbuf_refill(), parse_compressed_data(), parse_literal_data(), pgp_expect_packet_end(), pgp_parse_pkt_hdr(), pgp_skip_packet(), pktreader_pull(), and pullf_read_max().
int pullf_read_fixed | ( | PullFilter * | src, |
int | len, | ||
uint8 * | dst | ||
) |
Definition at line 301 of file mbuf.c.
References len, pullf_read_max(), px_debug(), PXE_PGP_CORRUPT_DATA, and res.
Referenced by _pgp_read_public_key(), check_key_cksum(), check_key_sha1(), pgp_mpi_read(), pgp_parse_pubenc_sesskey(), pgp_s2k_read(), process_secret_key(), and read_pubenc_keyid().
int pullf_read_max | ( | PullFilter * | pf, |
int | len, | ||
uint8 ** | data_p, | ||
uint8 * | tmpbuf | ||
) |
Definition at line 263 of file mbuf.c.
References len, pullf_read(), px_memset(), res, and tmpbuf.
Referenced by mdc_finish(), parse_literal_data(), parse_symenc_sesskey(), and pullf_read_fixed().
|
static |
int pushf_create | ( | PushFilter ** | mp_p, |
const PushFilterOps * | op, | ||
void * | init_arg, | ||
PushFilter * | next | ||
) |
Definition at line 357 of file mbuf.c.
References PushFilter::block_size, PushFilter::buf, PushFilterOps::init, next, PushFilter::next, PushFilter::op, palloc(), palloc0(), PushFilter::pos, PushFilter::priv, and res.
Referenced by init_compress(), init_encdata_packet(), init_litdata_packet(), pgp_create_pkt_writer(), pgp_encrypt(), and pushf_create_mbuf_writer().
int pushf_create_mbuf_writer | ( | PushFilter ** | res, |
MBuf * | dst | ||
) |
Definition at line 544 of file mbuf.c.
References mbuf_filter, pushf_create(), and res.
Referenced by pgp_encrypt().
int pushf_flush | ( | PushFilter * | mp | ) |
Definition at line 499 of file mbuf.c.
References PushFilter::block_size, PushFilter::buf, PushFilterOps::flush, PushFilter::next, PushFilter::op, PushFilter::pos, PushFilter::priv, res, and wrap_process().
Referenced by pgp_encrypt(), and pgp_write_pubenc_sesskey().
void pushf_free | ( | PushFilter * | mp | ) |
Definition at line 395 of file mbuf.c.
References PushFilter::block_size, PushFilter::buf, PushFilterOps::free, PushFilter::op, pfree(), PushFilter::priv, and px_memset().
Referenced by init_compress(), init_litdata_packet(), pgp_write_pubenc_sesskey(), and pushf_free_all().
void pushf_free_all | ( | PushFilter * | mp | ) |
Definition at line 411 of file mbuf.c.
References PushFilter::next, and pushf_free().
Referenced by pgp_encrypt().
int pushf_write | ( | PushFilter * | mp, |
const uint8 * | data, | ||
int | len | ||
) |
Definition at line 439 of file mbuf.c.
References PushFilter::block_size, PushFilter::buf, data, len, PushFilter::pos, res, and wrap_process().
Referenced by crlf_process(), encrypt_init(), encrypt_process(), init_compress(), init_litdata_packet(), mdc_flush(), mdc_write(), pgp_encrypt(), pgp_mpi_write(), pgp_write_pubenc_sesskey(), pkt_stream_flush(), pkt_stream_process(), wrap_process(), write_normal_header(), write_prefix(), write_symenc_sesskey(), and write_tag_only().
|
static |
Definition at line 424 of file mbuf.c.
References data, len, PushFilter::next, PushFilter::op, PushFilter::priv, PushFilterOps::push, pushf_write(), PXE_BUG, and res.
Referenced by pushf_flush(), and pushf_write().
|
static |
Definition at line 529 of file mbuf.c.
Referenced by pushf_create_mbuf_writer().
|
static |
Definition at line 323 of file mbuf.c.
Referenced by pullf_create_mbuf_reader().