This commit adds comments to bio_method_st definitions where the
function pointers are defined as NULL. Most of the structs have comments
but some where missing and not all consitent.
CLA: trivial
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4881)
bread_conv,
acpt_read,
acpt_puts,
bread_conv,
acpt_read,
acpt_puts,
- NULL, /* connect_gets, */
+ NULL, /* connect_gets, */
acpt_ctrl,
acpt_new,
acpt_free,
acpt_ctrl,
acpt_new,
acpt_free,
+ NULL, /* connect_callback_ctrl */
};
const BIO_METHOD *BIO_s_accept(void)
};
const BIO_METHOD *BIO_s_accept(void)
bread_conv,
conn_read,
conn_puts,
bread_conv,
conn_read,
conn_puts,
- NULL, /* connect_gets, */
conn_ctrl,
conn_new,
conn_free,
conn_ctrl,
conn_new,
conn_free,
bread_conv,
dgram_read,
dgram_puts,
bread_conv,
dgram_read,
dgram_puts,
- NULL, /* dgram_gets, */
+ NULL, /* dgram_gets, */
dgram_ctrl,
dgram_new,
dgram_free,
dgram_ctrl,
dgram_new,
dgram_free,
+ NULL, /* dgram_callback_ctrl */
};
# ifndef OPENSSL_NO_SCTP
};
# ifndef OPENSSL_NO_SCTP
bread_conv,
dgram_sctp_read,
dgram_sctp_puts,
bread_conv,
dgram_sctp_read,
dgram_sctp_puts,
- NULL, /* dgram_gets, */
+ NULL, /* dgram_gets, */
dgram_sctp_ctrl,
dgram_sctp_new,
dgram_sctp_free,
dgram_sctp_ctrl,
dgram_sctp_new,
dgram_sctp_free,
+ NULL, /* dgram_callback_ctrl */
fd_ctrl,
fd_new,
fd_free,
fd_ctrl,
fd_new,
fd_free,
+ NULL, /* fd_callback_ctrl */
};
const BIO_METHOD *BIO_s_fd(void)
};
const BIO_METHOD *BIO_s_fd(void)
file_ctrl,
file_new,
file_free,
file_ctrl,
file_new,
file_free,
+ NULL, /* file_callback_ctrl */
};
BIO *BIO_new_file(const char *filename, const char *mode)
};
BIO *BIO_new_file(const char *filename, const char *mode)
file_ctrl,
file_new,
file_free,
file_ctrl,
file_new,
file_free,
+ NULL, /* file_callback_ctrl */
};
const BIO_METHOD *BIO_s_file(void)
};
const BIO_METHOD *BIO_s_file(void)
/* TODO: Convert to new style write function */
bwrite_conv,
slg_write,
/* TODO: Convert to new style write function */
bwrite_conv,
slg_write,
+ NULL, /* slg_write_old, */
+ NULL, /* slg_read, */
slg_puts,
NULL,
slg_ctrl,
slg_new,
slg_free,
slg_puts,
NULL,
slg_ctrl,
slg_new,
slg_free,
+ NULL, /* slg_callback_ctrl */
};
const BIO_METHOD *BIO_s_log(void)
};
const BIO_METHOD *BIO_s_log(void)
mem_ctrl,
mem_new,
mem_free,
mem_ctrl,
mem_new,
mem_free,
+ NULL, /* mem_callback_ctrl */
};
static const BIO_METHOD secmem_method = {
};
static const BIO_METHOD secmem_method = {
mem_ctrl,
secmem_new,
mem_free,
mem_ctrl,
secmem_new,
mem_free,
+ NULL, /* mem_callback_ctrl */
};
/* BIO memory stores buffer and read pointer */
};
/* BIO memory stores buffer and read pointer */
null_ctrl,
null_new,
null_free,
null_ctrl,
null_new,
null_free,
+ NULL, /* null_callback_ctrl */
};
const BIO_METHOD *BIO_s_null(void)
};
const BIO_METHOD *BIO_s_null(void)
bread_conv,
sock_read,
sock_puts,
bread_conv,
sock_read,
sock_puts,
sock_ctrl,
sock_new,
sock_free,
sock_ctrl,
sock_new,
sock_free,
+ NULL, /* sock_callback_ctrl */
};
const BIO_METHOD *BIO_s_socket(void)
};
const BIO_METHOD *BIO_s_socket(void)
/* TODO: Convert to new style read function */
bread_conv,
bio_zlib_read,
/* TODO: Convert to new style read function */
bread_conv,
bio_zlib_read,
+ NULL, /* bio_zlib_puts, */
+ NULL, /* bio_zlib_gets, */
bio_zlib_ctrl,
bio_zlib_new,
bio_zlib_free,
bio_zlib_ctrl,
bio_zlib_new,
bio_zlib_free,
BIO_TYPE_SSL,
"ssl",
ssl_write,
BIO_TYPE_SSL,
"ssl",
ssl_write,
+ NULL, /* ssl_write_old, */
+ NULL, /* ssl_read_old, */
ssl_ctrl,
ssl_new,
ssl_free,
ssl_ctrl,
ssl_new,
ssl_free,