diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2006-04-25 06:27:07 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2006-04-25 06:27:07 +0000 |
| commit | b87d443c1d3a7bb1520be3918f2dab6c2f45d4b6 (patch) | |
| tree | 37366497b4db7b7cc02c13fd716521f891653e82 /src/lib | |
| parent | 0438f13a4b92226901789d7d059f49f2c8f156b2 (diff) | |
| download | krb5-b87d443c1d3a7bb1520be3918f2dab6c2f45d4b6.tar.gz krb5-b87d443c1d3a7bb1520be3918f2dab6c2f45d4b6.tar.xz krb5-b87d443c1d3a7bb1520be3918f2dab6c2f45d4b6.zip | |
Update internal plugin interface to add an errinfo structure to "open"
and "get" routines, so that more detailed error information (e.g.,
from dlerror()) may be returned to the caller.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17960 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/krb5/os/locate_kdc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index 47ac0eebe..83b006634 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -612,14 +612,17 @@ module_locate_server (krb5_context ctx, const krb5_data *realm, Tprintf("in module_locate_server\n"); cbdata.lp = addrlist; if (!PLUGIN_DIR_OPEN (&ctx->libkrb5_plugins)) { - code = krb5int_open_plugin_dir (objdir, &ctx->libkrb5_plugins); + code = krb5int_open_plugin_dir (objdir, &ctx->libkrb5_plugins, + &ctx->err); if (code) return KRB5_PLUGIN_NO_HANDLE; } - code = krb5int_get_plugin_dir_data (&ctx->libkrb5_plugins, "service_locator", &ptrs); + code = krb5int_get_plugin_dir_data (&ctx->libkrb5_plugins, + "service_locator", &ptrs, &ctx->err); if (code) { - Tprintf("error looking up plugin symbols: %s\n", error_message(code)); + Tprintf("error looking up plugin symbols: %s\n", + krb5_get_error_message(ctx, code)); return KRB5_PLUGIN_NO_HANDLE; } |
