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 *