Commit d07aee2c authored by Matt Caswell's avatar Matt Caswell
Browse files

Create BIO_read_ex() which handles size_t arguments



Also extend BIO_METHOD to be able to supply an implementation for the new
BIO_read function.

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 229bd124
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -79,6 +79,8 @@ static const BIO_METHOD methods_asn1 = {
    BIO_TYPE_ASN1,
    "asn1",
    asn1_bio_write,
    /* TODO: Convert to new style read function */
    bread_conv,
    asn1_bio_read,
    asn1_bio_puts,
    asn1_bio_gets,
+2 −0
Original line number Diff line number Diff line
@@ -26,6 +26,8 @@ static const BIO_METHOD methods_buffer = {
    BIO_TYPE_BUFFER,
    "buffer",
    buffer_write,
    /* TODO: Convert to new style read function */
    bread_conv,
    buffer_read,
    buffer_puts,
    buffer_gets,
+2 −0
Original line number Diff line number Diff line
@@ -31,6 +31,8 @@ static const BIO_METHOD methods_linebuffer = {
    BIO_TYPE_LINEBUFFER,
    "linebuffer",
    linebuffer_write,
    /* TODO: Convert to new style read function */
    bread_conv,
    linebuffer_read,
    linebuffer_puts,
    linebuffer_gets,
+2 −0
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ static const BIO_METHOD methods_nbiof = {
    BIO_TYPE_NBIO_TEST,
    "non-blocking IO test filter",
    nbiof_write,
    /* TODO: Convert to new style read function */
    bread_conv,
    nbiof_read,
    nbiof_puts,
    nbiof_gets,
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,8 @@ static const BIO_METHOD methods_nullf = {
    BIO_TYPE_NULL_FILTER,
    "NULL filter",
    nullf_write,
    /* TODO: Convert to new style read function */
    bread_conv,
    nullf_read,
    nullf_puts,
    nullf_gets,
Loading