Merge pull request #8589 from daverodgman/ct-unused

Remove unused/non-compiling code
This commit is contained in:
Dave Rodgman 2023-12-04 09:41:39 +00:00 committed by GitHub
commit 7a2dae6442
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,19 +21,6 @@
#include <string.h>
#if defined(MBEDTLS_USE_PSA_CRYPTO) && defined(MBEDTLS_SSL_SOME_SUITES_USE_MAC)
#include "psa/crypto.h"
/* Define a local translating function to save code size by not using too many
* arguments in each translating place. */
static int local_err_translation(psa_status_t status)
{
return psa_status_to_mbedtls(status, psa_to_ssl_errors,
ARRAY_LENGTH(psa_to_ssl_errors),
psa_generic_status_to_mbedtls);
}
#define PSA_TO_MBEDTLS_ERR(status) local_err_translation(status)
#endif
#if !defined(MBEDTLS_CT_ASM)
/*
* Define an object with the value zero, such that the compiler cannot prove that it