From 39a751d6fb6f558c1834c47fac004e992692b5ac Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Tue, 13 Oct 2009 09:35:39 -0700 Subject: [PATCH] expose hdb_interface_version --- lib/hdb/hdb.c | 2 +- lib/hdb/hdb.h | 2 ++ lib/hdb/version-script.map | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/hdb/hdb.c b/lib/hdb/hdb.c index c5d91b8f9..fa70c7778 100644 --- a/lib/hdb/hdb.c +++ b/lib/hdb/hdb.c @@ -59,7 +59,7 @@ * */ - +const int hdb_interface_version = HDB_INTERFACE_VERSION; static struct hdb_method methods[] = { #if HAVE_DB1 || HAVE_DB3 diff --git a/lib/hdb/hdb.h b/lib/hdb/hdb.h index bf4ffc31c..f34c9fb36 100644 --- a/lib/hdb/hdb.h +++ b/lib/hdb/hdb.h @@ -246,6 +246,8 @@ struct hdb_method { krb5_error_code (*create)(krb5_context, HDB **, const char *filename); }; +extern const int hdb_interface_version; + #include #endif /* __HDB_H__ */ diff --git a/lib/hdb/version-script.map b/lib/hdb/version-script.map index 04871951f..6909fa2b0 100644 --- a/lib/hdb/version-script.map +++ b/lib/hdb/version-script.map @@ -68,6 +68,7 @@ HEIMDAL_HDB_1.0 { hdb_value2entry_alias; hdb_write_master_key; length_hdb_keyset; + hdb_interface_version; hdb_kt_ops;