1 /** 2 * \file compat-2.x.h 3 * 4 * \brief Compatibility definitions 5 * 6 * \deprecated Use the new names directly instead 7 */ 8 /* 9 * Copyright The Mbed TLS Contributors 10 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 11 */ 12 13 #if defined(MBEDTLS_DEPRECATED_WARNING) 14 #warning "Including compat-2.x.h is deprecated" 15 #endif 16 17 #ifndef MBEDTLS_COMPAT2X_H 18 #define MBEDTLS_COMPAT2X_H 19 20 /* 21 * Macros for renamed functions 22 */ 23 #define mbedtls_ctr_drbg_update_ret mbedtls_ctr_drbg_update 24 #define mbedtls_hmac_drbg_update_ret mbedtls_hmac_drbg_update 25 #define mbedtls_md5_starts_ret mbedtls_md5_starts 26 #define mbedtls_md5_update_ret mbedtls_md5_update 27 #define mbedtls_md5_finish_ret mbedtls_md5_finish 28 #define mbedtls_md5_ret mbedtls_md5 29 #define mbedtls_ripemd160_starts_ret mbedtls_ripemd160_starts 30 #define mbedtls_ripemd160_update_ret mbedtls_ripemd160_update 31 #define mbedtls_ripemd160_finish_ret mbedtls_ripemd160_finish 32 #define mbedtls_ripemd160_ret mbedtls_ripemd160 33 #define mbedtls_sha1_starts_ret mbedtls_sha1_starts 34 #define mbedtls_sha1_update_ret mbedtls_sha1_update 35 #define mbedtls_sha1_finish_ret mbedtls_sha1_finish 36 #define mbedtls_sha1_ret mbedtls_sha1 37 #define mbedtls_sha256_starts_ret mbedtls_sha256_starts 38 #define mbedtls_sha256_update_ret mbedtls_sha256_update 39 #define mbedtls_sha256_finish_ret mbedtls_sha256_finish 40 #define mbedtls_sha256_ret mbedtls_sha256 41 #define mbedtls_sha512_starts_ret mbedtls_sha512_starts 42 #define mbedtls_sha512_update_ret mbedtls_sha512_update 43 #define mbedtls_sha512_finish_ret mbedtls_sha512_finish 44 #define mbedtls_sha512_ret mbedtls_sha512 45 46 #endif /* MBEDTLS_COMPAT2X_H */ 47