⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bio.h

📁 Marvell ISP wireless wpa_supplicant application
💻 H
📖 第 1 页 / 共 2 页
字号:
#define BIO_C_RESET_READ_REQUEST		147#define BIO_C_SET_MD_CTX			148#define BIO_set_app_data(s,arg)		BIO_set_ex_data(s,0,arg)#define BIO_get_app_data(s)		BIO_get_ex_data(s,0)/* BIO_s_connect() and BIO_s_socks4a_connect() */#define BIO_set_conn_hostname(b,name) BIO_ctrl(b,BIO_C_SET_CONNECT,0,(char *)name)#define BIO_set_conn_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,1,(char *)port)#define BIO_set_conn_ip(b,ip)	  BIO_ctrl(b,BIO_C_SET_CONNECT,2,(char *)ip)#define BIO_set_conn_int_port(b,port) BIO_ctrl(b,BIO_C_SET_CONNECT,3,(char *)port)#define BIO_get_conn_hostname(b)  BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,0)#define BIO_get_conn_port(b)      BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,1)#define BIO_get_conn_ip(b) 		 BIO_ptr_ctrl(b,BIO_C_GET_CONNECT,2)#define BIO_get_conn_int_port(b) BIO_int_ctrl(b,BIO_C_GET_CONNECT,3)#define BIO_set_nbio(b,n)	BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL)/* BIO_s_accept_socket() */#define BIO_set_accept_port(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name)#define BIO_get_accept_port(b)	BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0)/* #define BIO_set_nbio(b,n)	BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */#define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(n)?"a":NULL)#define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio)#define BIO_BIND_NORMAL			0#define BIO_BIND_REUSEADDR_IF_UNUSED	1#define BIO_BIND_REUSEADDR		2#define BIO_set_bind_mode(b,mode) BIO_ctrl(b,BIO_C_SET_BIND_MODE,mode,NULL)#define BIO_get_bind_mode(b,mode) BIO_ctrl(b,BIO_C_GET_BIND_MODE,0,NULL)#define BIO_do_connect(b)	BIO_do_handshake(b)#define BIO_do_accept(b)	BIO_do_handshake(b)#define BIO_do_handshake(b)	BIO_ctrl(b,BIO_C_DO_STATE_MACHINE,0,NULL)/* BIO_s_proxy_client() */#define BIO_set_url(b,url)	BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,0,(char *)(url))#define BIO_set_proxies(b,p)	BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,1,(char *)(p))/* BIO_set_nbio(b,n) */#define BIO_set_filter_bio(b,s) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,2,(char *)(s))/* BIO *BIO_get_filter_bio(BIO *bio); */#define BIO_set_proxy_cb(b,cb) BIO_callback_ctrl(b,BIO_C_SET_PROXY_PARAM,3,(void *(*cb)()))#define BIO_set_proxy_header(b,sk) BIO_ctrl(b,BIO_C_SET_PROXY_PARAM,4,(char *)sk)#define BIO_set_no_connect_return(b,bool) BIO_int_ctrl(b,BIO_C_SET_PROXY_PARAM,5,bool)#define BIO_get_proxy_header(b,skp) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,0,(char *)skp)#define BIO_get_proxies(b,pxy_p) BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,1,(char *)(pxy_p))#define BIO_get_url(b,url)	BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,2,(char *)(url))#define BIO_get_no_connect_return(b)	BIO_ctrl(b,BIO_C_GET_PROXY_PARAM,5,NULL)#define BIO_set_fd(b,fd,c)	BIO_int_ctrl(b,BIO_C_SET_FD,c,fd)#define BIO_get_fd(b,c)		BIO_ctrl(b,BIO_C_GET_FD,0,(char *)c)#define BIO_set_fp(b,fp,c)	BIO_ctrl(b,BIO_C_SET_FILE_PTR,c,(char *)fp)#define BIO_get_fp(b,fpp)	BIO_ctrl(b,BIO_C_GET_FILE_PTR,0,(char *)fpp)#define BIO_seek(b,ofs)	(int)BIO_ctrl(b,BIO_C_FILE_SEEK,ofs,NULL)#define BIO_tell(b)	(int)BIO_ctrl(b,BIO_C_FILE_TELL,0,NULL)/* name is cast to lose const, but might be better to route through a function   so we can do it safely */#ifdef CONST_STRICT/* If you are wondering why this isn't defined, its because CONST_STRICT is * purely a compile-time kludge to allow const to be checked. */int BIO_read_filename(BIO *b,const char *name);#else#define BIO_read_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \		BIO_CLOSE|BIO_FP_READ,(char *)name)#endif#define BIO_write_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \		BIO_CLOSE|BIO_FP_WRITE,name)#define BIO_append_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \		BIO_CLOSE|BIO_FP_APPEND,name)#define BIO_rw_filename(b,name) BIO_ctrl(b,BIO_C_SET_FILENAME, \		BIO_CLOSE|BIO_FP_READ|BIO_FP_WRITE,name)/* WARNING WARNING, this ups the reference count on the read bio of the * SSL structure.  This is because the ssl read BIO is now pointed to by * the next_bio field in the bio.  So when you free the BIO, make sure * you are doing a BIO_free_all() to catch the underlying BIO. */#define BIO_set_ssl(b,ssl,c)	BIO_ctrl(b,BIO_C_SET_SSL,c,(char *)ssl)#define BIO_get_ssl(b,sslp)	BIO_ctrl(b,BIO_C_GET_SSL,0,(char *)sslp)#define BIO_set_ssl_mode(b,client)	BIO_ctrl(b,BIO_C_SSL_MODE,client,NULL)#define BIO_set_ssl_renegotiate_bytes(b,num) \	BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_BYTES,num,NULL);#define BIO_get_num_renegotiates(b) \	BIO_ctrl(b,BIO_C_GET_SSL_NUM_RENEGOTIATES,0,NULL);#define BIO_set_ssl_renegotiate_timeout(b,seconds) \	BIO_ctrl(b,BIO_C_SET_SSL_RENEGOTIATE_TIMEOUT,seconds,NULL);/* defined in evp.h *//* #define BIO_set_md(b,md)	BIO_ctrl(b,BIO_C_SET_MD,1,(char *)md) */#define BIO_get_mem_data(b,pp)	BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp)#define BIO_set_mem_buf(b,bm,c)	BIO_ctrl(b,BIO_C_SET_BUF_MEM,c,(char *)bm)#define BIO_get_mem_ptr(b,pp)	BIO_ctrl(b,BIO_C_GET_BUF_MEM_PTR,0,(char *)pp)#define BIO_set_mem_eof_return(b,v) \				BIO_ctrl(b,BIO_C_SET_BUF_MEM_EOF_RETURN,v,NULL)/* For the BIO_f_buffer() type */#define BIO_get_buffer_num_lines(b)	BIO_ctrl(b,BIO_C_GET_BUFF_NUM_LINES,0,NULL)#define BIO_set_buffer_size(b,size)	BIO_ctrl(b,BIO_C_SET_BUFF_SIZE,size,NULL)#define BIO_set_read_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,0)#define BIO_set_write_buffer_size(b,size) BIO_int_ctrl(b,BIO_C_SET_BUFF_SIZE,size,1)#define BIO_set_buffer_read_data(b,buf,num) BIO_ctrl(b,BIO_C_SET_BUFF_READ_DATA,num,buf)/* Don't use the next one unless you know what you are doing :-) */#define BIO_dup_state(b,ret)	BIO_ctrl(b,BIO_CTRL_DUP,0,(char *)(ret))#define BIO_reset(b)		(int)BIO_ctrl(b,BIO_CTRL_RESET,0,NULL)#define BIO_eof(b)		(int)BIO_ctrl(b,BIO_CTRL_EOF,0,NULL)#define BIO_set_close(b,c)	(int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)#define BIO_get_close(b)	(int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)#define BIO_pending(b)		(int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)#define BIO_wpending(b)		(int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)/* ...pending macros have inappropriate return type */size_t BIO_ctrl_pending(BIO *b);size_t BIO_ctrl_wpending(BIO *b);#define BIO_flush(b)		(int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)#define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \						   cbp)#define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)/* For the BIO_f_buffer() type */#define BIO_buffer_get_num_lines(b) BIO_ctrl(b,BIO_CTRL_GET,0,NULL)/* For BIO_s_bio() */#define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)#define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)#define BIO_make_bio_pair(b1,b2)   (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)#define BIO_destroy_bio_pair(b)    (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)#define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)/* macros with inappropriate type -- but ...pending macros use int too: */#define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)#define BIO_get_read_request(b)    (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)size_t BIO_ctrl_get_write_guarantee(BIO *b);size_t BIO_ctrl_get_read_request(BIO *b);int BIO_ctrl_reset_read_request(BIO *b);/* These two aren't currently implemented *//* int BIO_get_ex_num(BIO *bio); *//* void BIO_set_ex_free_func(BIO *bio,int idx,void (*cb)()); */int BIO_set_ex_data(BIO *bio,int idx,void *data);void *BIO_get_ex_data(BIO *bio,int idx);int BIO_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,	CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);unsigned long BIO_number_read(BIO *bio);unsigned long BIO_number_written(BIO *bio);# ifndef OPENSSL_NO_FP_API#  if defined(OPENSSL_SYS_WIN16) && defined(_WINDLL)BIO_METHOD *BIO_s_file_internal(void);BIO *BIO_new_file_internal(char *filename, char *mode);BIO *BIO_new_fp_internal(FILE *stream, int close_flag);#    define BIO_s_file	BIO_s_file_internal#    define BIO_new_file	BIO_new_file_internal#    define BIO_new_fp	BIO_new_fp_internal#  else /* FP_API */BIO_METHOD *BIO_s_file(void );BIO *BIO_new_file(const char *filename, const char *mode);BIO *BIO_new_fp(FILE *stream, int close_flag);#    define BIO_s_file_internal		BIO_s_file#    define BIO_new_file_internal	BIO_new_file#    define BIO_new_fp_internal		BIO_s_file#  endif /* FP_API */# endifBIO *	BIO_new(BIO_METHOD *type);int	BIO_set(BIO *a,BIO_METHOD *type);int	BIO_free(BIO *a);void	BIO_vfree(BIO *a);int	BIO_read(BIO *b, void *data, int len);int	BIO_gets(BIO *bp,char *buf, int size);int	BIO_write(BIO *b, const void *data, int len);int	BIO_puts(BIO *bp,const char *buf);int	BIO_indent(BIO *b,int indent,int max);long	BIO_ctrl(BIO *bp,int cmd,long larg,void *parg);long BIO_callback_ctrl(BIO *b, int cmd, void (*fp)(struct bio_st *, int, const char *, int, long, long));char *	BIO_ptr_ctrl(BIO *bp,int cmd,long larg);long	BIO_int_ctrl(BIO *bp,int cmd,long larg,int iarg);BIO *	BIO_push(BIO *b,BIO *append);BIO *	BIO_pop(BIO *b);void	BIO_free_all(BIO *a);BIO *	BIO_find_type(BIO *b,int bio_type);BIO *	BIO_next(BIO *b);BIO *	BIO_get_retry_BIO(BIO *bio, int *reason);int	BIO_get_retry_reason(BIO *bio);BIO *	BIO_dup_chain(BIO *in);int BIO_nread0(BIO *bio, char **buf);int BIO_nread(BIO *bio, char **buf, int num);int BIO_nwrite0(BIO *bio, char **buf);int BIO_nwrite(BIO *bio, char **buf, int num);#ifndef OPENSSL_SYS_WIN16long BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,	long argl,long ret);#elselong _far _loadds BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,	long argl,long ret);#endifBIO_METHOD *BIO_s_mem(void);BIO *BIO_new_mem_buf(void *buf, int len);BIO_METHOD *BIO_s_socket(void);BIO_METHOD *BIO_s_connect(void);BIO_METHOD *BIO_s_accept(void);BIO_METHOD *BIO_s_fd(void);#ifndef OPENSSL_SYS_OS2BIO_METHOD *BIO_s_log(void);#endifBIO_METHOD *BIO_s_bio(void);BIO_METHOD *BIO_s_null(void);BIO_METHOD *BIO_f_null(void);BIO_METHOD *BIO_f_buffer(void);#ifdef OPENSSL_SYS_VMSBIO_METHOD *BIO_f_linebuffer(void);#endifBIO_METHOD *BIO_f_nbio_test(void);/* BIO_METHOD *BIO_f_ber(void); */int BIO_sock_should_retry(int i);int BIO_sock_non_fatal_error(int error);int BIO_fd_should_retry(int i);int BIO_fd_non_fatal_error(int error);int BIO_dump(BIO *b,const char *bytes,int len);int BIO_dump_indent(BIO *b,const char *bytes,int len,int indent);struct hostent *BIO_gethostbyname(const char *name);/* We might want a thread-safe interface too: * struct hostent *BIO_gethostbyname_r(const char *name, *     struct hostent *result, void *buffer, size_t buflen); * or something similar (caller allocates a struct hostent, * pointed to by "result", and additional buffer space for the various * substructures; if the buffer does not suffice, NULL is returned * and an appropriate error code is set). */int BIO_sock_error(int sock);int BIO_socket_ioctl(int fd, long type, void *arg);int BIO_socket_nbio(int fd,int mode);int BIO_get_port(const char *str, unsigned short *port_ptr);int BIO_get_host_ip(const char *str, unsigned char *ip);int BIO_get_accept_socket(char *host_port,int mode);int BIO_accept(int sock,char **ip_port);int BIO_sock_init(void );void BIO_sock_cleanup(void);int BIO_set_tcp_ndelay(int sock,int turn_on);BIO *BIO_new_socket(int sock, int close_flag);BIO *BIO_new_fd(int fd, int close_flag);BIO *BIO_new_connect(char *host_port);BIO *BIO_new_accept(char *host_port);int BIO_new_bio_pair(BIO **bio1, size_t writebuf1,	BIO **bio2, size_t writebuf2);/* If successful, returns 1 and in *bio1, *bio2 two BIO pair endpoints. * Otherwise returns 0 and sets *bio1 and *bio2 to NULL. * Size 0 uses default value. */void BIO_copy_next_retry(BIO *b);/*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/int BIO_printf(BIO *bio, const char *format, ...);int BIO_vprintf(BIO *bio, const char *format, va_list args);int BIO_snprintf(char *buf, size_t n, const char *format, ...);int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args);/* BEGIN ERROR CODES *//* The following lines are auto generated by the script mkerr.pl. Any changes * made after this point may be overwritten when the script is next run. */void ERR_load_BIO_strings(void);/* Error codes for the BIO functions. *//* Function codes. */#define BIO_F_ACPT_STATE				 100#define BIO_F_BIO_ACCEPT				 101#define BIO_F_BIO_BER_GET_HEADER			 102#define BIO_F_BIO_CTRL					 103#define BIO_F_BIO_GETHOSTBYNAME				 120#define BIO_F_BIO_GETS					 104#define BIO_F_BIO_GET_ACCEPT_SOCKET			 105#define BIO_F_BIO_GET_HOST_IP				 106#define BIO_F_BIO_GET_PORT				 107#define BIO_F_BIO_MAKE_PAIR				 121#define BIO_F_BIO_NEW					 108#define BIO_F_BIO_NEW_FILE				 109#define BIO_F_BIO_NEW_MEM_BUF				 126#define BIO_F_BIO_NREAD					 123#define BIO_F_BIO_NREAD0				 124#define BIO_F_BIO_NWRITE				 125#define BIO_F_BIO_NWRITE0				 122#define BIO_F_BIO_PUTS					 110#define BIO_F_BIO_READ					 111#define BIO_F_BIO_SOCK_INIT				 112#define BIO_F_BIO_WRITE					 113#define BIO_F_BUFFER_CTRL				 114#define BIO_F_CONN_CTRL					 127#define BIO_F_CONN_STATE				 115#define BIO_F_FILE_CTRL					 116#define BIO_F_FILE_READ					 130#define BIO_F_LINEBUFFER_CTRL				 129#define BIO_F_MEM_READ					 128#define BIO_F_MEM_WRITE					 117#define BIO_F_SSL_NEW					 118#define BIO_F_WSASTARTUP				 119/* Reason codes. */#define BIO_R_ACCEPT_ERROR				 100#define BIO_R_BAD_FOPEN_MODE				 101#define BIO_R_BAD_HOSTNAME_LOOKUP			 102#define BIO_R_BROKEN_PIPE				 124#define BIO_R_CONNECT_ERROR				 103#define BIO_R_EOF_ON_MEMORY_BIO				 127#define BIO_R_ERROR_SETTING_NBIO			 104#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPTED_SOCKET	 105#define BIO_R_ERROR_SETTING_NBIO_ON_ACCEPT_SOCKET	 106#define BIO_R_GETHOSTBYNAME_ADDR_IS_NOT_AF_INET		 107#define BIO_R_INVALID_ARGUMENT				 125#define BIO_R_INVALID_IP_ADDRESS			 108#define BIO_R_IN_USE					 123#define BIO_R_KEEPALIVE					 109#define BIO_R_NBIO_CONNECT_ERROR			 110#define BIO_R_NO_ACCEPT_PORT_SPECIFIED			 111#define BIO_R_NO_HOSTNAME_SPECIFIED			 112#define BIO_R_NO_PORT_DEFINED				 113#define BIO_R_NO_PORT_SPECIFIED				 114#define BIO_R_NO_SUCH_FILE				 128#define BIO_R_NULL_PARAMETER				 115#define BIO_R_TAG_MISMATCH				 116#define BIO_R_UNABLE_TO_BIND_SOCKET			 117#define BIO_R_UNABLE_TO_CREATE_SOCKET			 118#define BIO_R_UNABLE_TO_LISTEN_SOCKET			 119#define BIO_R_UNINITIALIZED				 120#define BIO_R_UNSUPPORTED_METHOD			 121#define BIO_R_WRITE_TO_READ_ONLY_BIO			 126#define BIO_R_WSASTARTUP				 122#ifdef  __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -