diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/kdb/db2/db2_exp.c | 6 | ||||
-rw-r--r-- | src/plugins/kdb/hdb/kdb_hdb.c | 6 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/ldap_exp.c | 2 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h | 2 | ||||
-rw-r--r-- | src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c | 4 |
5 files changed, 7 insertions, 13 deletions
diff --git a/src/plugins/kdb/db2/db2_exp.c b/src/plugins/kdb/db2/db2_exp.c index 2de4bbc..327a6b8 100644 --- a/src/plugins/kdb/db2/db2_exp.c +++ b/src/plugins/kdb/db2/db2_exp.c @@ -193,12 +193,10 @@ WRAP_VOID (krb5_db2_audit_as_req, (kcontext, request, client, server, authtime, error_code)); static krb5_error_code -hack_init (int dal_version) +hack_init (void) { krb5_error_code c; - if (dal_version != KRB5_KDB_DAL_VERSION) - return KRB5_KDB_DBTYPE_MISMATCH; c = krb5int_mutex_alloc (&krb5_db2_mutex); if (c) return c; @@ -219,7 +217,7 @@ hack_cleanup (void) */ kdb_vftabl PLUGIN_SYMBOL_NAME(krb5_db2, kdb_function_table) = { - 1, /* major version number 1 */ + KRB5_KDB_DAL_MAJOR_VERSION, /* major version number */ 0, /* minor version number 0 */ /* init_library */ hack_init, /* fini_library */ hack_cleanup, diff --git a/src/plugins/kdb/hdb/kdb_hdb.c b/src/plugins/kdb/hdb/kdb_hdb.c index 23039b7..460636a 100644 --- a/src/plugins/kdb/hdb/kdb_hdb.c +++ b/src/plugins/kdb/hdb/kdb_hdb.c @@ -40,10 +40,8 @@ #include "kdb_hdb.h" static krb5_error_code -kh_init(int dal_version) +kh_init(void) { - if (dal_version != KRB5_KDB_DAL_VERSION) - return KRB5_KDB_DBTYPE_MISMATCH; return 0; } @@ -1218,7 +1216,7 @@ kh_db_check_allowed_to_delegate(krb5_context context, } kdb_vftabl kdb_function_table = { - 1, + KRB5_KDB_DAL_MAJOR_VERSION, 0, kh_init, kh_fini, diff --git a/src/plugins/kdb/ldap/ldap_exp.c b/src/plugins/kdb/ldap/ldap_exp.c index 55f10d9..069ee82 100644 --- a/src/plugins/kdb/ldap/ldap_exp.c +++ b/src/plugins/kdb/ldap/ldap_exp.c @@ -47,7 +47,7 @@ */ kdb_vftabl PLUGIN_SYMBOL_NAME(krb5_ldap, kdb_function_table) = { - 1, /* major version number 1 */ + KRB5_KDB_DAL_MAJOR_VERSION, /* major version number */ 0, /* minor version number 0 */ /* init_library */ krb5_ldap_lib_init, /* fini_library */ krb5_ldap_lib_cleanup, diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h index 8531b8c..1f998a4 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h +++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h @@ -254,7 +254,7 @@ krb5_error_code krb5_ldap_get_age(krb5_context, char *, time_t *); krb5_error_code -krb5_ldap_lib_init(int dal_version); +krb5_ldap_lib_init(void); krb5_error_code krb5_ldap_lib_cleanup(void); diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c index 6749bce..82b0333 100644 --- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c +++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap_conn.c @@ -312,10 +312,8 @@ krb5_ldap_rebind(krb5_ldap_context *ldap_context, * DAL API functions */ krb5_error_code -krb5_ldap_lib_init(int dal_version) +krb5_ldap_lib_init() { - if (dal_version != KRB5_KDB_DAL_VERSION) - return KRB5_KDB_DBTYPE_MISMATCH; return 0; } |