Deprecate global func ptrs for MBEDTLS_SSL_HW_RECORD_ACCEL

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
Andres Amaya Garcia 2018-12-05 22:40:09 +00:00 committed by Manuel Pégourié-Gonnard
parent 84b4e796a3
commit 3f6cc5f786

View file

@ -1326,18 +1326,34 @@ struct mbedtls_ssl_context
#define MBEDTLS_SSL_CHANNEL_OUTBOUND 0 #define MBEDTLS_SSL_CHANNEL_OUTBOUND 0
#define MBEDTLS_SSL_CHANNEL_INBOUND 1 #define MBEDTLS_SSL_CHANNEL_INBOUND 1
extern int (*mbedtls_ssl_hw_record_init)(mbedtls_ssl_context *ssl, #if defined(MBEDTLS_DEPRECATED_WARNING)
const unsigned char *key_enc, const unsigned char *key_dec, #define MBEDTLS_DEPRECATED __attribute__((deprecated))
size_t keylen, #else
const unsigned char *iv_enc, const unsigned char *iv_dec, #define MBEDTLS_DEPRECATED
size_t ivlen, #endif
const unsigned char *mac_enc, const unsigned char *mac_dec,
size_t maclen); MBEDTLS_DEPRECATED extern int (*mbedtls_ssl_hw_record_init)(
extern int (*mbedtls_ssl_hw_record_activate)(mbedtls_ssl_context *ssl, int direction); mbedtls_ssl_context *ssl,
extern int (*mbedtls_ssl_hw_record_reset)(mbedtls_ssl_context *ssl); const unsigned char *key_enc, const unsigned char *key_dec,
extern int (*mbedtls_ssl_hw_record_write)(mbedtls_ssl_context *ssl); size_t keylen,
extern int (*mbedtls_ssl_hw_record_read)(mbedtls_ssl_context *ssl); const unsigned char *iv_enc, const unsigned char *iv_dec,
extern int (*mbedtls_ssl_hw_record_finish)(mbedtls_ssl_context *ssl); size_t ivlen,
const unsigned char *mac_enc, const unsigned char *mac_dec,
size_t maclen);
MBEDTLS_DEPRECATED extern int (*mbedtls_ssl_hw_record_activate)(
mbedtls_ssl_context *ssl,
int direction );
MBEDTLS_DEPRECATED extern int (*mbedtls_ssl_hw_record_reset)(
mbedtls_ssl_context *ssl );
MBEDTLS_DEPRECATED extern int (*mbedtls_ssl_hw_record_write)(
mbedtls_ssl_context *ssl );
MBEDTLS_DEPRECATED extern int (*mbedtls_ssl_hw_record_read)(
mbedtls_ssl_context *ssl );
MBEDTLS_DEPRECATED extern int (*mbedtls_ssl_hw_record_finish)(
mbedtls_ssl_context *ssl );
#undef MBEDTLS_DEPRECATED
#endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */ #endif /* MBEDTLS_SSL_HW_RECORD_ACCEL */
/** /**