Commit 7ab60fe2 authored by Daniel Bevenius's avatar Daniel Bevenius Committed by Pauli
Browse files

Add comments to NULL func ptrs in bio_method_st



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: default avatarPaul Dale <paul.dale@oracle.com>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4881)

(cherry picked from commit b4ff6622)
parent 5200dbb7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ static const BIO_METHOD methods_acceptp = {
    acpt_ctrl,
    acpt_new,
    acpt_free,
    NULL,
    NULL,                       /* connect_callback_ctrl */
};

const BIO_METHOD *BIO_s_accept(void)
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ static const BIO_METHOD methods_connectp = {
    conn_write,
    conn_read,
    conn_puts,
    NULL,                       /* connect_gets, */
    NULL,                       /* conn_gets, */
    conn_ctrl,
    conn_new,
    conn_free,
+4 −4
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ static const BIO_METHOD methods_dgramp = {
    dgram_ctrl,
    dgram_new,
    dgram_free,
    NULL,
    NULL,                       /* dgram_callback_ctrl */
};

# ifndef OPENSSL_NO_SCTP
@@ -94,7 +94,7 @@ static const BIO_METHOD methods_dgramp_sctp = {
    dgram_sctp_ctrl,
    dgram_sctp_new,
    dgram_sctp_free,
    NULL,
    NULL,                       /* dgram_callback_ctrl */
};
# endif

+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ static const BIO_METHOD methods_fdp = {
    fd_ctrl,
    fd_new,
    fd_free,
    NULL,
    NULL,                       /* fd_callback_ctrl */
};

const BIO_METHOD *BIO_s_fd(void)
+2 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ static const BIO_METHOD methods_filep = {
    file_ctrl,
    file_new,
    file_free,
    NULL,
    NULL,                      /* file_callback_ctrl */
};

BIO *BIO_new_file(const char *filename, const char *mode)
@@ -406,7 +406,7 @@ static const BIO_METHOD methods_filep = {
    file_ctrl,
    file_new,
    file_free,
    NULL,
    NULL,                      /* file_callback_ctrl */
};

const BIO_METHOD *BIO_s_file(void)
Loading