Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/openssl
File: bio.h
/*
[0] Fix | Delete
* Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved.
[1] Fix | Delete
*
[2] Fix | Delete
* Licensed under the OpenSSL license (the "License"). You may not use
[3] Fix | Delete
* this file except in compliance with the License. You can obtain a copy
[4] Fix | Delete
* in the file LICENSE in the source distribution or at
[5] Fix | Delete
* https://www.openssl.org/source/license.html
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
#ifndef HEADER_BIO_H
[9] Fix | Delete
# define HEADER_BIO_H
[10] Fix | Delete
[11] Fix | Delete
# include <openssl/e_os2.h>
[12] Fix | Delete
[13] Fix | Delete
# ifndef OPENSSL_NO_STDIO
[14] Fix | Delete
# include <stdio.h>
[15] Fix | Delete
# endif
[16] Fix | Delete
# include <stdarg.h>
[17] Fix | Delete
[18] Fix | Delete
# include <openssl/crypto.h>
[19] Fix | Delete
# include <openssl/bioerr.h>
[20] Fix | Delete
[21] Fix | Delete
#ifdef __cplusplus
[22] Fix | Delete
extern "C" {
[23] Fix | Delete
#endif
[24] Fix | Delete
[25] Fix | Delete
/* There are the classes of BIOs */
[26] Fix | Delete
# define BIO_TYPE_DESCRIPTOR 0x0100 /* socket, fd, connect or accept */
[27] Fix | Delete
# define BIO_TYPE_FILTER 0x0200
[28] Fix | Delete
# define BIO_TYPE_SOURCE_SINK 0x0400
[29] Fix | Delete
[30] Fix | Delete
/* These are the 'types' of BIOs */
[31] Fix | Delete
# define BIO_TYPE_NONE 0
[32] Fix | Delete
# define BIO_TYPE_MEM ( 1|BIO_TYPE_SOURCE_SINK)
[33] Fix | Delete
# define BIO_TYPE_FILE ( 2|BIO_TYPE_SOURCE_SINK)
[34] Fix | Delete
[35] Fix | Delete
# define BIO_TYPE_FD ( 4|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
[36] Fix | Delete
# define BIO_TYPE_SOCKET ( 5|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
[37] Fix | Delete
# define BIO_TYPE_NULL ( 6|BIO_TYPE_SOURCE_SINK)
[38] Fix | Delete
# define BIO_TYPE_SSL ( 7|BIO_TYPE_FILTER)
[39] Fix | Delete
# define BIO_TYPE_MD ( 8|BIO_TYPE_FILTER)
[40] Fix | Delete
# define BIO_TYPE_BUFFER ( 9|BIO_TYPE_FILTER)
[41] Fix | Delete
# define BIO_TYPE_CIPHER (10|BIO_TYPE_FILTER)
[42] Fix | Delete
# define BIO_TYPE_BASE64 (11|BIO_TYPE_FILTER)
[43] Fix | Delete
# define BIO_TYPE_CONNECT (12|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
[44] Fix | Delete
# define BIO_TYPE_ACCEPT (13|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
[45] Fix | Delete
[46] Fix | Delete
# define BIO_TYPE_NBIO_TEST (16|BIO_TYPE_FILTER)/* server proxy BIO */
[47] Fix | Delete
# define BIO_TYPE_NULL_FILTER (17|BIO_TYPE_FILTER)
[48] Fix | Delete
# define BIO_TYPE_BIO (19|BIO_TYPE_SOURCE_SINK)/* half a BIO pair */
[49] Fix | Delete
# define BIO_TYPE_LINEBUFFER (20|BIO_TYPE_FILTER)
[50] Fix | Delete
# define BIO_TYPE_DGRAM (21|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
[51] Fix | Delete
# define BIO_TYPE_ASN1 (22|BIO_TYPE_FILTER)
[52] Fix | Delete
# define BIO_TYPE_COMP (23|BIO_TYPE_FILTER)
[53] Fix | Delete
# ifndef OPENSSL_NO_SCTP
[54] Fix | Delete
# define BIO_TYPE_DGRAM_SCTP (24|BIO_TYPE_SOURCE_SINK|BIO_TYPE_DESCRIPTOR)
[55] Fix | Delete
# endif
[56] Fix | Delete
[57] Fix | Delete
#define BIO_TYPE_START 128
[58] Fix | Delete
[59] Fix | Delete
/*
[60] Fix | Delete
* BIO_FILENAME_READ|BIO_CLOSE to open or close on free.
[61] Fix | Delete
* BIO_set_fp(in,stdin,BIO_NOCLOSE);
[62] Fix | Delete
*/
[63] Fix | Delete
# define BIO_NOCLOSE 0x00
[64] Fix | Delete
# define BIO_CLOSE 0x01
[65] Fix | Delete
[66] Fix | Delete
/*
[67] Fix | Delete
* These are used in the following macros and are passed to BIO_ctrl()
[68] Fix | Delete
*/
[69] Fix | Delete
# define BIO_CTRL_RESET 1/* opt - rewind/zero etc */
[70] Fix | Delete
# define BIO_CTRL_EOF 2/* opt - are we at the eof */
[71] Fix | Delete
# define BIO_CTRL_INFO 3/* opt - extra tit-bits */
[72] Fix | Delete
# define BIO_CTRL_SET 4/* man - set the 'IO' type */
[73] Fix | Delete
# define BIO_CTRL_GET 5/* man - get the 'IO' type */
[74] Fix | Delete
# define BIO_CTRL_PUSH 6/* opt - internal, used to signify change */
[75] Fix | Delete
# define BIO_CTRL_POP 7/* opt - internal, used to signify change */
[76] Fix | Delete
# define BIO_CTRL_GET_CLOSE 8/* man - set the 'close' on free */
[77] Fix | Delete
# define BIO_CTRL_SET_CLOSE 9/* man - set the 'close' on free */
[78] Fix | Delete
# define BIO_CTRL_PENDING 10/* opt - is their more data buffered */
[79] Fix | Delete
# define BIO_CTRL_FLUSH 11/* opt - 'flush' buffered output */
[80] Fix | Delete
# define BIO_CTRL_DUP 12/* man - extra stuff for 'duped' BIO */
[81] Fix | Delete
# define BIO_CTRL_WPENDING 13/* opt - number of bytes still to write */
[82] Fix | Delete
# define BIO_CTRL_SET_CALLBACK 14/* opt - set callback function */
[83] Fix | Delete
# define BIO_CTRL_GET_CALLBACK 15/* opt - set callback function */
[84] Fix | Delete
[85] Fix | Delete
# define BIO_CTRL_PEEK 29/* BIO_f_buffer special */
[86] Fix | Delete
# define BIO_CTRL_SET_FILENAME 30/* BIO_s_file special */
[87] Fix | Delete
[88] Fix | Delete
/* dgram BIO stuff */
[89] Fix | Delete
# define BIO_CTRL_DGRAM_CONNECT 31/* BIO dgram special */
[90] Fix | Delete
# define BIO_CTRL_DGRAM_SET_CONNECTED 32/* allow for an externally connected
[91] Fix | Delete
* socket to be passed in */
[92] Fix | Delete
# define BIO_CTRL_DGRAM_SET_RECV_TIMEOUT 33/* setsockopt, essentially */
[93] Fix | Delete
# define BIO_CTRL_DGRAM_GET_RECV_TIMEOUT 34/* getsockopt, essentially */
[94] Fix | Delete
# define BIO_CTRL_DGRAM_SET_SEND_TIMEOUT 35/* setsockopt, essentially */
[95] Fix | Delete
# define BIO_CTRL_DGRAM_GET_SEND_TIMEOUT 36/* getsockopt, essentially */
[96] Fix | Delete
[97] Fix | Delete
# define BIO_CTRL_DGRAM_GET_RECV_TIMER_EXP 37/* flag whether the last */
[98] Fix | Delete
# define BIO_CTRL_DGRAM_GET_SEND_TIMER_EXP 38/* I/O operation tiemd out */
[99] Fix | Delete
[100] Fix | Delete
/* #ifdef IP_MTU_DISCOVER */
[101] Fix | Delete
# define BIO_CTRL_DGRAM_MTU_DISCOVER 39/* set DF bit on egress packets */
[102] Fix | Delete
/* #endif */
[103] Fix | Delete
[104] Fix | Delete
# define BIO_CTRL_DGRAM_QUERY_MTU 40/* as kernel for current MTU */
[105] Fix | Delete
# define BIO_CTRL_DGRAM_GET_FALLBACK_MTU 47
[106] Fix | Delete
# define BIO_CTRL_DGRAM_GET_MTU 41/* get cached value for MTU */
[107] Fix | Delete
# define BIO_CTRL_DGRAM_SET_MTU 42/* set cached value for MTU.
[108] Fix | Delete
* want to use this if asking
[109] Fix | Delete
* the kernel fails */
[110] Fix | Delete
[111] Fix | Delete
# define BIO_CTRL_DGRAM_MTU_EXCEEDED 43/* check whether the MTU was
[112] Fix | Delete
* exceed in the previous write
[113] Fix | Delete
* operation */
[114] Fix | Delete
[115] Fix | Delete
# define BIO_CTRL_DGRAM_GET_PEER 46
[116] Fix | Delete
# define BIO_CTRL_DGRAM_SET_PEER 44/* Destination for the data */
[117] Fix | Delete
[118] Fix | Delete
# define BIO_CTRL_DGRAM_SET_NEXT_TIMEOUT 45/* Next DTLS handshake timeout
[119] Fix | Delete
* to adjust socket timeouts */
[120] Fix | Delete
# define BIO_CTRL_DGRAM_SET_DONT_FRAG 48
[121] Fix | Delete
[122] Fix | Delete
# define BIO_CTRL_DGRAM_GET_MTU_OVERHEAD 49
[123] Fix | Delete
[124] Fix | Delete
/* Deliberately outside of OPENSSL_NO_SCTP - used in bss_dgram.c */
[125] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_SET_IN_HANDSHAKE 50
[126] Fix | Delete
# ifndef OPENSSL_NO_SCTP
[127] Fix | Delete
/* SCTP stuff */
[128] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_ADD_AUTH_KEY 51
[129] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_NEXT_AUTH_KEY 52
[130] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_AUTH_CCS_RCVD 53
[131] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_GET_SNDINFO 60
[132] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_SET_SNDINFO 61
[133] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_GET_RCVINFO 62
[134] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_SET_RCVINFO 63
[135] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_GET_PRINFO 64
[136] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_SET_PRINFO 65
[137] Fix | Delete
# define BIO_CTRL_DGRAM_SCTP_SAVE_SHUTDOWN 70
[138] Fix | Delete
# endif
[139] Fix | Delete
[140] Fix | Delete
# define BIO_CTRL_DGRAM_SET_PEEK_MODE 71
[141] Fix | Delete
[142] Fix | Delete
/* modifiers */
[143] Fix | Delete
# define BIO_FP_READ 0x02
[144] Fix | Delete
# define BIO_FP_WRITE 0x04
[145] Fix | Delete
# define BIO_FP_APPEND 0x08
[146] Fix | Delete
# define BIO_FP_TEXT 0x10
[147] Fix | Delete
[148] Fix | Delete
# define BIO_FLAGS_READ 0x01
[149] Fix | Delete
# define BIO_FLAGS_WRITE 0x02
[150] Fix | Delete
# define BIO_FLAGS_IO_SPECIAL 0x04
[151] Fix | Delete
# define BIO_FLAGS_RWS (BIO_FLAGS_READ|BIO_FLAGS_WRITE|BIO_FLAGS_IO_SPECIAL)
[152] Fix | Delete
# define BIO_FLAGS_SHOULD_RETRY 0x08
[153] Fix | Delete
# ifndef BIO_FLAGS_UPLINK
[154] Fix | Delete
/*
[155] Fix | Delete
* "UPLINK" flag denotes file descriptors provided by application. It
[156] Fix | Delete
* defaults to 0, as most platforms don't require UPLINK interface.
[157] Fix | Delete
*/
[158] Fix | Delete
# define BIO_FLAGS_UPLINK 0
[159] Fix | Delete
# endif
[160] Fix | Delete
[161] Fix | Delete
# define BIO_FLAGS_BASE64_NO_NL 0x100
[162] Fix | Delete
[163] Fix | Delete
/*
[164] Fix | Delete
* This is used with memory BIOs:
[165] Fix | Delete
* BIO_FLAGS_MEM_RDONLY means we shouldn't free up or change the data in any way;
[166] Fix | Delete
* BIO_FLAGS_NONCLEAR_RST means we shouldn't clear data on reset.
[167] Fix | Delete
*/
[168] Fix | Delete
# define BIO_FLAGS_MEM_RDONLY 0x200
[169] Fix | Delete
# define BIO_FLAGS_NONCLEAR_RST 0x400
[170] Fix | Delete
# define BIO_FLAGS_IN_EOF 0x800
[171] Fix | Delete
[172] Fix | Delete
typedef union bio_addr_st BIO_ADDR;
[173] Fix | Delete
typedef struct bio_addrinfo_st BIO_ADDRINFO;
[174] Fix | Delete
[175] Fix | Delete
int BIO_get_new_index(void);
[176] Fix | Delete
void BIO_set_flags(BIO *b, int flags);
[177] Fix | Delete
int BIO_test_flags(const BIO *b, int flags);
[178] Fix | Delete
void BIO_clear_flags(BIO *b, int flags);
[179] Fix | Delete
[180] Fix | Delete
# define BIO_get_flags(b) BIO_test_flags(b, ~(0x0))
[181] Fix | Delete
# define BIO_set_retry_special(b) \
[182] Fix | Delete
BIO_set_flags(b, (BIO_FLAGS_IO_SPECIAL|BIO_FLAGS_SHOULD_RETRY))
[183] Fix | Delete
# define BIO_set_retry_read(b) \
[184] Fix | Delete
BIO_set_flags(b, (BIO_FLAGS_READ|BIO_FLAGS_SHOULD_RETRY))
[185] Fix | Delete
# define BIO_set_retry_write(b) \
[186] Fix | Delete
BIO_set_flags(b, (BIO_FLAGS_WRITE|BIO_FLAGS_SHOULD_RETRY))
[187] Fix | Delete
[188] Fix | Delete
/* These are normally used internally in BIOs */
[189] Fix | Delete
# define BIO_clear_retry_flags(b) \
[190] Fix | Delete
BIO_clear_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
[191] Fix | Delete
# define BIO_get_retry_flags(b) \
[192] Fix | Delete
BIO_test_flags(b, (BIO_FLAGS_RWS|BIO_FLAGS_SHOULD_RETRY))
[193] Fix | Delete
[194] Fix | Delete
/* These should be used by the application to tell why we should retry */
[195] Fix | Delete
# define BIO_should_read(a) BIO_test_flags(a, BIO_FLAGS_READ)
[196] Fix | Delete
# define BIO_should_write(a) BIO_test_flags(a, BIO_FLAGS_WRITE)
[197] Fix | Delete
# define BIO_should_io_special(a) BIO_test_flags(a, BIO_FLAGS_IO_SPECIAL)
[198] Fix | Delete
# define BIO_retry_type(a) BIO_test_flags(a, BIO_FLAGS_RWS)
[199] Fix | Delete
# define BIO_should_retry(a) BIO_test_flags(a, BIO_FLAGS_SHOULD_RETRY)
[200] Fix | Delete
[201] Fix | Delete
/*
[202] Fix | Delete
* The next three are used in conjunction with the BIO_should_io_special()
[203] Fix | Delete
* condition. After this returns true, BIO *BIO_get_retry_BIO(BIO *bio, int
[204] Fix | Delete
* *reason); will walk the BIO stack and return the 'reason' for the special
[205] Fix | Delete
* and the offending BIO. Given a BIO, BIO_get_retry_reason(bio) will return
[206] Fix | Delete
* the code.
[207] Fix | Delete
*/
[208] Fix | Delete
/*
[209] Fix | Delete
* Returned from the SSL bio when the certificate retrieval code had an error
[210] Fix | Delete
*/
[211] Fix | Delete
# define BIO_RR_SSL_X509_LOOKUP 0x01
[212] Fix | Delete
/* Returned from the connect BIO when a connect would have blocked */
[213] Fix | Delete
# define BIO_RR_CONNECT 0x02
[214] Fix | Delete
/* Returned from the accept BIO when an accept would have blocked */
[215] Fix | Delete
# define BIO_RR_ACCEPT 0x03
[216] Fix | Delete
[217] Fix | Delete
/* These are passed by the BIO callback */
[218] Fix | Delete
# define BIO_CB_FREE 0x01
[219] Fix | Delete
# define BIO_CB_READ 0x02
[220] Fix | Delete
# define BIO_CB_WRITE 0x03
[221] Fix | Delete
# define BIO_CB_PUTS 0x04
[222] Fix | Delete
# define BIO_CB_GETS 0x05
[223] Fix | Delete
# define BIO_CB_CTRL 0x06
[224] Fix | Delete
[225] Fix | Delete
/*
[226] Fix | Delete
* The callback is called before and after the underling operation, The
[227] Fix | Delete
* BIO_CB_RETURN flag indicates if it is after the call
[228] Fix | Delete
*/
[229] Fix | Delete
# define BIO_CB_RETURN 0x80
[230] Fix | Delete
# define BIO_CB_return(a) ((a)|BIO_CB_RETURN)
[231] Fix | Delete
# define BIO_cb_pre(a) (!((a)&BIO_CB_RETURN))
[232] Fix | Delete
# define BIO_cb_post(a) ((a)&BIO_CB_RETURN)
[233] Fix | Delete
[234] Fix | Delete
typedef long (*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi,
[235] Fix | Delete
long argl, long ret);
[236] Fix | Delete
typedef long (*BIO_callback_fn_ex)(BIO *b, int oper, const char *argp,
[237] Fix | Delete
size_t len, int argi,
[238] Fix | Delete
long argl, int ret, size_t *processed);
[239] Fix | Delete
BIO_callback_fn BIO_get_callback(const BIO *b);
[240] Fix | Delete
void BIO_set_callback(BIO *b, BIO_callback_fn callback);
[241] Fix | Delete
[242] Fix | Delete
BIO_callback_fn_ex BIO_get_callback_ex(const BIO *b);
[243] Fix | Delete
void BIO_set_callback_ex(BIO *b, BIO_callback_fn_ex callback);
[244] Fix | Delete
[245] Fix | Delete
char *BIO_get_callback_arg(const BIO *b);
[246] Fix | Delete
void BIO_set_callback_arg(BIO *b, char *arg);
[247] Fix | Delete
[248] Fix | Delete
typedef struct bio_method_st BIO_METHOD;
[249] Fix | Delete
[250] Fix | Delete
const char *BIO_method_name(const BIO *b);
[251] Fix | Delete
int BIO_method_type(const BIO *b);
[252] Fix | Delete
[253] Fix | Delete
typedef int BIO_info_cb(BIO *, int, int);
[254] Fix | Delete
typedef BIO_info_cb bio_info_cb; /* backward compatibility */
[255] Fix | Delete
[256] Fix | Delete
DEFINE_STACK_OF(BIO)
[257] Fix | Delete
[258] Fix | Delete
/* Prefix and suffix callback in ASN1 BIO */
[259] Fix | Delete
typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,
[260] Fix | Delete
void *parg);
[261] Fix | Delete
[262] Fix | Delete
# ifndef OPENSSL_NO_SCTP
[263] Fix | Delete
/* SCTP parameter structs */
[264] Fix | Delete
struct bio_dgram_sctp_sndinfo {
[265] Fix | Delete
uint16_t snd_sid;
[266] Fix | Delete
uint16_t snd_flags;
[267] Fix | Delete
uint32_t snd_ppid;
[268] Fix | Delete
uint32_t snd_context;
[269] Fix | Delete
};
[270] Fix | Delete
[271] Fix | Delete
struct bio_dgram_sctp_rcvinfo {
[272] Fix | Delete
uint16_t rcv_sid;
[273] Fix | Delete
uint16_t rcv_ssn;
[274] Fix | Delete
uint16_t rcv_flags;
[275] Fix | Delete
uint32_t rcv_ppid;
[276] Fix | Delete
uint32_t rcv_tsn;
[277] Fix | Delete
uint32_t rcv_cumtsn;
[278] Fix | Delete
uint32_t rcv_context;
[279] Fix | Delete
};
[280] Fix | Delete
[281] Fix | Delete
struct bio_dgram_sctp_prinfo {
[282] Fix | Delete
uint16_t pr_policy;
[283] Fix | Delete
uint32_t pr_value;
[284] Fix | Delete
};
[285] Fix | Delete
# endif
[286] Fix | Delete
[287] Fix | Delete
/*
[288] Fix | Delete
* #define BIO_CONN_get_param_hostname BIO_ctrl
[289] Fix | Delete
*/
[290] Fix | Delete
[291] Fix | Delete
# define BIO_C_SET_CONNECT 100
[292] Fix | Delete
# define BIO_C_DO_STATE_MACHINE 101
[293] Fix | Delete
# define BIO_C_SET_NBIO 102
[294] Fix | Delete
/* # define BIO_C_SET_PROXY_PARAM 103 */
[295] Fix | Delete
# define BIO_C_SET_FD 104
[296] Fix | Delete
# define BIO_C_GET_FD 105
[297] Fix | Delete
# define BIO_C_SET_FILE_PTR 106
[298] Fix | Delete
# define BIO_C_GET_FILE_PTR 107
[299] Fix | Delete
# define BIO_C_SET_FILENAME 108
[300] Fix | Delete
# define BIO_C_SET_SSL 109
[301] Fix | Delete
# define BIO_C_GET_SSL 110
[302] Fix | Delete
# define BIO_C_SET_MD 111
[303] Fix | Delete
# define BIO_C_GET_MD 112
[304] Fix | Delete
# define BIO_C_GET_CIPHER_STATUS 113
[305] Fix | Delete
# define BIO_C_SET_BUF_MEM 114
[306] Fix | Delete
# define BIO_C_GET_BUF_MEM_PTR 115
[307] Fix | Delete
# define BIO_C_GET_BUFF_NUM_LINES 116
[308] Fix | Delete
# define BIO_C_SET_BUFF_SIZE 117
[309] Fix | Delete
# define BIO_C_SET_ACCEPT 118
[310] Fix | Delete
# define BIO_C_SSL_MODE 119
[311] Fix | Delete
# define BIO_C_GET_MD_CTX 120
[312] Fix | Delete
/* # define BIO_C_GET_PROXY_PARAM 121 */
[313] Fix | Delete
# define BIO_C_SET_BUFF_READ_DATA 122/* data to read first */
[314] Fix | Delete
# define BIO_C_GET_CONNECT 123
[315] Fix | Delete
# define BIO_C_GET_ACCEPT 124
[316] Fix | Delete
# define BIO_C_SET_SSL_RENEGOTIATE_BYTES 125
[317] Fix | Delete
# define BIO_C_GET_SSL_NUM_RENEGOTIATES 126
[318] Fix | Delete
# define BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT 127
[319] Fix | Delete
# define BIO_C_FILE_SEEK 128
[320] Fix | Delete
# define BIO_C_GET_CIPHER_CTX 129
[321] Fix | Delete
# define BIO_C_SET_BUF_MEM_EOF_RETURN 130/* return end of input
[322] Fix | Delete
* value */
[323] Fix | Delete
# define BIO_C_SET_BIND_MODE 131
[324] Fix | Delete
# define BIO_C_GET_BIND_MODE 132
[325] Fix | Delete
# define BIO_C_FILE_TELL 133
[326] Fix | Delete
# define BIO_C_GET_SOCKS 134
[327] Fix | Delete
# define BIO_C_SET_SOCKS 135
[328] Fix | Delete
[329] Fix | Delete
# define BIO_C_SET_WRITE_BUF_SIZE 136/* for BIO_s_bio */
[330] Fix | Delete
# define BIO_C_GET_WRITE_BUF_SIZE 137
[331] Fix | Delete
# define BIO_C_MAKE_BIO_PAIR 138
[332] Fix | Delete
# define BIO_C_DESTROY_BIO_PAIR 139
[333] Fix | Delete
# define BIO_C_GET_WRITE_GUARANTEE 140
[334] Fix | Delete
# define BIO_C_GET_READ_REQUEST 141
[335] Fix | Delete
# define BIO_C_SHUTDOWN_WR 142
[336] Fix | Delete
# define BIO_C_NREAD0 143
[337] Fix | Delete
# define BIO_C_NREAD 144
[338] Fix | Delete
# define BIO_C_NWRITE0 145
[339] Fix | Delete
# define BIO_C_NWRITE 146
[340] Fix | Delete
# define BIO_C_RESET_READ_REQUEST 147
[341] Fix | Delete
# define BIO_C_SET_MD_CTX 148
[342] Fix | Delete
[343] Fix | Delete
# define BIO_C_SET_PREFIX 149
[344] Fix | Delete
# define BIO_C_GET_PREFIX 150
[345] Fix | Delete
# define BIO_C_SET_SUFFIX 151
[346] Fix | Delete
# define BIO_C_GET_SUFFIX 152
[347] Fix | Delete
[348] Fix | Delete
# define BIO_C_SET_EX_ARG 153
[349] Fix | Delete
# define BIO_C_GET_EX_ARG 154
[350] Fix | Delete
[351] Fix | Delete
# define BIO_C_SET_CONNECT_MODE 155
[352] Fix | Delete
[353] Fix | Delete
# define BIO_set_app_data(s,arg) BIO_set_ex_data(s,0,arg)
[354] Fix | Delete
# define BIO_get_app_data(s) BIO_get_ex_data(s,0)
[355] Fix | Delete
[356] Fix | Delete
# define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)
[357] Fix | Delete
[358] Fix | Delete
# ifndef OPENSSL_NO_SOCK
[359] Fix | Delete
/* IP families we support, for BIO_s_connect() and BIO_s_accept() */
[360] Fix | Delete
/* Note: the underlying operating system may not support some of them */
[361] Fix | Delete
# define BIO_FAMILY_IPV4 4
[362] Fix | Delete
# define BIO_FAMILY_IPV6 6
[363] Fix | Delete
# define BIO_FAMILY_IPANY 256
[364] Fix | Delete
[365] Fix | Delete
/* BIO_s_connect() */
[366] Fix | Delete
# define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0, \
[367] Fix | Delete
(char *)(name))
[368] Fix | Delete
# define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1, \
[369] Fix | Delete
(char *)(port))
[370] Fix | Delete
# define BIO_set_conn_address(b,addr) BIO_ctrl(b,BIO_C_SET_CONNECT,2, \
[371] Fix | Delete
(char *)(addr))
[372] Fix | Delete
# define BIO_set_conn_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_CONNECT,3,f)
[373] Fix | Delete
# define BIO_get_conn_hostname(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0))
[374] Fix | Delete
# define BIO_get_conn_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1))
[375] Fix | Delete
# define BIO_get_conn_address(b) ((const BIO_ADDR *)BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2))
[376] Fix | Delete
# define BIO_get_conn_ip_family(b) BIO_ctrl(b,BIO_C_GET_CONNECT,3,NULL)
[377] Fix | Delete
# define BIO_set_conn_mode(b,n) BIO_ctrl(b,BIO_C_SET_CONNECT_MODE,(n),NULL)
[378] Fix | Delete
[379] Fix | Delete
/* BIO_s_accept() */
[380] Fix | Delete
# define BIO_set_accept_name(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0, \
[381] Fix | Delete
(char *)(name))
[382] Fix | Delete
# define BIO_set_accept_port(b,port) BIO_ctrl(b,BIO_C_SET_ACCEPT,1, \
[383] Fix | Delete
(char *)(port))
[384] Fix | Delete
# define BIO_get_accept_name(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0))
[385] Fix | Delete
# define BIO_get_accept_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,1))
[386] Fix | Delete
# define BIO_get_peer_name(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,2))
[387] Fix | Delete
# define BIO_get_peer_port(b) ((const char *)BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,3))
[388] Fix | Delete
/* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */
[389] Fix | Delete
# define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(n)?(void *)"a":NULL)
[390] Fix | Delete
# define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,3, \
[391] Fix | Delete
(char *)(bio))
[392] Fix | Delete
# define BIO_set_accept_ip_family(b,f) BIO_int_ctrl(b,BIO_C_SET_ACCEPT,4,f)
[393] Fix | Delete
# define BIO_get_accept_ip_family(b) BIO_ctrl(b,BIO_C_GET_ACCEPT,4,NULL)
[394] Fix | Delete
[395] Fix | Delete
/* Aliases kept for backward compatibility */
[396] Fix | Delete
# define BIO_BIND_NORMAL 0
[397] Fix | Delete
# define BIO_BIND_REUSEADDR BIO_SOCK_REUSEADDR
[398] Fix | Delete
# define BIO_BIND_REUSEADDR_IF_UNUSED BIO_SOCK_REUSEADDR
[399] Fix | Delete
# define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)
[400] Fix | Delete
# define BIO_get_bind_mode(b) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)
[401] Fix | Delete
[402] Fix | Delete
/* BIO_s_accept() and BIO_s_connect() */
[403] Fix | Delete
# define BIO_do_connect(b) BIO_do_handshake(b)
[404] Fix | Delete
# define BIO_do_accept(b) BIO_do_handshake(b)
[405] Fix | Delete
# endif /* OPENSSL_NO_SOCK */
[406] Fix | Delete
[407] Fix | Delete
# define BIO_do_handshake(b) BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)
[408] Fix | Delete
[409] Fix | Delete
/* BIO_s_datagram(), BIO_s_fd(), BIO_s_socket(), BIO_s_accept() and BIO_s_connect() */
[410] Fix | Delete
# define BIO_set_fd(b,fd,c) BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)
[411] Fix | Delete
# define BIO_get_fd(b,c) BIO_ctrl(b,BIO_C_GET_FD,0,(char *)(c))
[412] Fix | Delete
[413] Fix | Delete
/* BIO_s_file() */
[414] Fix | Delete
# define BIO_set_fp(b,fp,c) BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)(fp))
[415] Fix | Delete
# define BIO_get_fp(b,fpp) BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)(fpp))
[416] Fix | Delete
[417] Fix | Delete
/* BIO_s_fd() and BIO_s_file() */
[418] Fix | Delete
# define BIO_seek(b,ofs) (int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)
[419] Fix | Delete
# define BIO_tell(b) (int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)
[420] Fix | Delete
[421] Fix | Delete
/*
[422] Fix | Delete
* name is cast to lose const, but might be better to route through a
[423] Fix | Delete
* function so we can do it safely
[424] Fix | Delete
*/
[425] Fix | Delete
# ifdef CONST_STRICT
[426] Fix | Delete
/*
[427] Fix | Delete
* If you are wondering why this isn't defined, its because CONST_STRICT is
[428] Fix | Delete
* purely a compile-time kludge to allow const to be checked.
[429] Fix | Delete
*/
[430] Fix | Delete
int BIO_read_filename(BIO *b, const char *name);
[431] Fix | Delete
# else
[432] Fix | Delete
# define BIO_read_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
[433] Fix | Delete
BIO_CLOSE|BIO_FP_READ,(char *)(name))
[434] Fix | Delete
# endif
[435] Fix | Delete
# define BIO_write_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
[436] Fix | Delete
BIO_CLOSE|BIO_FP_WRITE,name)
[437] Fix | Delete
# define BIO_append_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
[438] Fix | Delete
BIO_CLOSE|BIO_FP_APPEND,name)
[439] Fix | Delete
# define BIO_rw_filename(b,name) (int)BIO_ctrl(b,BIO_C_SET_FILENAME, \
[440] Fix | Delete
BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)
[441] Fix | Delete
[442] Fix | Delete
/*
[443] Fix | Delete
* WARNING WARNING, this ups the reference count on the read bio of the SSL
[444] Fix | Delete
* structure. This is because the ssl read BIO is now pointed to by the
[445] Fix | Delete
* next_bio field in the bio. So when you free the BIO, make sure you are
[446] Fix | Delete
* doing a BIO_free_all() to catch the underlying BIO.
[447] Fix | Delete
*/
[448] Fix | Delete
# define BIO_set_ssl(b,ssl,c) BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)(ssl))
[449] Fix | Delete
# define BIO_get_ssl(b,sslp) BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)(sslp))
[450] Fix | Delete
# define BIO_set_ssl_mode(b,client) BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)
[451] Fix | Delete
# define BIO_set_ssl_renegotiate_bytes(b,num) \
[452] Fix | Delete
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL)
[453] Fix | Delete
# define BIO_get_num_renegotiates(b) \
[454] Fix | Delete
BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL)
[455] Fix | Delete
# define BIO_set_ssl_renegotiate_timeout(b,seconds) \
[456] Fix | Delete
BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL)
[457] Fix | Delete
[458] Fix | Delete
/* defined in evp.h */
[459] Fix | Delete
/* #define BIO_set_md(b,md) BIO_ctrl(b,BIO_C_SET_MD,1,(char *)(md)) */
[460] Fix | Delete
[461] Fix | Delete
# define BIO_get_mem_data(b,pp) BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)(pp))
[462] Fix | Delete
# define BIO_set_mem_buf(b,bm,c) BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)(bm))
[463] Fix | Delete
# define BIO_get_mem_ptr(b,pp) BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0, \
[464] Fix | Delete
(char *)(pp))
[465] Fix | Delete
# define BIO_set_mem_eof_return(b,v) \
[466] Fix | Delete
BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)
[467] Fix | Delete
[468] Fix | Delete
/* For the BIO_f_buffer() type */
[469] Fix | Delete
# define BIO_get_buffer_num_lines(b) BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)
[470] Fix | Delete
# define BIO_set_buffer_size(b,size) BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)
[471] Fix | Delete
# define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)
[472] Fix | Delete
# define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)
[473] Fix | Delete
# define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)
[474] Fix | Delete
[475] Fix | Delete
/* Don't use the next one unless you know what you are doing :-) */
[476] Fix | Delete
# define BIO_dup_state(b,ret) BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))
[477] Fix | Delete
[478] Fix | Delete
# define BIO_reset(b) (int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)
[479] Fix | Delete
# define BIO_eof(b) (int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)
[480] Fix | Delete
# define BIO_set_close(b,c) (int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
[481] Fix | Delete
# define BIO_get_close(b) (int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
[482] Fix | Delete
# define BIO_pending(b) (int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
[483] Fix | Delete
# define BIO_wpending(b) (int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
[484] Fix | Delete
/* ...pending macros have inappropriate return type */
[485] Fix | Delete
size_t BIO_ctrl_pending(BIO *b);
[486] Fix | Delete
size_t BIO_ctrl_wpending(BIO *b);
[487] Fix | Delete
# define BIO_flush(b) (int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
[488] Fix | Delete
# define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \
[489] Fix | Delete
cbp)
[490] Fix | Delete
# define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)
[491] Fix | Delete
[492] Fix | Delete
/* For the BIO_f_buffer() type */
[493] Fix | Delete
# define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)
[494] Fix | Delete
# define BIO_buffer_peek(b,s,l) BIO_ctrl(b,BIO_CTRL_PEEK,(l),(s))
[495] Fix | Delete
[496] Fix | Delete
/* For BIO_s_bio() */
[497] Fix | Delete
# define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
[498] Fix | Delete
# define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function