| 1 |
/* |
| 2 |
*/ |
| 3 |
|
| 4 |
#include "krb5_locl.h" |
| 5 |
#include "db_plugin.h" |
| 6 |
|
| 7 |
/* Default plugin (DB using binary search of sorted text file) follows */ |
| 8 |
static heim_base_once_t db_plugins_once = HEIM_BASE_ONCE_INIT; |
| 9 |
|
| 10 |
static krb5_error_code KRB5_LIB_CALL |
| 11 |
db_plugins_plcallback(krb5_context context, const void *plug, void *plugctx, |
| 12 |
void *userctx) |
| 13 |
{ |
| 14 |
return 0; |
| 15 |
} |
| 16 |
|
| 17 |
static void |
| 18 |
db_plugins_init(void *arg) |
| 19 |
{ |
| 20 |
krb5_context context = arg; |
| 21 |
(void)_krb5_plugin_run_f(context, "krb5", KRB5_PLUGIN_DB, |
| 22 |
KRB5_PLUGIN_DB_VERSION_0, 0, NULL, |
| 23 |
db_plugins_plcallback); |
| 24 |
} |
| 25 |
|
| 26 |
KRB5_LIB_FUNCTION void KRB5_LIB_CALL |
| 27 |
_krb5_load_db_plugins(krb5_context context) |
| 28 |
{ |
| 29 |
heim_base_once_f(&db_plugins_once, context, db_plugins_init); |
| 30 |
} |
| 31 |
|