Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
BIO_set_callback, BIO_get_callback, BIO_set_callback_arg, BIO_get_callback_arg, BIO_debug_callback — BIO callback functionsSYNOPSIS
#include <openssl/bio.h>BIO_set_callback(BIO *b, BIO_callback_fn cb);
BIO_get_callback(BIO *b);
BIO_set_callback_arg(BIO *b, char *arg);
BIO_get_callback_arg(const BIO *b);
BIO_debug_callback(BIO *bio, int oper, const char *argp, int argi, long argl, long ret);
(*BIO_callback_fn)(BIO *b, int oper, const char *argp, int argi, long argl, long ret);
DESCRIPTION
BIO_set_callback() and BIO_get_callback() set and retrieve the BIO callback. The callback is called during most high level BIO operations. It can be used for debugging purposes to trace operations on a BIO or to modify its operation.Callback operations
- BIO_free(b)
- callback(b, BIO_CB_FREE, NULL, 0L, 0L, 1L) is called before the free operation.
- BIO_read(b, out, outl)
- callback(b, BIO_CB_READ, out, outl, 0L, 1L) is called before the read and callback(b, BIO_CB_READ|BIO_CB_RETURN, out, outl, 0L, ret) after.
- BIO_write(b, in, inl)
- callback(b, BIO_CB_WRITE, in, inl, 0L, 1L) is called before the write and callback(b, BIO_CB_WRITE|BIO_CB_RETURN, in, inl, 0L, ret) after.
- BIO_gets(b, out, outl)
- callback(b, BIO_CB_GETS, out, outl, 0L, 1L) is called before the operation and callback(b, BIO_CB_GETS|BIO_CB_RETURN, out, outl, 0L, ret) after.
- BIO_puts(b, in)
- callback(b, BIO_CB_PUTS, in, 0, 0L, 1L) is called before the operation and callback(b, BIO_CB_PUTS|BIO_CB_RETURN, in, 0, 0L, ret) after.
- BIO_ctrl(b, oper, larg, parg)
- callback(b, BIO_CB_CTRL, parg, oper, larg, 1L) is called before the call and callback(b, BIO_CB_CTRL|BIO_CB_RETURN, parg, oper, larg, ret) after.