Deprecate ssl_set_bio()

This commit is contained in:
Manuel Pégourié-Gonnard 2014-10-15 15:35:32 +02:00 committed by Paul Bakker
parent df3acd82e2
commit ef88e68188
2 changed files with 3 additions and 0 deletions

View file

@ -8,6 +8,7 @@ API Changes
* net_connect() and net_bind() have a new 'proto' argument to choose * net_connect() and net_bind() have a new 'proto' argument to choose
between TCP and UDP, using the macros NET_PROTO_TCP or NET_PROTO_UDP. between TCP and UDP, using the macros NET_PROTO_TCP or NET_PROTO_UDP.
* ssl_set_bio() now requires that p_send == p_recv. * ssl_set_bio() now requires that p_send == p_recv.
* ssl_set_bio() is deprecated in favor of ssl_set_bio_timeout().
= PolarSSL 1.3.9 released 2014-10-20 = PolarSSL 1.3.9 released 2014-10-20
Security Security

View file

@ -1166,6 +1166,8 @@ void ssl_set_dbg( ssl_context *ssl,
* \warning It is required that p_recv == p_send. Otherwise, the first * \warning It is required that p_recv == p_send. Otherwise, the first
* attempt at sending or receiving will result in a * attempt at sending or receiving will result in a
* POLARSSL_ERR_SSL_BAD_INPUT_DATA error. * POLARSSL_ERR_SSL_BAD_INPUT_DATA error.
*
* \deprecated Superseded by ssl_set_bio_timeout().
*/ */
void ssl_set_bio( ssl_context *ssl, void ssl_set_bio( ssl_context *ssl,
int (*f_recv)(void *, unsigned char *, size_t), void *p_recv, int (*f_recv)(void *, unsigned char *, size_t), void *p_recv,