WIN32: fix calling conventions for 32-bit builds
On 32-bit Windows Intel builds the __cdecl and __stdcall calling conventions are different so labeling the functions that are exported or assigned to function pointers matters. Change-Id: I03b6f34baeb9ffb2e683fd979f12f27a5078a4da
This commit is contained in:
@@ -46,7 +46,7 @@ struct chpass_principal_hook_ctx {
|
||||
const char *password;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
chpass_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -111,7 +111,7 @@ struct create_principal_hook_ctx {
|
||||
const char *password;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
create_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -42,7 +42,7 @@ struct delete_principal_hook_ctx {
|
||||
krb5_const_principal princ;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
delete_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -43,7 +43,7 @@ struct modify_principal_hook_ctx {
|
||||
uint32_t mask;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
modify_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -42,7 +42,7 @@ struct prune_principal_hook_ctx {
|
||||
int kvno;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
prune_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -42,7 +42,7 @@ struct randkey_principal_hook_ctx {
|
||||
krb5_const_principal princ;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
randkey_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -42,7 +42,7 @@ struct rename_principal_hook_ctx {
|
||||
krb5_const_principal source, target;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
rename_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, AuriStor, Inc.
|
||||
* Copyright (c) 2018-2019, AuriStor, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -261,7 +261,7 @@ kadm5_hook_plugin_load(krb5_context context,
|
||||
size_t *num_hooks,
|
||||
const kadm5_hook_ftable *const **hooks);
|
||||
|
||||
static uintptr_t
|
||||
static uintptr_t KRB5_LIB_CALL
|
||||
sample_hook_get_instance(const char *libname)
|
||||
{
|
||||
if (strcmp(libname, "kadm5") == 0)
|
||||
|
@@ -83,7 +83,7 @@ _kadm5_s_free_hooks(kadm5_server_context *ctx)
|
||||
_krb5_unload_plugins(ctx->context, "kadm5");
|
||||
}
|
||||
|
||||
uintptr_t
|
||||
uintptr_t KRB5_LIB_CALL
|
||||
kadm5_get_instance(const char *libname)
|
||||
{
|
||||
static const char *instance = "libkadm5";
|
||||
|
@@ -45,7 +45,7 @@ struct setkey_principal_hook_ctx {
|
||||
krb5_keyblock *keys;
|
||||
};
|
||||
|
||||
static krb5_error_code
|
||||
static krb5_error_code KRB5_LIB_CALL
|
||||
setkey_principal_hook_cb(krb5_context context,
|
||||
const void *hook,
|
||||
void *hookctx,
|
||||
|
Reference in New Issue
Block a user