webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
bio.h File Reference
#include <openssl/base.h>
#include <stdio.h>
#include <openssl/buffer.h>
#include <openssl/err.h>
#include <openssl/ex_data.h>
#include <openssl/stack.h>
#include <openssl/thread.h>

Go to the source code of this file.

Classes

struct  bio_method_st
 
struct  bio_st
 

Macros

#define BIO_RR_SSL_X509_LOOKUP   0x01
 
#define BIO_RR_CONNECT   0x02
 
#define BIO_RR_ACCEPT   0x03
 
#define BIO_RR_SSL_CHANNEL_ID_LOOKUP   0x04
 
#define BIO_CTRL_DGRAM_QUERY_MTU   40 /* as kernel for current MTU */
 
#define BIO_CTRL_DGRAM_SET_MTU
 
#define BIO_CTRL_DGRAM_MTU_EXCEEDED
 
#define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT   45
 
#define BIO_CTRL_DGRAM_GET_PEER   46
 
#define BIO_CTRL_DGRAM_GET_FALLBACK_MTU   47
 
#define BIO_NOCLOSE   0
 
#define BIO_CLOSE   1
 
#define BIO_CB_FREE   0x01
 
#define BIO_CB_READ   0x02
 
#define BIO_CB_WRITE   0x03
 
#define BIO_CB_PUTS   0x04
 
#define BIO_CB_GETS   0x05
 
#define BIO_CB_CTRL   0x06
 
#define BIO_CB_RETURN   0x80
 
#define BIO_CTRL_RESET   1 /* opt - rewind/zero etc */
 
#define BIO_CTRL_EOF   2 /* opt - are we at the eof */
 
#define BIO_CTRL_INFO   3 /* opt - extra tit-bits */
 
#define BIO_CTRL_SET   4 /* man - set the 'IO' type */
 
#define BIO_CTRL_GET   5 /* man - get the 'IO' type */
 
#define BIO_CTRL_PUSH   6
 
#define BIO_CTRL_POP   7
 
#define BIO_CTRL_GET_CLOSE   8 /* man - set the 'close' on free */
 
#define BIO_CTRL_SET_CLOSE   9 /* man - set the 'close' on free */
 
#define BIO_CTRL_PENDING   10 /* opt - is their more data buffered */
 
#define BIO_CTRL_FLUSH   11 /* opt - 'flush' buffered output */
 
#define BIO_CTRL_WPENDING   13 /* opt - number of bytes still to write */
 
#define BIO_CTRL_SET_CALLBACK   14 /* opt - set callback function */
 
#define BIO_CTRL_GET_CALLBACK   15 /* opt - set callback function */
 
#define BIO_CTRL_SET_FILENAME   30 /* BIO_s_file special */
 
#define BIO_CTRL_DUP   12
 
#define BIO_FLAGS_READ   0x01
 
#define BIO_FLAGS_WRITE   0x02
 
#define BIO_FLAGS_IO_SPECIAL   0x04
 
#define BIO_FLAGS_RWS   (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)
 
#define BIO_FLAGS_SHOULD_RETRY   0x08
 
#define BIO_FLAGS_BASE64_NO_NL   0x100
 
#define BIO_FLAGS_MEM_RDONLY   0x200
 
#define BIO_TYPE_NONE   0
 
#define BIO_TYPE_MEM   (1 | 0x0400)
 
#define BIO_TYPE_FILE   (2 | 0x0400)
 
#define BIO_TYPE_FD   (4 | 0x0400 | 0x0100)
 
#define BIO_TYPE_SOCKET   (5 | 0x0400 | 0x0100)
 
#define BIO_TYPE_NULL   (6 | 0x0400)
 
#define BIO_TYPE_SSL   (7 | 0x0200)
 
#define BIO_TYPE_MD   (8 | 0x0200) /* passive filter */
 
#define BIO_TYPE_BUFFER   (9 | 0x0200) /* filter */
 
#define BIO_TYPE_CIPHER   (10 | 0x0200) /* filter */
 
#define BIO_TYPE_BASE64   (11 | 0x0200) /* filter */
 
#define BIO_TYPE_CONNECT   (12 | 0x0400 | 0x0100) /* socket - connect */
 
#define BIO_TYPE_ACCEPT   (13 | 0x0400 | 0x0100) /* socket for accept */
 
#define BIO_TYPE_PROXY_CLIENT   (14 | 0x0200) /* client proxy BIO */
 
#define BIO_TYPE_PROXY_SERVER   (15 | 0x0200) /* server proxy BIO */
 
#define BIO_TYPE_NBIO_TEST   (16 | 0x0200) /* server proxy BIO */
 
#define BIO_TYPE_NULL_FILTER   (17 | 0x0200)
 
#define BIO_TYPE_BER   (18 | 0x0200) /* BER -> bin filter */
 
#define BIO_TYPE_BIO   (19 | 0x0400) /* (half a) BIO pair */
 
#define BIO_TYPE_LINEBUFFER   (20 | 0x0200) /* filter */
 
#define BIO_TYPE_DGRAM   (21 | 0x0400 | 0x0100)
 
#define BIO_TYPE_ASN1   (22 | 0x0200) /* filter */
 
#define BIO_TYPE_COMP   (23 | 0x0200) /* filter */
 
#define BIO_TYPE_DESCRIPTOR   0x0100 /* socket, fd, connect or accept */
 
#define BIO_TYPE_FILTER   0x0200
 
#define BIO_TYPE_SOURCE_SINK   0x0400
 
#define BIO_C_SET_CONNECT   100
 
#define BIO_C_DO_STATE_MACHINE   101
 
#define BIO_C_SET_NBIO   102
 
#define BIO_C_SET_PROXY_PARAM   103
 
#define BIO_C_SET_FD   104
 
#define BIO_C_GET_FD   105
 
#define BIO_C_SET_FILE_PTR   106
 
#define BIO_C_GET_FILE_PTR   107
 
#define BIO_C_SET_FILENAME   108
 
#define BIO_C_SET_SSL   109
 
#define BIO_C_GET_SSL   110
 
#define BIO_C_SET_MD   111
 
#define BIO_C_GET_MD   112
 
#define BIO_C_GET_CIPHER_STATUS   113
 
#define BIO_C_SET_BUF_MEM   114
 
#define BIO_C_GET_BUF_MEM_PTR   115
 
#define BIO_C_GET_BUFF_NUM_LINES   116
 
#define BIO_C_SET_BUFF_SIZE   117
 
#define BIO_C_SET_ACCEPT   118
 
#define BIO_C_SSL_MODE   119
 
#define BIO_C_GET_MD_CTX   120
 
#define BIO_C_GET_PROXY_PARAM   121
 
#define BIO_C_SET_BUFF_READ_DATA   122 /* data to read first */
 
#define BIO_C_GET_ACCEPT   124
 
#define BIO_C_SET_SSL_RENEGOTIATE_BYTES   125
 
#define BIO_C_GET_SSL_NUM_RENEGOTIATES   126
 
#define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT   127
 
#define BIO_C_FILE_SEEK   128
 
#define BIO_C_GET_CIPHER_CTX   129
 
#define BIO_C_SET_BUF_MEM_EOF_RETURN   130/*return end of input value*/
 
#define BIO_C_SET_BIND_MODE   131
 
#define BIO_C_GET_BIND_MODE   132
 
#define BIO_C_FILE_TELL   133
 
#define BIO_C_GET_SOCKS   134
 
#define BIO_C_SET_SOCKS   135
 
#define BIO_C_SET_WRITE_BUF_SIZE   136/* for BIO_s_bio */
 
#define BIO_C_GET_WRITE_BUF_SIZE   137
 
#define BIO_C_GET_WRITE_GUARANTEE   140
 
#define BIO_C_GET_READ_REQUEST   141
 
#define BIO_C_SHUTDOWN_WR   142
 
#define BIO_C_NREAD0   143
 
#define BIO_C_NREAD   144
 
#define BIO_C_NWRITE0   145
 
#define BIO_C_NWRITE   146
 
#define BIO_C_RESET_READ_REQUEST   147
 
#define BIO_C_SET_MD_CTX   148
 
#define BIO_C_SET_PREFIX   149
 
#define BIO_C_GET_PREFIX   150
 
#define BIO_C_SET_SUFFIX   151
 
#define BIO_C_GET_SUFFIX   152
 
#define BIO_C_SET_EX_ARG   153
 
#define BIO_C_GET_EX_ARG   154
 
#define BIO_R_BAD_FOPEN_MODE   100
 
#define BIO_R_BROKEN_PIPE   101
 
#define BIO_R_CONNECT_ERROR   102
 
#define BIO_R_ERROR_SETTING_NBIO   103
 
#define BIO_R_INVALID_ARGUMENT   104
 
#define BIO_R_IN_USE   105
 
#define BIO_R_KEEPALIVE   106
 
#define BIO_R_NBIO_CONNECT_ERROR   107
 
#define BIO_R_NO_HOSTNAME_SPECIFIED   108
 
#define BIO_R_NO_PORT_SPECIFIED   109
 
#define BIO_R_NO_SUCH_FILE   110
 
#define BIO_R_NULL_PARAMETER   111
 
#define BIO_R_SYS_LIB   112
 
#define BIO_R_UNABLE_TO_CREATE_SOCKET   113
 
#define BIO_R_UNINITIALIZED   114
 
#define BIO_R_UNSUPPORTED_METHOD   115
 
#define BIO_R_WRITE_TO_READ_ONLY_BIO   116
 

Typedefs

typedef long(* bio_info_cb) (BIO *bio, int event, const char *parg, int cmd, long larg, long return_value)
 

Functions

OPENSSL_EXPORT BIOBIO_new (const BIO_METHOD *type)
 
OPENSSL_EXPORT int BIO_free (BIO *bio)
 
OPENSSL_EXPORT void BIO_vfree (BIO *bio)
 
OPENSSL_EXPORT int BIO_up_ref (BIO *bio)
 
OPENSSL_EXPORT int BIO_read (BIO *bio, void *data, int len)
 
OPENSSL_EXPORT int BIO_gets (BIO *bio, char *buf, int size)
 
OPENSSL_EXPORT int BIO_write (BIO *bio, const void *data, int len)
 
OPENSSL_EXPORT int BIO_puts (BIO *bio, const char *buf)
 
OPENSSL_EXPORT int BIO_flush (BIO *bio)
 
OPENSSL_EXPORT long BIO_ctrl (BIO *bio, int cmd, long larg, void *parg)
 
OPENSSL_EXPORT char * BIO_ptr_ctrl (BIO *bp, int cmd, long larg)
 
OPENSSL_EXPORT long BIO_int_ctrl (BIO *bp, int cmd, long larg, int iarg)
 
OPENSSL_EXPORT int BIO_reset (BIO *bio)
 
OPENSSL_EXPORT int BIO_eof (BIO *bio)
 
OPENSSL_EXPORT void BIO_set_flags (BIO *bio, int flags)
 
OPENSSL_EXPORT int BIO_test_flags (const BIO *bio, int flags)
 
OPENSSL_EXPORT int BIO_should_read (const BIO *bio)
 
OPENSSL_EXPORT int BIO_should_write (const BIO *bio)
 
OPENSSL_EXPORT int BIO_should_retry (const BIO *bio)
 
OPENSSL_EXPORT int BIO_should_io_special (const BIO *bio)
 
OPENSSL_EXPORT int BIO_get_retry_reason (const BIO *bio)
 
OPENSSL_EXPORT void BIO_clear_flags (BIO *bio, int flags)
 
OPENSSL_EXPORT void BIO_set_retry_read (BIO *bio)
 
OPENSSL_EXPORT void BIO_set_retry_write (BIO *bio)
 
OPENSSL_EXPORT int BIO_get_retry_flags (BIO *bio)
 
OPENSSL_EXPORT void BIO_clear_retry_flags (BIO *bio)
 
OPENSSL_EXPORT int BIO_method_type (const BIO *bio)
 
OPENSSL_EXPORT long BIO_callback_ctrl (BIO *bio, int cmd, bio_info_cb fp)
 
OPENSSL_EXPORT size_t BIO_pending (const BIO *bio)
 
OPENSSL_EXPORT size_t BIO_ctrl_pending (const BIO *bio)
 
OPENSSL_EXPORT size_t BIO_wpending (const BIO *bio)
 
OPENSSL_EXPORT int BIO_set_close (BIO *bio, int close_flag)
 
OPENSSL_EXPORT void BIO_set_callback (BIO *bio, bio_info_cb callback_func)
 
OPENSSL_EXPORT void BIO_set_callback_arg (BIO *bio, char *arg)
 
OPENSSL_EXPORT char * BIO_get_callback_arg (const BIO *bio)
 
OPENSSL_EXPORT size_t BIO_number_read (const BIO *bio)
 
OPENSSL_EXPORT size_t BIO_number_written (const BIO *bio)
 
OPENSSL_EXPORT BIOBIO_push (BIO *bio, BIO *appended_bio)
 
OPENSSL_EXPORT BIOBIO_pop (BIO *bio)
 
OPENSSL_EXPORT BIOBIO_next (BIO *bio)
 
OPENSSL_EXPORT void BIO_free_all (BIO *bio)
 
OPENSSL_EXPORT BIOBIO_find_type (BIO *bio, int type)
 
OPENSSL_EXPORT void BIO_copy_next_retry (BIO *bio)
 
OPENSSL_EXPORT int BIO_printf (BIO *bio, const char *format,...) OPENSSL_PRINTF_FORMAT_FUNC(2
 
OPENSSL_EXPORT int OPENSSL_EXPORT int BIO_indent (BIO *bio, unsigned indent, unsigned max_indent)
 
OPENSSL_EXPORT int BIO_hexdump (BIO *bio, const uint8_t *data, size_t len, unsigned indent)
 
OPENSSL_EXPORT void BIO_print_errors (BIO *bio)
 
OPENSSL_EXPORT int BIO_read_asn1 (BIO *bio, uint8_t **out, size_t *out_len, size_t max_len)
 
OPENSSL_EXPORT const BIO_METHODBIO_s_mem (void)
 
OPENSSL_EXPORT BIOBIO_new_mem_buf (const void *buf, int len)
 
OPENSSL_EXPORT int BIO_mem_contents (const BIO *bio, const uint8_t **out_contents, size_t *out_len)
 
OPENSSL_EXPORT long BIO_get_mem_data (BIO *bio, char **contents)
 
OPENSSL_EXPORT int BIO_get_mem_ptr (BIO *bio, BUF_MEM **out)
 
OPENSSL_EXPORT int BIO_set_mem_buf (BIO *bio, BUF_MEM *b, int take_ownership)
 
OPENSSL_EXPORT int BIO_set_mem_eof_return (BIO *bio, int eof_value)
 
OPENSSL_EXPORT const BIO_METHODBIO_s_fd (void)
 
OPENSSL_EXPORT BIOBIO_new_fd (int fd, int close_flag)
 
OPENSSL_EXPORT int BIO_set_fd (BIO *bio, int fd, int close_flag)
 
OPENSSL_EXPORT int BIO_get_fd (BIO *bio, int *out_fd)
 
OPENSSL_EXPORT const BIO_METHODBIO_s_file (void)
 
OPENSSL_EXPORT BIOBIO_new_file (const char *filename, const char *mode)
 
OPENSSL_EXPORT BIOBIO_new_fp (FILE *stream, int close_flag)
 
OPENSSL_EXPORT int BIO_get_fp (BIO *bio, FILE **out_file)
 
OPENSSL_EXPORT int BIO_set_fp (BIO *bio, FILE *file, int close_flag)
 
OPENSSL_EXPORT int BIO_read_filename (BIO *bio, const char *filename)
 
OPENSSL_EXPORT int BIO_write_filename (BIO *bio, const char *filename)
 
OPENSSL_EXPORT int BIO_append_filename (BIO *bio, const char *filename)
 
OPENSSL_EXPORT int BIO_rw_filename (BIO *bio, const char *filename)
 
OPENSSL_EXPORT const BIO_METHODBIO_f_buffer (void)
 
OPENSSL_EXPORT int BIO_set_read_buffer_size (BIO *bio, int buffer_size)
 
OPENSSL_EXPORT int BIO_set_write_buffer_size (BIO *bio, int buffer_size)
 
OPENSSL_EXPORT const BIO_METHODBIO_s_socket (void)
 
OPENSSL_EXPORT BIOBIO_new_socket (int fd, int close_flag)
 
OPENSSL_EXPORT const BIO_METHODBIO_s_connect (void)
 
OPENSSL_EXPORT BIOBIO_new_connect (const char *host_and_optional_port)
 
OPENSSL_EXPORT int BIO_set_conn_hostname (BIO *bio, const char *host_and_optional_port)
 
OPENSSL_EXPORT int BIO_set_conn_port (BIO *bio, const char *port_str)
 
OPENSSL_EXPORT int BIO_set_conn_int_port (BIO *bio, const int *port)
 
OPENSSL_EXPORT int BIO_set_nbio (BIO *bio, int on)
 
OPENSSL_EXPORT int BIO_do_connect (BIO *bio)
 
OPENSSL_EXPORT int BIO_new_bio_pair (BIO **out1, size_t writebuf1, BIO **out2, size_t writebuf2)
 
OPENSSL_EXPORT int BIO_new_bio_pair_external_buf (BIO **bio1_p, size_t writebuf1_len, uint8_t *ext_writebuf1, BIO **bio2_p, size_t writebuf2_len, uint8_t *ext_writebuf2)
 
OPENSSL_EXPORT size_t BIO_ctrl_get_read_request (BIO *bio)
 
OPENSSL_EXPORT size_t BIO_ctrl_get_write_guarantee (BIO *bio)
 
OPENSSL_EXPORT int BIO_shutdown_wr (BIO *bio)
 
OPENSSL_EXPORT int BIO_zero_copy_get_read_buf (BIO *bio, uint8_t **out_read_buf, size_t *out_buf_offset, size_t *out_available_bytes)
 
OPENSSL_EXPORT int BIO_zero_copy_get_read_buf_done (BIO *bio, size_t bytes_read)
 
OPENSSL_EXPORT int BIO_zero_copy_get_write_buf (BIO *bio, uint8_t **out_write_buf, size_t *out_buf_offset, size_t *out_available_bytes)
 
OPENSSL_EXPORT int BIO_zero_copy_get_write_buf_done (BIO *bio, size_t bytes_written)
 
OPENSSL_EXPORT const BIO_METHODBIO_f_base64 (void)
 
OPENSSL_EXPORT void ERR_print_errors (BIO *bio)
 

Macro Definition Documentation

◆ BIO_C_DO_STATE_MACHINE

#define BIO_C_DO_STATE_MACHINE   101

◆ BIO_C_FILE_SEEK

#define BIO_C_FILE_SEEK   128

◆ BIO_C_FILE_TELL

#define BIO_C_FILE_TELL   133

◆ BIO_C_GET_ACCEPT

#define BIO_C_GET_ACCEPT   124

◆ BIO_C_GET_BIND_MODE

#define BIO_C_GET_BIND_MODE   132

◆ BIO_C_GET_BUF_MEM_PTR

#define BIO_C_GET_BUF_MEM_PTR   115

◆ BIO_C_GET_BUFF_NUM_LINES

#define BIO_C_GET_BUFF_NUM_LINES   116

◆ BIO_C_GET_CIPHER_CTX

#define BIO_C_GET_CIPHER_CTX   129

◆ BIO_C_GET_CIPHER_STATUS

#define BIO_C_GET_CIPHER_STATUS   113

◆ BIO_C_GET_EX_ARG

#define BIO_C_GET_EX_ARG   154

◆ BIO_C_GET_FD

#define BIO_C_GET_FD   105

◆ BIO_C_GET_FILE_PTR

#define BIO_C_GET_FILE_PTR   107

◆ BIO_C_GET_MD

#define BIO_C_GET_MD   112

◆ BIO_C_GET_MD_CTX

#define BIO_C_GET_MD_CTX   120

◆ BIO_C_GET_PREFIX

#define BIO_C_GET_PREFIX   150

◆ BIO_C_GET_PROXY_PARAM

#define BIO_C_GET_PROXY_PARAM   121

◆ BIO_C_GET_READ_REQUEST

#define BIO_C_GET_READ_REQUEST   141

◆ BIO_C_GET_SOCKS

#define BIO_C_GET_SOCKS   134

◆ BIO_C_GET_SSL

#define BIO_C_GET_SSL   110

◆ BIO_C_GET_SSL_NUM_RENEGOTIATES

#define BIO_C_GET_SSL_NUM_RENEGOTIATES   126

◆ BIO_C_GET_SUFFIX

#define BIO_C_GET_SUFFIX   152

◆ BIO_C_GET_WRITE_BUF_SIZE

#define BIO_C_GET_WRITE_BUF_SIZE   137

◆ BIO_C_GET_WRITE_GUARANTEE

#define BIO_C_GET_WRITE_GUARANTEE   140

◆ BIO_C_NREAD

#define BIO_C_NREAD   144

◆ BIO_C_NREAD0

#define BIO_C_NREAD0   143

◆ BIO_C_NWRITE

#define BIO_C_NWRITE   146

◆ BIO_C_NWRITE0

#define BIO_C_NWRITE0   145

◆ BIO_C_RESET_READ_REQUEST

#define BIO_C_RESET_READ_REQUEST   147

◆ BIO_C_SET_ACCEPT

#define BIO_C_SET_ACCEPT   118

◆ BIO_C_SET_BIND_MODE

#define BIO_C_SET_BIND_MODE   131

◆ BIO_C_SET_BUF_MEM

#define BIO_C_SET_BUF_MEM   114

◆ BIO_C_SET_BUF_MEM_EOF_RETURN

#define BIO_C_SET_BUF_MEM_EOF_RETURN   130/*return end of input value*/

◆ BIO_C_SET_BUFF_READ_DATA

#define BIO_C_SET_BUFF_READ_DATA   122 /* data to read first */

◆ BIO_C_SET_BUFF_SIZE

#define BIO_C_SET_BUFF_SIZE   117

◆ BIO_C_SET_CONNECT

#define BIO_C_SET_CONNECT   100

◆ BIO_C_SET_EX_ARG

#define BIO_C_SET_EX_ARG   153

◆ BIO_C_SET_FD

#define BIO_C_SET_FD   104

◆ BIO_C_SET_FILE_PTR

#define BIO_C_SET_FILE_PTR   106

◆ BIO_C_SET_FILENAME

#define BIO_C_SET_FILENAME   108

◆ BIO_C_SET_MD

#define BIO_C_SET_MD   111

◆ BIO_C_SET_MD_CTX

#define BIO_C_SET_MD_CTX   148

◆ BIO_C_SET_NBIO

#define BIO_C_SET_NBIO   102

◆ BIO_C_SET_PREFIX

#define BIO_C_SET_PREFIX   149

◆ BIO_C_SET_PROXY_PARAM

#define BIO_C_SET_PROXY_PARAM   103

◆ BIO_C_SET_SOCKS

#define BIO_C_SET_SOCKS   135

◆ BIO_C_SET_SSL

#define BIO_C_SET_SSL   109

◆ BIO_C_SET_SSL_RENEGOTIATE_BYTES

#define BIO_C_SET_SSL_RENEGOTIATE_BYTES   125

◆ BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT

#define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT   127

◆ BIO_C_SET_SUFFIX

#define BIO_C_SET_SUFFIX   151

◆ BIO_C_SET_WRITE_BUF_SIZE

#define BIO_C_SET_WRITE_BUF_SIZE   136/* for BIO_s_bio */

◆ BIO_C_SHUTDOWN_WR

#define BIO_C_SHUTDOWN_WR   142

◆ BIO_C_SSL_MODE

#define BIO_C_SSL_MODE   119

◆ BIO_CB_CTRL

#define BIO_CB_CTRL   0x06

◆ BIO_CB_FREE

#define BIO_CB_FREE   0x01

◆ BIO_CB_GETS

#define BIO_CB_GETS   0x05

◆ BIO_CB_PUTS

#define BIO_CB_PUTS   0x04

◆ BIO_CB_READ

#define BIO_CB_READ   0x02

◆ BIO_CB_RETURN

#define BIO_CB_RETURN   0x80

◆ BIO_CB_WRITE

#define BIO_CB_WRITE   0x03

◆ BIO_CLOSE

#define BIO_CLOSE   1

◆ BIO_CTRL_DGRAM_GET_FALLBACK_MTU

#define BIO_CTRL_DGRAM_GET_FALLBACK_MTU   47

◆ BIO_CTRL_DGRAM_GET_PEER

#define BIO_CTRL_DGRAM_GET_PEER   46

◆ BIO_CTRL_DGRAM_MTU_EXCEEDED

#define BIO_CTRL_DGRAM_MTU_EXCEEDED
Value:
43 /* check whether the MTU was exceed in
the previous write operation. */

◆ BIO_CTRL_DGRAM_QUERY_MTU

#define BIO_CTRL_DGRAM_QUERY_MTU   40 /* as kernel for current MTU */

◆ BIO_CTRL_DGRAM_SET_MTU

#define BIO_CTRL_DGRAM_SET_MTU
Value:
42 /* set cached value for MTU. want to use
this if asking the kernel fails */

◆ BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT

#define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT   45

◆ BIO_CTRL_DUP

#define BIO_CTRL_DUP   12

◆ BIO_CTRL_EOF

#define BIO_CTRL_EOF   2 /* opt - are we at the eof */

◆ BIO_CTRL_FLUSH

#define BIO_CTRL_FLUSH   11 /* opt - 'flush' buffered output */

◆ BIO_CTRL_GET

#define BIO_CTRL_GET   5 /* man - get the 'IO' type */

◆ BIO_CTRL_GET_CALLBACK

#define BIO_CTRL_GET_CALLBACK   15 /* opt - set callback function */

◆ BIO_CTRL_GET_CLOSE

#define BIO_CTRL_GET_CLOSE   8 /* man - set the 'close' on free */

◆ BIO_CTRL_INFO

#define BIO_CTRL_INFO   3 /* opt - extra tit-bits */

◆ BIO_CTRL_PENDING

#define BIO_CTRL_PENDING   10 /* opt - is their more data buffered */

◆ BIO_CTRL_POP

#define BIO_CTRL_POP   7

◆ BIO_CTRL_PUSH

#define BIO_CTRL_PUSH   6

◆ BIO_CTRL_RESET

#define BIO_CTRL_RESET   1 /* opt - rewind/zero etc */

◆ BIO_CTRL_SET

#define BIO_CTRL_SET   4 /* man - set the 'IO' type */

◆ BIO_CTRL_SET_CALLBACK

#define BIO_CTRL_SET_CALLBACK   14 /* opt - set callback function */

◆ BIO_CTRL_SET_CLOSE

#define BIO_CTRL_SET_CLOSE   9 /* man - set the 'close' on free */

◆ BIO_CTRL_SET_FILENAME

#define BIO_CTRL_SET_FILENAME   30 /* BIO_s_file special */

◆ BIO_CTRL_WPENDING

#define BIO_CTRL_WPENDING   13 /* opt - number of bytes still to write */

◆ BIO_FLAGS_BASE64_NO_NL

#define BIO_FLAGS_BASE64_NO_NL   0x100

◆ BIO_FLAGS_IO_SPECIAL

#define BIO_FLAGS_IO_SPECIAL   0x04

◆ BIO_FLAGS_MEM_RDONLY

#define BIO_FLAGS_MEM_RDONLY   0x200

◆ BIO_FLAGS_READ

#define BIO_FLAGS_READ   0x01

◆ BIO_FLAGS_RWS

#define BIO_FLAGS_RWS   (BIO_FLAGS_READ | BIO_FLAGS_WRITE | BIO_FLAGS_IO_SPECIAL)

◆ BIO_FLAGS_SHOULD_RETRY

#define BIO_FLAGS_SHOULD_RETRY   0x08

◆ BIO_FLAGS_WRITE

#define BIO_FLAGS_WRITE   0x02

◆ BIO_NOCLOSE

#define BIO_NOCLOSE   0

◆ BIO_R_BAD_FOPEN_MODE

#define BIO_R_BAD_FOPEN_MODE   100

◆ BIO_R_BROKEN_PIPE

#define BIO_R_BROKEN_PIPE   101

◆ BIO_R_CONNECT_ERROR

#define BIO_R_CONNECT_ERROR   102

◆ BIO_R_ERROR_SETTING_NBIO

#define BIO_R_ERROR_SETTING_NBIO   103

◆ BIO_R_IN_USE

#define BIO_R_IN_USE   105

◆ BIO_R_INVALID_ARGUMENT

#define BIO_R_INVALID_ARGUMENT   104

◆ BIO_R_KEEPALIVE

#define BIO_R_KEEPALIVE   106

◆ BIO_R_NBIO_CONNECT_ERROR

#define BIO_R_NBIO_CONNECT_ERROR   107

◆ BIO_R_NO_HOSTNAME_SPECIFIED

#define BIO_R_NO_HOSTNAME_SPECIFIED   108

◆ BIO_R_NO_PORT_SPECIFIED

#define BIO_R_NO_PORT_SPECIFIED   109

◆ BIO_R_NO_SUCH_FILE

#define BIO_R_NO_SUCH_FILE   110

◆ BIO_R_NULL_PARAMETER

#define BIO_R_NULL_PARAMETER   111

◆ BIO_R_SYS_LIB

#define BIO_R_SYS_LIB   112

◆ BIO_R_UNABLE_TO_CREATE_SOCKET

#define BIO_R_UNABLE_TO_CREATE_SOCKET   113

◆ BIO_R_UNINITIALIZED

#define BIO_R_UNINITIALIZED   114

◆ BIO_R_UNSUPPORTED_METHOD

#define BIO_R_UNSUPPORTED_METHOD   115

◆ BIO_R_WRITE_TO_READ_ONLY_BIO

#define BIO_R_WRITE_TO_READ_ONLY_BIO   116

◆ BIO_RR_ACCEPT

#define BIO_RR_ACCEPT   0x03

◆ BIO_RR_CONNECT

#define BIO_RR_CONNECT   0x02

◆ BIO_RR_SSL_CHANNEL_ID_LOOKUP

#define BIO_RR_SSL_CHANNEL_ID_LOOKUP   0x04

◆ BIO_RR_SSL_X509_LOOKUP

#define BIO_RR_SSL_X509_LOOKUP   0x01

◆ BIO_TYPE_ACCEPT

#define BIO_TYPE_ACCEPT   (13 | 0x0400 | 0x0100) /* socket for accept */

◆ BIO_TYPE_ASN1

#define BIO_TYPE_ASN1   (22 | 0x0200) /* filter */

◆ BIO_TYPE_BASE64

#define BIO_TYPE_BASE64   (11 | 0x0200) /* filter */

◆ BIO_TYPE_BER

#define BIO_TYPE_BER   (18 | 0x0200) /* BER -> bin filter */

◆ BIO_TYPE_BIO

#define BIO_TYPE_BIO   (19 | 0x0400) /* (half a) BIO pair */

◆ BIO_TYPE_BUFFER

#define BIO_TYPE_BUFFER   (9 | 0x0200) /* filter */

◆ BIO_TYPE_CIPHER

#define BIO_TYPE_CIPHER   (10 | 0x0200) /* filter */

◆ BIO_TYPE_COMP

#define BIO_TYPE_COMP   (23 | 0x0200) /* filter */

◆ BIO_TYPE_CONNECT

#define BIO_TYPE_CONNECT   (12 | 0x0400 | 0x0100) /* socket - connect */

◆ BIO_TYPE_DESCRIPTOR

#define BIO_TYPE_DESCRIPTOR   0x0100 /* socket, fd, connect or accept */

◆ BIO_TYPE_DGRAM

#define BIO_TYPE_DGRAM   (21 | 0x0400 | 0x0100)

◆ BIO_TYPE_FD

#define BIO_TYPE_FD   (4 | 0x0400 | 0x0100)

◆ BIO_TYPE_FILE

#define BIO_TYPE_FILE   (2 | 0x0400)

◆ BIO_TYPE_FILTER

#define BIO_TYPE_FILTER   0x0200

◆ BIO_TYPE_LINEBUFFER

#define BIO_TYPE_LINEBUFFER   (20 | 0x0200) /* filter */

◆ BIO_TYPE_MD

#define BIO_TYPE_MD   (8 | 0x0200) /* passive filter */

◆ BIO_TYPE_MEM

#define BIO_TYPE_MEM   (1 | 0x0400)

◆ BIO_TYPE_NBIO_TEST

#define BIO_TYPE_NBIO_TEST   (16 | 0x0200) /* server proxy BIO */

◆ BIO_TYPE_NONE

#define BIO_TYPE_NONE   0

◆ BIO_TYPE_NULL

#define BIO_TYPE_NULL   (6 | 0x0400)

◆ BIO_TYPE_NULL_FILTER

#define BIO_TYPE_NULL_FILTER   (17 | 0x0200)

◆ BIO_TYPE_PROXY_CLIENT

#define BIO_TYPE_PROXY_CLIENT   (14 | 0x0200) /* client proxy BIO */

◆ BIO_TYPE_PROXY_SERVER

#define BIO_TYPE_PROXY_SERVER   (15 | 0x0200) /* server proxy BIO */

◆ BIO_TYPE_SOCKET

#define BIO_TYPE_SOCKET   (5 | 0x0400 | 0x0100)

◆ BIO_TYPE_SOURCE_SINK

#define BIO_TYPE_SOURCE_SINK   0x0400

◆ BIO_TYPE_SSL

#define BIO_TYPE_SSL   (7 | 0x0200)

Typedef Documentation

◆ bio_info_cb

typedef long(* bio_info_cb) (BIO *bio, int event, const char *parg, int cmd, long larg, long return_value)

Function Documentation

◆ BIO_append_filename()

OPENSSL_EXPORT int BIO_append_filename ( BIO bio,
const char *  filename 
)

◆ BIO_callback_ctrl()

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

◆ BIO_clear_flags()

OPENSSL_EXPORT void BIO_clear_flags ( BIO bio,
int  flags 
)

◆ BIO_clear_retry_flags()

OPENSSL_EXPORT void BIO_clear_retry_flags ( BIO bio)

◆ BIO_copy_next_retry()

OPENSSL_EXPORT void BIO_copy_next_retry ( BIO bio)

◆ BIO_ctrl()

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

◆ BIO_ctrl_get_read_request()

OPENSSL_EXPORT size_t BIO_ctrl_get_read_request ( BIO bio)

◆ BIO_ctrl_get_write_guarantee()

OPENSSL_EXPORT size_t BIO_ctrl_get_write_guarantee ( BIO bio)

◆ BIO_ctrl_pending()

OPENSSL_EXPORT size_t BIO_ctrl_pending ( const BIO bio)

◆ BIO_do_connect()

OPENSSL_EXPORT int BIO_do_connect ( BIO bio)

◆ BIO_eof()

OPENSSL_EXPORT int BIO_eof ( BIO bio)

◆ BIO_f_base64()

OPENSSL_EXPORT const BIO_METHOD* BIO_f_base64 ( void  )

◆ BIO_f_buffer()

OPENSSL_EXPORT const BIO_METHOD* BIO_f_buffer ( void  )

◆ BIO_find_type()

OPENSSL_EXPORT BIO* BIO_find_type ( BIO bio,
int  type 
)

◆ BIO_flush()

OPENSSL_EXPORT int BIO_flush ( BIO bio)

◆ BIO_free()

OPENSSL_EXPORT int BIO_free ( BIO bio)

◆ BIO_free_all()

OPENSSL_EXPORT void BIO_free_all ( BIO bio)

◆ BIO_get_callback_arg()

OPENSSL_EXPORT char* BIO_get_callback_arg ( const BIO bio)

◆ BIO_get_fd()

OPENSSL_EXPORT int BIO_get_fd ( BIO bio,
int *  out_fd 
)

◆ BIO_get_fp()

OPENSSL_EXPORT int BIO_get_fp ( BIO bio,
FILE **  out_file 
)

◆ BIO_get_mem_data()

OPENSSL_EXPORT long BIO_get_mem_data ( BIO bio,
char **  contents 
)

◆ BIO_get_mem_ptr()

OPENSSL_EXPORT int BIO_get_mem_ptr ( BIO bio,
BUF_MEM **  out 
)

◆ BIO_get_retry_flags()

OPENSSL_EXPORT int BIO_get_retry_flags ( BIO bio)

◆ BIO_get_retry_reason()

OPENSSL_EXPORT int BIO_get_retry_reason ( const BIO bio)

◆ BIO_gets()

OPENSSL_EXPORT int BIO_gets ( BIO bio,
char *  buf,
int  size 
)

◆ BIO_hexdump()

OPENSSL_EXPORT int BIO_hexdump ( BIO bio,
const uint8_t data,
size_t  len,
unsigned  indent 
)

◆ BIO_indent()

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

◆ BIO_int_ctrl()

OPENSSL_EXPORT long BIO_int_ctrl ( BIO bp,
int  cmd,
long  larg,
int  iarg 
)

◆ BIO_mem_contents()

OPENSSL_EXPORT int BIO_mem_contents ( const BIO bio,
const uint8_t **  out_contents,
size_t out_len 
)

◆ BIO_method_type()

OPENSSL_EXPORT int BIO_method_type ( const BIO bio)

◆ BIO_new()

OPENSSL_EXPORT BIO* BIO_new ( const BIO_METHOD type)

◆ BIO_new_bio_pair()

OPENSSL_EXPORT int BIO_new_bio_pair ( BIO **  out1,
size_t  writebuf1,
BIO **  out2,
size_t  writebuf2 
)

◆ BIO_new_bio_pair_external_buf()

OPENSSL_EXPORT int BIO_new_bio_pair_external_buf ( BIO **  bio1_p,
size_t  writebuf1_len,
uint8_t ext_writebuf1,
BIO **  bio2_p,
size_t  writebuf2_len,
uint8_t ext_writebuf2 
)

◆ BIO_new_connect()

OPENSSL_EXPORT BIO* BIO_new_connect ( const char *  host_and_optional_port)

◆ BIO_new_fd()

OPENSSL_EXPORT BIO* BIO_new_fd ( int  fd,
int  close_flag 
)

◆ BIO_new_file()

OPENSSL_EXPORT BIO* BIO_new_file ( const char *  filename,
const char *  mode 
)

◆ BIO_new_fp()

OPENSSL_EXPORT BIO* BIO_new_fp ( FILE *  stream,
int  close_flag 
)

◆ BIO_new_mem_buf()

OPENSSL_EXPORT BIO* BIO_new_mem_buf ( const void buf,
int  len 
)

◆ BIO_new_socket()

OPENSSL_EXPORT BIO* BIO_new_socket ( int  fd,
int  close_flag 
)

◆ BIO_next()

OPENSSL_EXPORT BIO* BIO_next ( BIO bio)

◆ BIO_number_read()

OPENSSL_EXPORT size_t BIO_number_read ( const BIO bio)

◆ BIO_number_written()

OPENSSL_EXPORT size_t BIO_number_written ( const BIO bio)

◆ BIO_pending()

OPENSSL_EXPORT size_t BIO_pending ( const BIO bio)

◆ BIO_pop()

OPENSSL_EXPORT BIO* BIO_pop ( BIO bio)

◆ BIO_print_errors()

OPENSSL_EXPORT void BIO_print_errors ( BIO bio)

◆ BIO_printf()

OPENSSL_EXPORT int BIO_printf ( BIO bio,
const char *  format,
  ... 
)

◆ BIO_ptr_ctrl()

OPENSSL_EXPORT char* BIO_ptr_ctrl ( BIO bp,
int  cmd,
long  larg 
)

◆ BIO_push()

OPENSSL_EXPORT BIO* BIO_push ( BIO bio,
BIO appended_bio 
)

◆ BIO_puts()

OPENSSL_EXPORT int BIO_puts ( BIO bio,
const char *  buf 
)

◆ BIO_read()

OPENSSL_EXPORT int BIO_read ( BIO bio,
void data,
int  len 
)

◆ BIO_read_asn1()

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

◆ BIO_read_filename()

OPENSSL_EXPORT int BIO_read_filename ( BIO bio,
const char *  filename 
)

◆ BIO_reset()

OPENSSL_EXPORT int BIO_reset ( BIO bio)

◆ BIO_rw_filename()

OPENSSL_EXPORT int BIO_rw_filename ( BIO bio,
const char *  filename 
)

◆ BIO_s_connect()

OPENSSL_EXPORT const BIO_METHOD* BIO_s_connect ( void  )

◆ BIO_s_fd()

OPENSSL_EXPORT const BIO_METHOD* BIO_s_fd ( void  )

◆ BIO_s_file()

OPENSSL_EXPORT const BIO_METHOD* BIO_s_file ( void  )

◆ BIO_s_mem()

OPENSSL_EXPORT const BIO_METHOD* BIO_s_mem ( void  )

◆ BIO_s_socket()

OPENSSL_EXPORT const BIO_METHOD* BIO_s_socket ( void  )

◆ BIO_set_callback()

OPENSSL_EXPORT void BIO_set_callback ( BIO bio,
bio_info_cb  callback_func 
)

◆ BIO_set_callback_arg()

OPENSSL_EXPORT void BIO_set_callback_arg ( BIO bio,
char *  arg 
)

◆ BIO_set_close()

OPENSSL_EXPORT int BIO_set_close ( BIO bio,
int  close_flag 
)

◆ BIO_set_conn_hostname()

OPENSSL_EXPORT int BIO_set_conn_hostname ( BIO bio,
const char *  host_and_optional_port 
)

◆ BIO_set_conn_int_port()

OPENSSL_EXPORT int BIO_set_conn_int_port ( BIO bio,
const int *  port 
)

◆ BIO_set_conn_port()

OPENSSL_EXPORT int BIO_set_conn_port ( BIO bio,
const char *  port_str 
)

◆ BIO_set_fd()

OPENSSL_EXPORT int BIO_set_fd ( BIO bio,
int  fd,
int  close_flag 
)

◆ BIO_set_flags()

OPENSSL_EXPORT void BIO_set_flags ( BIO bio,
int  flags 
)

◆ BIO_set_fp()

OPENSSL_EXPORT int BIO_set_fp ( BIO bio,
FILE *  file,
int  close_flag 
)

◆ BIO_set_mem_buf()

OPENSSL_EXPORT int BIO_set_mem_buf ( BIO bio,
BUF_MEM b,
int  take_ownership 
)

◆ BIO_set_mem_eof_return()

OPENSSL_EXPORT int BIO_set_mem_eof_return ( BIO bio,
int  eof_value 
)

◆ BIO_set_nbio()

OPENSSL_EXPORT int BIO_set_nbio ( BIO bio,
int  on 
)

◆ BIO_set_read_buffer_size()

OPENSSL_EXPORT int BIO_set_read_buffer_size ( BIO bio,
int  buffer_size 
)

◆ BIO_set_retry_read()

OPENSSL_EXPORT void BIO_set_retry_read ( BIO bio)

◆ BIO_set_retry_write()

OPENSSL_EXPORT void BIO_set_retry_write ( BIO bio)

◆ BIO_set_write_buffer_size()

OPENSSL_EXPORT int BIO_set_write_buffer_size ( BIO bio,
int  buffer_size 
)

◆ BIO_should_io_special()

OPENSSL_EXPORT int BIO_should_io_special ( const BIO bio)

◆ BIO_should_read()

OPENSSL_EXPORT int BIO_should_read ( const BIO bio)

◆ BIO_should_retry()

OPENSSL_EXPORT int BIO_should_retry ( const BIO bio)

◆ BIO_should_write()

OPENSSL_EXPORT int BIO_should_write ( const BIO bio)

◆ BIO_shutdown_wr()

OPENSSL_EXPORT int BIO_shutdown_wr ( BIO bio)

◆ BIO_test_flags()

OPENSSL_EXPORT int BIO_test_flags ( const BIO bio,
int  flags 
)

◆ BIO_up_ref()

OPENSSL_EXPORT int BIO_up_ref ( BIO bio)

◆ BIO_vfree()

OPENSSL_EXPORT void BIO_vfree ( BIO bio)

◆ BIO_wpending()

OPENSSL_EXPORT size_t BIO_wpending ( const BIO bio)

◆ BIO_write()

OPENSSL_EXPORT int BIO_write ( BIO bio,
const void data,
int  len 
)

◆ BIO_write_filename()

OPENSSL_EXPORT int BIO_write_filename ( BIO bio,
const char *  filename 
)

◆ BIO_zero_copy_get_read_buf()

OPENSSL_EXPORT int BIO_zero_copy_get_read_buf ( BIO bio,
uint8_t **  out_read_buf,
size_t out_buf_offset,
size_t out_available_bytes 
)

◆ BIO_zero_copy_get_read_buf_done()

OPENSSL_EXPORT int BIO_zero_copy_get_read_buf_done ( BIO bio,
size_t  bytes_read 
)

◆ BIO_zero_copy_get_write_buf()

OPENSSL_EXPORT int BIO_zero_copy_get_write_buf ( BIO bio,
uint8_t **  out_write_buf,
size_t out_buf_offset,
size_t out_available_bytes 
)

◆ BIO_zero_copy_get_write_buf_done()

OPENSSL_EXPORT int BIO_zero_copy_get_write_buf_done ( BIO bio,
size_t  bytes_written 
)

◆ ERR_print_errors()

OPENSSL_EXPORT void ERR_print_errors ( BIO bio)