lib/hdb: hdb_method functions !KRB5_LIB_CALL
The hdb_method functions cannot be KRB5_LIB_CALL as lib/hdb is not lib/krb5. KRB5_LIB_CALL will be inconsistently defined. This inconsistency resulted in crashes of test_hdbplugin on 32-bit Windows. Change-Id: I4cf8d3ef76f31a3cae923df234a19610d956e7ee
This commit is contained in:
@@ -277,8 +277,8 @@ typedef struct HDB {
|
|||||||
|
|
||||||
struct hdb_method {
|
struct hdb_method {
|
||||||
int version;
|
int version;
|
||||||
krb5_error_code (KRB5_LIB_CALL *init)(krb5_context, void **);
|
krb5_error_code (*init)(krb5_context, void **);
|
||||||
void (KRB5_LIB_CALL *fini)(void *);
|
void (*fini)(void *);
|
||||||
const char *prefix;
|
const char *prefix;
|
||||||
krb5_error_code (*create)(krb5_context, HDB **, const char *filename);
|
krb5_error_code (*create)(krb5_context, HDB **, const char *filename);
|
||||||
};
|
};
|
||||||
|
@@ -39,7 +39,7 @@ struct hdb_called {
|
|||||||
};
|
};
|
||||||
struct hdb_called testresult;
|
struct hdb_called testresult;
|
||||||
|
|
||||||
static krb5_error_code KRB5_LIB_CALL
|
static krb5_error_code
|
||||||
hdb_test_create(krb5_context context, struct HDB **db, const char *arg)
|
hdb_test_create(krb5_context context, struct HDB **db, const char *arg)
|
||||||
{
|
{
|
||||||
testresult.create = 1;
|
testresult.create = 1;
|
||||||
|
Reference in New Issue
Block a user