summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2010-07-21 19:01:35 +0000
committerGreg Hudson <ghudson@mit.edu>2010-07-21 19:01:35 +0000
commita9883866e0b8c72986965c98dbfa98b7f50640cf (patch)
treefff4ac58e1e5740d12bf669bcac1e9310624fc31 /src/include
parentb802a4d4ec3e94a7ae8766e702c4cf1be47b5bf6 (diff)
downloadkrb5-a9883866e0b8c72986965c98dbfa98b7f50640cf.tar.gz
krb5-a9883866e0b8c72986965c98dbfa98b7f50640cf.tar.xz
krb5-a9883866e0b8c72986965c98dbfa98b7f50640cf.zip
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/include')
-rw-r--r--src/include/kdb.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/include/kdb.h b/src/include/kdb.h
index e4970e72a..d401fd544 100644
--- a/src/include/kdb.h
+++ b/src/include/kdb.h
@@ -742,11 +742,10 @@ krb5_dbe_free_tl_data(krb5_context, krb5_tl_data *);
#define KRB5_KDB_OPT_SET_LOCK_MODE 1
/*
- * This number indicates the date of the last incompatible change to the
- * DAL. It is passed to init_library to allow KDB modules to detect when
- * they are being loaded by an incompatible version of the KDC.
+ * This number indicates the date of the last incompatible change to the DAL.
+ * The maj_ver field of the module's vtable structure must match this version.
*/
-#define KRB5_KDB_DAL_VERSION 20100714
+#define KRB5_KDB_DAL_MAJOR_VERSION 2
/*
* A krb5_context can hold one database object. Modules should use
@@ -775,7 +774,7 @@ typedef struct _kdb_vftabl {
* Mandatory: Invoked after the module library is loaded, when the first DB
* using the module is opened, across all contexts.
*/
- krb5_error_code (*init_library)(int dal_version);
+ krb5_error_code (*init_library)(void);
/*
* Mandatory: Invoked before the module library is unloaded, after the last