summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2010-05-04 04:12:24 +0000
committerGreg Hudson <ghudson@mit.edu>2010-05-04 04:12:24 +0000
commitbf7421c5119d44057a576822b2426b6f05d23a62 (patch)
tree40b37692248ae0246449ab5d90232121e310c7c9 /src
parent120d229ed83a09b5d0a65f81d6030c6383895f32 (diff)
downloadkrb5-bf7421c5119d44057a576822b2426b6f05d23a62.tar.gz
krb5-bf7421c5119d44057a576822b2426b6f05d23a62.tar.xz
krb5-bf7421c5119d44057a576822b2426b6f05d23a62.zip
Remove krb5_db_set_option and the associated DAL entry. It was not
used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23965 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/include/kdb.h17
-rw-r--r--src/lib/kdb/kdb5.c16
-rw-r--r--src/plugins/kdb/db2/db2_exp.c6
-rw-r--r--src/plugins/kdb/db2/kdb_db2.c33
-rw-r--r--src/plugins/kdb/hdb/kdb_hdb.c9
-rw-r--r--src/plugins/kdb/ldap/ldap_exp.c1
-rw-r--r--src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h3
-rw-r--r--src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c8
8 files changed, 0 insertions, 93 deletions
diff --git a/src/include/kdb.h b/src/include/kdb.h
index 492e7364e..5225a12e5 100644
--- a/src/include/kdb.h
+++ b/src/include/kdb.h
@@ -417,7 +417,6 @@ const char * krb5_db_errcode2string ( krb5_context kcontext, long err_code );
krb5_error_code krb5_db_destroy ( krb5_context kcontext, char **db_args );
krb5_error_code krb5_db_promote ( krb5_context kcontext, char **db_args );
krb5_error_code krb5_db_get_age ( krb5_context kcontext, char *db_name, time_t *t );
-krb5_error_code krb5_db_set_option ( krb5_context kcontext, int option, void *value );
krb5_error_code krb5_db_lock ( krb5_context kcontext, int lock_mode );
krb5_error_code krb5_db_unlock ( krb5_context kcontext );
krb5_error_code krb5_db_get_principal ( krb5_context kcontext,
@@ -950,22 +949,6 @@ typedef struct _kdb_vftabl {
time_t *age);
/*
- * Optional: Set a database option. This function is not currently used by
- * any callers. Behavior depends on the value of option:
- *
- * KRB5_KDB_OPT_SET_DB_NAME: Interpret value as a C string. Set the
- * database name (e.g. a filename for an embedded database).
- *
- * KRB5_KDB_OPT_SET_LOCK_MODE: Interpret value as a pointer to
- * krb5_boolean. If *value points to TRUE, set the database to
- * non-blocking lock mode, causing operations to return OSA_ADB_CANTLOCK_DB
- * when it would otherwise wait to obtain a lock. Set *value to the old
- * value of the non-blocking flag.
- */
- krb5_error_code (*db_set_option)(krb5_context kcontext, int option,
- void *value);
-
- /*
* Optional: Lock the database, with semantics depending on the mode
* argument:
*
diff --git a/src/lib/kdb/kdb5.c b/src/lib/kdb/kdb5.c
index 83dde5137..a7e1bb5c1 100644
--- a/src/lib/kdb/kdb5.c
+++ b/src/lib/kdb/kdb5.c
@@ -744,22 +744,6 @@ krb5_db_get_age(krb5_context kcontext, char *db_name, time_t * t)
}
krb5_error_code
-krb5_db_set_option(krb5_context kcontext, int option, void *value)
-{
- krb5_error_code status = 0;
- kdb_vftabl *v;
-
- status = get_vftabl(kcontext, &v);
- if (status)
- return status;
- if (v->db_set_option == NULL)
- return KRB5_KDB_DBTYPE_NOSUP;
- status = v->db_set_option(kcontext, option, value);
- get_errmsg(kcontext, status);
- return status;
-}
-
-krb5_error_code
krb5_db_lock(krb5_context kcontext, int lock_mode)
{
krb5_error_code status = 0;
diff --git a/src/plugins/kdb/db2/db2_exp.c b/src/plugins/kdb/db2/db2_exp.c
index f96c1a4dd..c7fb7566a 100644
--- a/src/plugins/kdb/db2/db2_exp.c
+++ b/src/plugins/kdb/db2/db2_exp.c
@@ -110,11 +110,6 @@ WRAP_K (krb5_db2_db_get_age,
char *s,
time_t *t),
(ctx, s, t));
-WRAP_K (krb5_db2_db_set_option,
- ( krb5_context kcontext,
- int option,
- void *value ),
- (kcontext, option, value));
WRAP_K (krb5_db2_db_lock,
( krb5_context context,
@@ -238,7 +233,6 @@ kdb_vftabl PLUGIN_SYMBOL_NAME(krb5_db2, kdb_function_table) = {
/* db_create */ wrap_krb5_db2_create,
/* db_destroy */ wrap_krb5_db2_destroy,
/* db_get_age */ wrap_krb5_db2_db_get_age,
- /* db_set_option */ wrap_krb5_db2_db_set_option,
/* db_lock */ wrap_krb5_db2_db_lock,
/* db_unlock */ wrap_krb5_db2_db_unlock,
/* db_get_principal */ wrap_krb5_db2_db_get_principal,
diff --git a/src/plugins/kdb/db2/kdb_db2.c b/src/plugins/kdb/db2/kdb_db2.c
index 50d427ef5..65d7d3742 100644
--- a/src/plugins/kdb/db2/kdb_db2.c
+++ b/src/plugins/kdb/db2/kdb_db2.c
@@ -1557,39 +1557,6 @@ krb5_db2_set_master_key_ext(krb5_context kcontext,
return krb5_db2_db_set_mkey(kcontext, key);
}
-krb5_error_code
-krb5_db2_db_set_option(krb5_context kcontext, int option, void *value)
-{
- krb5_error_code status = 0;
- krb5_boolean oldval;
- krb5_db2_context *db_ctx;
- kdb5_dal_handle *dal_handle;
-
- if (!k5db2_inited(kcontext))
- return KRB5_KDB_DBNOTINITED;
-
- dal_handle = kcontext->dal_handle;
- db_ctx = (krb5_db2_context *) dal_handle->db_context;
-
-
- switch (option) {
- case KRB5_KDB_OPT_SET_DB_NAME:
- status = krb5_db2_db_set_name(kcontext, (char *) value, db_ctx->tempdb);
- break;
-
- case KRB5_KDB_OPT_SET_LOCK_MODE:
- oldval = krb5_db2_db_set_lockmode(kcontext, *((krb5_boolean *) value));
- *((krb5_boolean *) value) = oldval;
- break;
-
- default:
- status = -1; /* TBD */
- break;
- }
-
- return status;
-}
-
void *
krb5_db2_alloc(krb5_context kcontext, void *ptr, size_t size)
{
diff --git a/src/plugins/kdb/hdb/kdb_hdb.c b/src/plugins/kdb/hdb/kdb_hdb.c
index f3668fa30..89b06513d 100644
--- a/src/plugins/kdb/hdb/kdb_hdb.c
+++ b/src/plugins/kdb/hdb/kdb_hdb.c
@@ -567,14 +567,6 @@ kh_db_get_age(krb5_context context,
}
static krb5_error_code
-kh_db_set_option(krb5_context context,
- int option,
- void *value)
-{
- return KRB5_KDB_DBTYPE_NOSUP;
-}
-
-static krb5_error_code
kh_db_lock(krb5_context context, int kmode)
{
kh_db_context *kh = KH_DB_CONTEXT(context);
@@ -1386,7 +1378,6 @@ kdb_vftabl kdb_function_table = {
kh_db_create,
kh_db_destroy,
kh_db_get_age,
- kh_db_set_option,
kh_db_lock,
kh_db_unlock,
kh_db_get_principal,
diff --git a/src/plugins/kdb/ldap/ldap_exp.c b/src/plugins/kdb/ldap/ldap_exp.c
index 8deaf3737..13bbc9351 100644
--- a/src/plugins/kdb/ldap/ldap_exp.c
+++ b/src/plugins/kdb/ldap/ldap_exp.c
@@ -56,7 +56,6 @@ kdb_vftabl PLUGIN_SYMBOL_NAME(krb5_ldap, kdb_function_table) = {
/* db_create */ krb5_ldap_create,
/* db_destroy */ krb5_ldap_delete_realm_1,
/* db_get_age */ krb5_ldap_db_get_age,
- /* db_set_option */ krb5_ldap_set_option,
/* db_lock */ krb5_ldap_lock,
/* db_unlock */ krb5_ldap_unlock,
/* db_get_principal */ krb5_ldap_get_principal,
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
index 1ca09b499..2130f8bc0 100644
--- a/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
+++ b/src/plugins/kdb/ldap/libkdb_ldap/kdb_ldap.h
@@ -304,9 +304,6 @@ krb5_ldap_free_server_context_params(krb5_ldap_context *ldap_context);
krb5_error_code
-krb5_ldap_set_option( krb5_context, int, void * );
-
-krb5_error_code
krb5_ldap_lock( krb5_context, int );
krb5_error_code
diff --git a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
index f549e2393..65ae88734 100644
--- a/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
+++ b/src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
@@ -1474,14 +1474,6 @@ krb5_add_int_mem_ldap_mod(LDAPMod ***mods, char *attribute, int op, int value)
}
krb5_error_code
-krb5_ldap_set_option(krb5_context kcontext, int option, void *value)
-{
- krb5_error_code status = KRB5_PLUGIN_OP_NOTSUPP;
- krb5_set_error_message(kcontext, status, "LDAP %s", error_message(status));
- return status;
-}
-
-krb5_error_code
krb5_ldap_lock(krb5_context kcontext, int mode)
{
krb5_error_code status = KRB5_PLUGIN_OP_NOTSUPP;