Functions | Variables
bio.c File Reference
#include <openssl/bio.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
#include <openssl/asn1.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include "../internal.h"
Include dependency graph for bio.c:

Go to the source code of this file.

Functions

long BIO_callback_ctrl (BIO *bio, int cmd, bio_info_cb fp)
 
void BIO_clear_flags (BIO *bio, int flags)
 
void BIO_clear_retry_flags (BIO *bio)
 
void BIO_copy_next_retry (BIO *bio)
 
long BIO_ctrl (BIO *bio, int cmd, long larg, void *parg)
 
size_t BIO_ctrl_pending (const BIO *bio)
 
int BIO_eof (BIO *bio)
 
BIOBIO_find_type (BIO *bio, int type)
 
int BIO_flush (BIO *bio)
 
int BIO_free (BIO *bio)
 
void BIO_free_all (BIO *bio)
 
void * BIO_get_data (BIO *bio)
 
int BIO_get_init (BIO *bio)
 
int BIO_get_new_index (void)
 
int BIO_get_retry_flags (BIO *bio)
 
int BIO_get_retry_reason (const BIO *bio)
 
int BIO_get_shutdown (BIO *bio)
 
int BIO_gets (BIO *bio, char *buf, int len)
 
int BIO_indent (BIO *bio, unsigned indent, unsigned max_indent)
 
long BIO_int_ctrl (BIO *b, int cmd, long larg, int iarg)
 
void BIO_meth_free (BIO_METHOD *method)
 
BIO_METHODBIO_meth_new (int type, const char *name)
 
int BIO_meth_set_create (BIO_METHOD *method, int(*create)(BIO *))
 
int BIO_meth_set_ctrl (BIO_METHOD *method, long(*ctrl)(BIO *, int, long, void *))
 
int BIO_meth_set_destroy (BIO_METHOD *method, int(*destroy)(BIO *))
 
int BIO_meth_set_gets (BIO_METHOD *method, int(*gets)(BIO *, char *, int))
 
int BIO_meth_set_puts (BIO_METHOD *method, int(*puts)(BIO *, const char *))
 
int BIO_meth_set_read (BIO_METHOD *method, int(*read)(BIO *, char *, int))
 
int BIO_meth_set_write (BIO_METHOD *method, int(*write)(BIO *, const char *, int))
 
int BIO_method_type (const BIO *bio)
 
BIOBIO_new (const BIO_METHOD *method)
 
BIOBIO_next (BIO *bio)
 
OPENSSL_EXPORT size_t BIO_number_read (const BIO *bio)
 
OPENSSL_EXPORT size_t BIO_number_written (const BIO *bio)
 
size_t BIO_pending (const BIO *bio)
 
BIOBIO_pop (BIO *bio)
 
char * BIO_ptr_ctrl (BIO *b, int cmd, long larg)
 
BIOBIO_push (BIO *bio, BIO *appended_bio)
 
int BIO_puts (BIO *bio, const char *in)
 
int BIO_read (BIO *bio, void *buf, int len)
 
static int bio_read_all (BIO *bio, uint8_t **out, size_t *out_len, const uint8_t *prefix, size_t prefix_len, size_t max_len)
 
int BIO_read_asn1 (BIO *bio, uint8_t **out, size_t *out_len, size_t max_len)
 
static int bio_read_full (BIO *bio, uint8_t *out, int *out_eof_on_first_read, size_t len)
 
int BIO_reset (BIO *bio)
 
int BIO_set_close (BIO *bio, int close_flag)
 
void BIO_set_data (BIO *bio, void *ptr)
 
void BIO_set_flags (BIO *bio, int flags)
 
void BIO_set_init (BIO *bio, int init)
 
void BIO_set_retry_read (BIO *bio)
 
void BIO_set_retry_reason (BIO *bio, int reason)
 
void BIO_set_retry_special (BIO *bio)
 
void BIO_set_retry_write (BIO *bio)
 
void BIO_set_shutdown (BIO *bio, int shutdown)
 
int BIO_set_write_buffer_size (BIO *bio, int buffer_size)
 
int BIO_should_io_special (const BIO *bio)
 
int BIO_should_read (const BIO *bio)
 
int BIO_should_retry (const BIO *bio)
 
int BIO_should_write (const BIO *bio)
 
int BIO_test_flags (const BIO *bio, int flags)
 
int BIO_up_ref (BIO *bio)
 
void BIO_vfree (BIO *bio)
 
size_t BIO_wpending (const BIO *bio)
 
int BIO_write (BIO *bio, const void *in, int inl)
 
int BIO_write_all (BIO *bio, const void *data, size_t len)
 
void ERR_print_errors (BIO *bio)
 
static int print_bio (const char *str, size_t len, void *bio)
 

Variables

static int g_index = BIO_TYPE_START
 
static struct CRYPTO_STATIC_MUTEX g_index_lock = CRYPTO_STATIC_MUTEX_INIT
 
static const int kRetryFlags = BIO_FLAGS_RWS | BIO_FLAGS_SHOULD_RETRY
 

Function Documentation

◆ BIO_callback_ctrl()

long BIO_callback_ctrl ( BIO bio,
int  cmd,
bio_info_cb  fp 
)

Definition at line 298 of file bio.c.

◆ BIO_clear_flags()

void BIO_clear_flags ( BIO bio,
int  flags 
)

Definition at line 267 of file bio.c.

◆ BIO_clear_retry_flags()

void BIO_clear_retry_flags ( BIO bio)

Definition at line 285 of file bio.c.

◆ BIO_copy_next_retry()

void BIO_copy_next_retry ( BIO bio)

Definition at line 292 of file bio.c.

◆ BIO_ctrl()

long BIO_ctrl ( BIO bio,
int  cmd,
long  larg,
void *  parg 
)

Definition at line 202 of file bio.c.

◆ BIO_ctrl_pending()

size_t BIO_ctrl_pending ( const BIO bio)

Definition at line 321 of file bio.c.

◆ BIO_eof()

int BIO_eof ( BIO bio)

Definition at line 235 of file bio.c.

◆ BIO_find_type()

BIO* BIO_find_type ( BIO bio,
int  type 
)

Definition at line 381 of file bio.c.

◆ BIO_flush()

int BIO_flush ( BIO bio)

Definition at line 198 of file bio.c.

◆ BIO_free()

int BIO_free ( BIO bio)

Definition at line 92 of file bio.c.

◆ BIO_free_all()

void BIO_free_all ( BIO bio)

Definition at line 120 of file bio.c.

◆ BIO_get_data()

void* BIO_get_data ( BIO bio)

Definition at line 689 of file bio.c.

◆ BIO_get_init()

int BIO_get_init ( BIO bio)

Definition at line 693 of file bio.c.

◆ BIO_get_new_index()

int BIO_get_new_index ( void  )

Definition at line 628 of file bio.c.

◆ BIO_get_retry_flags()

int BIO_get_retry_flags ( BIO bio)

Definition at line 281 of file bio.c.

◆ BIO_get_retry_reason()

int BIO_get_retry_reason ( const BIO bio)

Definition at line 263 of file bio.c.

◆ BIO_get_shutdown()

int BIO_get_shutdown ( BIO bio)

Definition at line 697 of file bio.c.

◆ BIO_gets()

int BIO_gets ( BIO bio,
char *  buf,
int  len 
)

Definition at line 143 of file bio.c.

◆ BIO_indent()

int BIO_indent ( BIO bio,
unsigned  indent,
unsigned  max_indent 
)

Definition at line 407 of file bio.c.

◆ BIO_int_ctrl()

long BIO_int_ctrl ( BIO b,
int  cmd,
long  larg,
int  iarg 
)

Definition at line 225 of file bio.c.

◆ BIO_meth_free()

void BIO_meth_free ( BIO_METHOD method)

Definition at line 647 of file bio.c.

◆ BIO_meth_new()

BIO_METHOD* BIO_meth_new ( int  type,
const char *  name 
)

Definition at line 636 of file bio.c.

◆ BIO_meth_set_create()

int BIO_meth_set_create ( BIO_METHOD method,
int(*)(BIO *)  create 
)

Definition at line 651 of file bio.c.

◆ BIO_meth_set_ctrl()

int BIO_meth_set_ctrl ( BIO_METHOD method,
long(*)(BIO *, int, long, void *)  ctrl 
)

Definition at line 681 of file bio.c.

◆ BIO_meth_set_destroy()

int BIO_meth_set_destroy ( BIO_METHOD method,
int(*)(BIO *)  destroy 
)

Definition at line 657 of file bio.c.

◆ BIO_meth_set_gets()

int BIO_meth_set_gets ( BIO_METHOD method,
int(*)(BIO *, char *, int gets 
)

Definition at line 675 of file bio.c.

◆ BIO_meth_set_puts()

int BIO_meth_set_puts ( BIO_METHOD method,
int(*)(BIO *, const char *)  puts 
)

Definition at line 699 of file bio.c.

◆ BIO_meth_set_read()

int BIO_meth_set_read ( BIO_METHOD method,
int(*)(BIO *, char *, int read 
)

Definition at line 669 of file bio.c.

◆ BIO_meth_set_write()

int BIO_meth_set_write ( BIO_METHOD method,
int(*)(BIO *, const char *, int write 
)

Definition at line 663 of file bio.c.

◆ BIO_method_type()

int BIO_method_type ( const BIO bio)

Definition at line 290 of file bio.c.

◆ BIO_new()

BIO* BIO_new ( const BIO_METHOD method)

Definition at line 72 of file bio.c.

◆ BIO_next()

BIO* BIO_next ( BIO bio)

Definition at line 374 of file bio.c.

◆ BIO_number_read()

OPENSSL_EXPORT size_t BIO_number_read ( const BIO bio)

Definition at line 339 of file bio.c.

◆ BIO_number_written()

OPENSSL_EXPORT size_t BIO_number_written ( const BIO bio)

Definition at line 343 of file bio.c.

◆ BIO_pending()

size_t BIO_pending ( const BIO bio)

Definition at line 311 of file bio.c.

◆ BIO_pop()

BIO* BIO_pop ( BIO bio)

Definition at line 363 of file bio.c.

◆ BIO_ptr_ctrl()

char* BIO_ptr_ctrl ( BIO b,
int  cmd,
long  larg 
)

Definition at line 215 of file bio.c.

◆ BIO_push()

BIO* BIO_push ( BIO bio,
BIO appended_bio 
)

Definition at line 347 of file bio.c.

◆ BIO_puts()

int BIO_puts ( BIO bio,
const char *  in 
)

Definition at line 194 of file bio.c.

◆ BIO_read()

int BIO_read ( BIO bio,
void *  buf,
int  len 
)

Definition at line 124 of file bio.c.

◆ bio_read_all()

static int bio_read_all ( BIO bio,
uint8_t **  out,
size_t *  out_len,
const uint8_t prefix,
size_t  prefix_len,
size_t  max_len 
)
static

Definition at line 436 of file bio.c.

◆ BIO_read_asn1()

int BIO_read_asn1 ( BIO bio,
uint8_t **  out,
size_t *  out_len,
size_t  max_len 
)

Definition at line 519 of file bio.c.

◆ bio_read_full()

static int bio_read_full ( BIO bio,
uint8_t out,
int out_eof_on_first_read,
size_t  len 
)
static

Definition at line 492 of file bio.c.

◆ BIO_reset()

int BIO_reset ( BIO bio)

Definition at line 231 of file bio.c.

◆ BIO_set_close()

int BIO_set_close ( BIO bio,
int  close_flag 
)

Definition at line 335 of file bio.c.

◆ BIO_set_data()

void BIO_set_data ( BIO bio,
void *  ptr 
)

Definition at line 687 of file bio.c.

◆ BIO_set_flags()

void BIO_set_flags ( BIO bio,
int  flags 
)

Definition at line 239 of file bio.c.

◆ BIO_set_init()

void BIO_set_init ( BIO bio,
int  init 
)

Definition at line 691 of file bio.c.

◆ BIO_set_retry_read()

void BIO_set_retry_read ( BIO bio)

Definition at line 271 of file bio.c.

◆ BIO_set_retry_reason()

void BIO_set_retry_reason ( BIO bio,
int  reason 
)

Definition at line 265 of file bio.c.

◆ BIO_set_retry_special()

void BIO_set_retry_special ( BIO bio)

Definition at line 619 of file bio.c.

◆ BIO_set_retry_write()

void BIO_set_retry_write ( BIO bio)

Definition at line 275 of file bio.c.

◆ BIO_set_shutdown()

void BIO_set_shutdown ( BIO bio,
int  shutdown 
)

Definition at line 695 of file bio.c.

◆ BIO_set_write_buffer_size()

int BIO_set_write_buffer_size ( BIO bio,
int  buffer_size 
)

Definition at line 623 of file bio.c.

◆ BIO_should_io_special()

int BIO_should_io_special ( const BIO bio)

Definition at line 259 of file bio.c.

◆ BIO_should_read()

int BIO_should_read ( const BIO bio)

Definition at line 247 of file bio.c.

◆ BIO_should_retry()

int BIO_should_retry ( const BIO bio)

Definition at line 255 of file bio.c.

◆ BIO_should_write()

int BIO_should_write ( const BIO bio)

Definition at line 251 of file bio.c.

◆ BIO_test_flags()

int BIO_test_flags ( const BIO bio,
int  flags 
)

Definition at line 243 of file bio.c.

◆ BIO_up_ref()

int BIO_up_ref ( BIO bio)

Definition at line 111 of file bio.c.

◆ BIO_vfree()

void BIO_vfree ( BIO bio)

Definition at line 116 of file bio.c.

◆ BIO_wpending()

size_t BIO_wpending ( const BIO bio)

Definition at line 325 of file bio.c.

◆ BIO_write()

int BIO_write ( BIO bio,
const void *  in,
int  inl 
)

Definition at line 162 of file bio.c.

◆ BIO_write_all()

int BIO_write_all ( BIO bio,
const void *  data,
size_t  len 
)

Definition at line 181 of file bio.c.

◆ ERR_print_errors()

void ERR_print_errors ( BIO bio)

Definition at line 424 of file bio.c.

◆ print_bio()

static int print_bio ( const char *  str,
size_t  len,
void *  bio 
)
static

Definition at line 420 of file bio.c.

Variable Documentation

◆ g_index

int g_index = BIO_TYPE_START
static

Definition at line 626 of file bio.c.

◆ g_index_lock

struct CRYPTO_STATIC_MUTEX g_index_lock = CRYPTO_STATIC_MUTEX_INIT
static

Definition at line 625 of file bio.c.

◆ kRetryFlags

Definition at line 279 of file bio.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:04