From c794b1fbab8181443f914ef6d66a7da364d187b2 Mon Sep 17 00:00:00 2001 From: Kevin Wasserman Date: Thu, 6 Nov 2014 13:00:01 -0500 Subject: [PATCH] Add KRB5_CALLCONV decoration where required --- json_gssapi/src/commands/GSSGetMic.h | 2 +- json_gssapi/src/commands/GSSPseudoRandom.h | 3 +-- json_gssapi/src/commands/GSSUnwrap.h | 2 +- json_gssapi/src/commands/GSSWrap.h | 2 +- json_gssapi/src/datamodel/GSSCredential.h | 2 +- json_gssapi/src/datamodel/GSSName.h | 2 +- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/json_gssapi/src/commands/GSSGetMic.h b/json_gssapi/src/commands/GSSGetMic.h index 424cc89..e8cce56 100644 --- a/json_gssapi/src/commands/GSSGetMic.h +++ b/json_gssapi/src/commands/GSSGetMic.h @@ -39,7 +39,7 @@ #include "datamodel/GSSBuffer.h" #include -typedef OM_uint32 (*gss_get_mic_type) ( +typedef OM_uint32 (KRB5_CALLCONV *gss_get_mic_type) ( OM_uint32 *, /* minor_status */ gss_ctx_id_t, /* context_handle */ gss_qop_t, /* qop_req */ diff --git a/json_gssapi/src/commands/GSSPseudoRandom.h b/json_gssapi/src/commands/GSSPseudoRandom.h index fdc88a5..251c844 100644 --- a/json_gssapi/src/commands/GSSPseudoRandom.h +++ b/json_gssapi/src/commands/GSSPseudoRandom.h @@ -35,13 +35,12 @@ #ifndef GSSPSEUDORANDOMCOMMAND_H #define GSSPSEUDORANDOMCOMMAND_H -#include #include #include "datamodel/GSSBuffer.h" #include "GSSCommand.h" -typedef OM_uint32 (*gss_pseudo_random_type) ( +typedef OM_uint32 (KRB5_CALLCONV *gss_pseudo_random_type) ( OM_uint32 *, /* minor_status */ gss_ctx_id_t, /* context */ int, /* prf_key */ diff --git a/json_gssapi/src/commands/GSSUnwrap.h b/json_gssapi/src/commands/GSSUnwrap.h index e9fcf60..93d09d9 100644 --- a/json_gssapi/src/commands/GSSUnwrap.h +++ b/json_gssapi/src/commands/GSSUnwrap.h @@ -39,7 +39,7 @@ #include "datamodel/GSSBuffer.h" #include -typedef OM_uint32 (*gss_unwrap_type) ( +typedef OM_uint32 (KRB5_CALLCONV *gss_unwrap_type) ( OM_uint32 *, /* minor_status */ gss_ctx_id_t, /* context_handle */ gss_buffer_t, /* input_message_buffer */ diff --git a/json_gssapi/src/commands/GSSWrap.h b/json_gssapi/src/commands/GSSWrap.h index 796450c..08894cf 100644 --- a/json_gssapi/src/commands/GSSWrap.h +++ b/json_gssapi/src/commands/GSSWrap.h @@ -40,7 +40,7 @@ #include "GSSCommand.h" #include "datamodel/GSSBuffer.h" -typedef OM_uint32 (*gss_wrap_type) ( +typedef OM_uint32 (KRB5_CALLCONV *gss_wrap_type) ( OM_uint32 *, /* minor_status */ gss_ctx_id_t, /* context_handle */ int, /* conf_req_flag */ diff --git a/json_gssapi/src/datamodel/GSSCredential.h b/json_gssapi/src/datamodel/GSSCredential.h index 9c81718..e324bc5 100644 --- a/json_gssapi/src/datamodel/GSSCredential.h +++ b/json_gssapi/src/datamodel/GSSCredential.h @@ -12,7 +12,7 @@ #include #include -typedef OM_uint32 (*gss_acq_cred_type)( +typedef OM_uint32 (KRB5_CALLCONV *gss_acq_cred_type)( OM_uint32 *, /* minor_status */ gss_name_t, /* desired_name */ OM_uint32, /* time_req */ diff --git a/json_gssapi/src/datamodel/GSSName.h b/json_gssapi/src/datamodel/GSSName.h index f8a4fdd..74eccbc 100644 --- a/json_gssapi/src/datamodel/GSSName.h +++ b/json_gssapi/src/datamodel/GSSName.h @@ -13,7 +13,7 @@ #define GSSNAME_H -typedef OM_uint32 (*gss_imp_name_type)( +typedef OM_uint32 (KRB5_CALLCONV *gss_imp_name_type)( OM_uint32 *, /* minor_status */ gss_buffer_t, /* input_name_buffer */ gss_OID, /* input_name_type(used to be const) */ -- 2.1.4