From 69d9f9dde18be1f97675152986c8bd8d7a88b129 Mon Sep 17 00:00:00 2001 From: as-iotex <82106612+as-iotex@users.noreply.github.com> Date: Fri, 25 Nov 2022 14:18:30 +0000 Subject: [PATCH] chore: remove duplicate private_access header when required, it will be included from mbedtls, no need to duplicate it here --- interface/include/private_access.h | 32 ---------------------------- interface/include/psa/crypto_types.h | 2 -- 2 files changed, 34 deletions(-) delete mode 100644 interface/include/private_access.h diff --git a/interface/include/private_access.h b/interface/include/private_access.h deleted file mode 100644 index 85461f6d2..000000000 --- a/interface/include/private_access.h +++ /dev/null @@ -1,32 +0,0 @@ - /** - * \file private_access.h - * - * \brief Macro wrapper for struct's members. - */ -/* - * Copyright The Mbed TLS Contributors - * SPDX-License-Identifier: Apache-2.0 - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MBEDTLS_PRIVATE_ACCESS_H -#define MBEDTLS_PRIVATE_ACCESS_H - -#ifndef MBEDTLS_ALLOW_PRIVATE_ACCESS -#define MBEDTLS_PRIVATE(member) private_##member -#else -#define MBEDTLS_PRIVATE(member) member -#endif - -#endif /* MBEDTLS_PRIVATE_ACCESS_H */ diff --git a/interface/include/psa/crypto_types.h b/interface/include/psa/crypto_types.h index 262426667..0588d51d8 100644 --- a/interface/include/psa/crypto_types.h +++ b/interface/include/psa/crypto_types.h @@ -25,8 +25,6 @@ #include -#include "private_access.h" - /** \defgroup error Error codes * @{ */