diff options
author | Greg Hudson <ghudson@mit.edu> | 2010-07-21 19:01:35 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2010-07-21 19:01:35 +0000 |
commit | a9883866e0b8c72986965c98dbfa98b7f50640cf (patch) | |
tree | fff4ac58e1e5740d12bf669bcac1e9310624fc31 /src/plugins/kdb/hdb/kdb_hdb.c | |
parent | b802a4d4ec3e94a7ae8766e702c4cf1be47b5bf6 (diff) | |
download | krb5-a9883866e0b8c72986965c98dbfa98b7f50640cf.zip krb5-a9883866e0b8c72986965c98dbfa98b7f50640cf.tar.gz krb5-a9883866e0b8c72986965c98dbfa98b7f50640cf.tar.bz2 |
Revert the part of r24157 which added the dal_version argument to the
init_library interface. Instead use the already existing maj_ver
field of the DAL vtable to detect incompatibilities. Since maj_ver
is a short int, use an incrementing number instead of a date for the
major version.
ticket: 6749
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24200 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/plugins/kdb/hdb/kdb_hdb.c')
-rw-r--r-- | src/plugins/kdb/hdb/kdb_hdb.c | 6 |
1 files changed, 2 insertions, 4 deletions
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, |