ossrv_pub/crypto_inputoutput_and_data_encoding_api/inc/stdapis/openssl/bio.h
changeset 72 403e7f6ed6c5
parent 0 e4d67989cc36
equal deleted inserted replaced
71:28ccaba883f4 72:403e7f6ed6c5
    54  * derivative of this code cannot be changed.  i.e. this code cannot simply be
    54  * derivative of this code cannot be changed.  i.e. this code cannot simply be
    55  * copied and put under another distribution licence
    55  * copied and put under another distribution licence
    56  * [including the GNU Public Licence.]
    56  * [including the GNU Public Licence.]
    57  */
    57  */
    58  /*
    58  /*
    59  © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
    59  © Portions copyright (c) 2006-2010 Nokia Corporation.  All rights reserved.
    60  */
    60  */
    61  
    61  
    62 #ifndef HEADER_BIO_H
    62 #ifndef HEADER_BIO_H
    63 #define HEADER_BIO_H
    63 #define HEADER_BIO_H
    64 
    64 
   522 #define BIO_set_close(b,c)	(int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
   522 #define BIO_set_close(b,c)	(int)BIO_ctrl(b,BIO_CTRL_SET_CLOSE,(c),NULL)
   523 #define BIO_get_close(b)	(int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
   523 #define BIO_get_close(b)	(int)BIO_ctrl(b,BIO_CTRL_GET_CLOSE,0,NULL)
   524 #define BIO_pending(b)		(int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
   524 #define BIO_pending(b)		(int)BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL)
   525 #define BIO_wpending(b)		(int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
   525 #define BIO_wpending(b)		(int)BIO_ctrl(b,BIO_CTRL_WPENDING,0,NULL)
   526 /* ...pending macros have inappropriate return type */
   526 /* ...pending macros have inappropriate return type */
   527 size_t BIO_ctrl_pending(BIO *b);
   527 IMPORT_C size_t BIO_ctrl_pending(BIO *b);
   528 size_t BIO_ctrl_wpending(BIO *b);
   528 IMPORT_C size_t BIO_ctrl_wpending(BIO *b);
   529 #define BIO_flush(b)		(int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
   529 #define BIO_flush(b)		(int)BIO_ctrl(b,BIO_CTRL_FLUSH,0,NULL)
   530 #define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \
   530 #define BIO_get_info_callback(b,cbp) (int)BIO_ctrl(b,BIO_CTRL_GET_CALLBACK,0, \
   531 						   cbp)
   531 						   cbp)
   532 #define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)
   532 #define BIO_set_info_callback(b,cb) (int)BIO_callback_ctrl(b,BIO_CTRL_SET_CALLBACK,cb)
   533 
   533 
   541 #define BIO_destroy_bio_pair(b)    (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
   541 #define BIO_destroy_bio_pair(b)    (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
   542 #define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
   542 #define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
   543 /* macros with inappropriate type -- but ...pending macros use int too: */
   543 /* macros with inappropriate type -- but ...pending macros use int too: */
   544 #define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
   544 #define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
   545 #define BIO_get_read_request(b)    (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
   545 #define BIO_get_read_request(b)    (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)
   546 size_t BIO_ctrl_get_write_guarantee(BIO *b);
   546 IMPORT_C size_t BIO_ctrl_get_write_guarantee(BIO *b);
   547 size_t BIO_ctrl_get_read_request(BIO *b);
   547 IMPORT_C size_t BIO_ctrl_get_read_request(BIO *b);
   548 int BIO_ctrl_reset_read_request(BIO *b);
   548 IMPORT_C int BIO_ctrl_reset_read_request(BIO *b);
   549 
   549 
   550 /* ctrl macros for dgram */
   550 /* ctrl macros for dgram */
   551 #define BIO_ctrl_dgram_connect(b,peer)  \
   551 #define BIO_ctrl_dgram_connect(b,peer)  \
   552                      (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)peer)
   552                      (int)BIO_ctrl(b,BIO_CTRL_DGRAM_CONNECT,0, (char *)peer)
   553 #define BIO_ctrl_set_connected(b, state, peer) \
   553 #define BIO_ctrl_set_connected(b, state, peer) \
   621 IMPORT_C int BIO_nread(BIO *bio, char **buf, int num);
   621 IMPORT_C int BIO_nread(BIO *bio, char **buf, int num);
   622 IMPORT_C int BIO_nwrite0(BIO *bio, char **buf);
   622 IMPORT_C int BIO_nwrite0(BIO *bio, char **buf);
   623 IMPORT_C int BIO_nwrite(BIO *bio, char **buf, int num);
   623 IMPORT_C int BIO_nwrite(BIO *bio, char **buf, int num);
   624 
   624 
   625 #ifndef OPENSSL_SYS_WIN16
   625 #ifndef OPENSSL_SYS_WIN16
   626 long BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,
   626 IMPORT_C long BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,
   627 	long argl,long ret);
   627 	long argl,long ret);
   628 #else
   628 #else
   629 IMPORT_C long _far _loadds BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,
   629 IMPORT_C long _far _loadds BIO_debug_callback(BIO *bio,int cmd,const char *argp,int argi,
   630 	long argl,long ret);
   630 	long argl,long ret);
   631 #endif
   631 #endif