Line data Source code
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 0 : db_plugins_plcallback(krb5_context context, const void *plug, void *plugctx, 12 : void *userctx) 13 : { 14 0 : return 0; 15 : } 16 : 17 : static const char *const db_plugin_deps[] = { "krb5", NULL }; 18 : 19 : static const struct heim_plugin_data 20 : db_plugin_data = { 21 : "krb5", 22 : KRB5_PLUGIN_DB, 23 : KRB5_PLUGIN_DB_VERSION_0, 24 : db_plugin_deps, 25 : krb5_get_instance 26 : }; 27 : 28 : static void 29 0 : db_plugins_init(void *arg) 30 : { 31 0 : krb5_context context = arg; 32 0 : (void)_krb5_plugin_run_f(context, &db_plugin_data, 0, NULL, 33 : db_plugins_plcallback); 34 0 : } 35 : 36 : KRB5_LIB_FUNCTION void KRB5_LIB_CALL 37 0 : _krb5_load_db_plugins(krb5_context context) 38 : { 39 0 : heim_base_once_f(&db_plugins_once, context, db_plugins_init); 40 0 : } 41 :