]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
imc-attestation: Use TNC_IMV_API prefix on TNC functions for correct declspec
authorMartin Willi <martin@revosec.ch>
Wed, 8 Jan 2014 11:24:37 +0000 (12:24 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:07 +0000 (15:53 +0200)
src/libpts/plugins/imc_attestation/imc_attestation.c

index c71b2166623937149c1e05a6b6ab283cc7c0ceb3..74bbc468f192712d9f3ccc4ffcc5f9d8afc2f976 100644 (file)
@@ -61,10 +61,10 @@ static pts_dh_group_t supported_dh_groups = PTS_DH_GROUP_NONE;
 /**
  * see section 3.8.1 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_Initialize(TNC_IMCID imc_id,
-                                                         TNC_Version min_version,
-                                                         TNC_Version max_version,
-                                                         TNC_Version *actual_version)
+TNC_Result TNC_IMC_API TNC_IMC_Initialize(TNC_IMCID imc_id,
+                                                                                 TNC_Version min_version,
+                                                                                 TNC_Version max_version,
+                                                                                 TNC_Version *actual_version)
 {
        bool mandatory_dh_groups;
 
@@ -103,9 +103,9 @@ TNC_Result TNC_IMC_Initialize(TNC_IMCID imc_id,
 /**
  * see section 3.8.2 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_NotifyConnectionChange(TNC_IMCID imc_id,
-                                                                                 TNC_ConnectionID connection_id,
-                                                                                 TNC_ConnectionState new_state)
+TNC_Result TNC_IMC_API TNC_IMC_NotifyConnectionChange(TNC_IMCID imc_id,
+                                                                                               TNC_ConnectionID connection_id,
+                                                                                               TNC_ConnectionState new_state)
 {
        imc_state_t *state;
 
@@ -142,8 +142,8 @@ TNC_Result TNC_IMC_NotifyConnectionChange(TNC_IMCID imc_id,
 /**
  * see section 3.8.3 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_BeginHandshake(TNC_IMCID imc_id,
-                                                                 TNC_ConnectionID connection_id)
+TNC_Result TNC_IMC_API TNC_IMC_BeginHandshake(TNC_IMCID imc_id,
+                                                                                         TNC_ConnectionID connection_id)
 {
        if (!imc_attestation)
        {
@@ -228,11 +228,11 @@ static TNC_Result receive_message(imc_state_t *state, imc_msg_t *in_msg)
 /**
  * see section 3.8.4 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
-                                                                 TNC_ConnectionID connection_id,
-                                                                 TNC_BufferReference msg,
-                                                                 TNC_UInt32 msg_len,
-                                                                 TNC_MessageType msg_type)
+TNC_Result TNC_IMC_API TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
+                                                                                         TNC_ConnectionID connection_id,
+                                                                                         TNC_BufferReference msg,
+                                                                                         TNC_UInt32 msg_len,
+                                                                                         TNC_MessageType msg_type)
 {
        imc_state_t *state;
        imc_msg_t *in_msg;
@@ -259,15 +259,15 @@ TNC_Result TNC_IMC_ReceiveMessage(TNC_IMCID imc_id,
 /**
  * see section 3.8.6 of TCG TNC IF-IMV Specification 1.3
  */
-TNC_Result TNC_IMC_ReceiveMessageLong(TNC_IMCID imc_id,
-                                                                         TNC_ConnectionID connection_id,
-                                                                         TNC_UInt32 msg_flags,
-                                                                         TNC_BufferReference msg,
-                                                                         TNC_UInt32 msg_len,
-                                                                         TNC_VendorID msg_vid,
-                                                                         TNC_MessageSubtype msg_subtype,
-                                                                         TNC_UInt32 src_imv_id,
-                                                                         TNC_UInt32 dst_imc_id)
+TNC_Result TNC_IMC_API TNC_IMC_ReceiveMessageLong(TNC_IMCID imc_id,
+                                                                                                 TNC_ConnectionID connection_id,
+                                                                                                 TNC_UInt32 msg_flags,
+                                                                                                 TNC_BufferReference msg,
+                                                                                                 TNC_UInt32 msg_len,
+                                                                                                 TNC_VendorID msg_vid,
+                                                                                                 TNC_MessageSubtype msg_subtype,
+                                                                                                 TNC_UInt32 src_imv_id,
+                                                                                                 TNC_UInt32 dst_imc_id)
 {
        imc_state_t *state;
        imc_msg_t *in_msg;
@@ -294,8 +294,8 @@ TNC_Result TNC_IMC_ReceiveMessageLong(TNC_IMCID imc_id,
 /**
  * see section 3.8.7 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_BatchEnding(TNC_IMCID imc_id,
-                                                          TNC_ConnectionID connection_id)
+TNC_Result TNC_IMC_API TNC_IMC_BatchEnding(TNC_IMCID imc_id,
+                                                                                  TNC_ConnectionID connection_id)
 {
        if (!imc_attestation)
        {
@@ -308,7 +308,7 @@ TNC_Result TNC_IMC_BatchEnding(TNC_IMCID imc_id,
 /**
  * see section 3.8.8 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_Terminate(TNC_IMCID imc_id)
+TNC_Result TNC_IMC_API TNC_IMC_Terminate(TNC_IMCID imc_id)
 {
        if (!imc_attestation)
        {
@@ -327,7 +327,7 @@ TNC_Result TNC_IMC_Terminate(TNC_IMCID imc_id)
 /**
  * see section 4.2.8.1 of TCG TNC IF-IMC Specification 1.3
  */
-TNC_Result TNC_IMC_ProvideBindFunction(TNC_IMCID imc_id,
+TNC_Result TNC_IMC_API TNC_IMC_ProvideBindFunction(TNC_IMCID imc_id,
                                                                TNC_TNCC_BindFunctionPointer bind_function)
 {
        if (!imc_attestation)