From ef88e68188287c649d4a71c8cf904720242e7763 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 15 Oct 2014 15:35:32 +0200 Subject: [PATCH] Deprecate ssl_set_bio() --- ChangeLog | 1 + include/polarssl/ssl.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index c7bda6bf7..3a8d77f94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ API Changes * 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. * 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 Security diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index ad77270c3..da95a9ff1 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h @@ -1166,6 +1166,8 @@ void ssl_set_dbg( ssl_context *ssl, * \warning It is required that p_recv == p_send. Otherwise, the first * attempt at sending or receiving will result in a * POLARSSL_ERR_SSL_BAD_INPUT_DATA error. + * + * \deprecated Superseded by ssl_set_bio_timeout(). */ void ssl_set_bio( ssl_context *ssl, int (*f_recv)(void *, unsigned char *, size_t), void *p_recv,