From 905e95eb3724dcb3721fa58feffe2839b0aa1deb Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Fri, 26 Jan 2018 10:47:43 +0100 Subject: [PATCH] compiler fix --- src/sm/sm-eac.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sm/sm-eac.h b/src/sm/sm-eac.h index 0fa353f2..bf6b4dc5 100644 --- a/src/sm/sm-eac.h +++ b/src/sm/sm-eac.h @@ -38,6 +38,10 @@ extern "C" { #include #include +/** @brief ASN.1 type for authenticated auxiliary data for terminal authentication */ +typedef STACK_OF(CVC_DISCRETIONARY_DATA_TEMPLATE) ASN1_AUXILIARY_DATA; +DECLARE_ASN1_FUNCTIONS(ASN1_AUXILIARY_DATA) + #else /** @brief Type of the secret */ enum s_type { @@ -158,10 +162,6 @@ int perform_terminal_authentication(sc_card_t *card, const unsigned char *privkey, size_t privkey_len, const unsigned char *auxiliary_data, size_t auxiliary_data_len); -/** @brief ASN.1 type for authenticated auxiliary data for terminal authentication */ -typedef STACK_OF(CVC_DISCRETIONARY_DATA_TEMPLATE) ASN1_AUXILIARY_DATA; -DECLARE_ASN1_FUNCTIONS(ASN1_AUXILIARY_DATA) - /** * @brief Establish secure messaging using Chip Authentication version 2 *