* for which no specific BIO method is available.
* See ssl/ssltest.c for some hints on how this can be used. */
+#ifndef BIO_PAIR_DEBUG
+# define NDEBUG
+#endif
+
#include <assert.h>
#include <stdlib.h>
#include <string.h>
}
while (rest);
- peer_b->request -= size;
return size;
}
BIOerr(BIO_F_BIO_CTRL, BIO_R_IN_USE);
ret = 0;
}
+ else if (num == 0)
+ {
+ BIOerr(BIO_F_BIO_CTRL, BIO_R_INVALID_ARGUMENT);
+ ret = 0;
+ }
else
{
size_t new_size = num;
return BIO_ctrl(bio, BIO_C_GET_WRITE_GUARANTEE, 0, NULL);
}
-size_t BIO_ctrl_read_request(BIO *bio)
+size_t BIO_ctrl_get_read_request(BIO *bio)
{
return BIO_ctrl(bio, BIO_C_GET_READ_REQUEST, 0, NULL);
}