diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2008-09-27 00:46:39 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2008-09-27 00:46:39 +0000 |
commit | 06847c646f5630878d6f28025993cee57f2839a8 (patch) | |
tree | c853a823d1cdc5b7bd7cf0bacac3e2aaff3d275d /src/kim/lib/kim_selection_hints.c | |
parent | f0098982775d44d490bae733f386a5432e712a8e (diff) | |
download | krb5-06847c646f5630878d6f28025993cee57f2839a8.tar.gz krb5-06847c646f5630878d6f28025993cee57f2839a8.tar.xz krb5-06847c646f5630878d6f28025993cee57f2839a8.zip |
KerberosAgent MachIPC support
ticket: 6055
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20763 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kim/lib/kim_selection_hints.c')
-rw-r--r-- | src/kim/lib/kim_selection_hints.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/kim/lib/kim_selection_hints.c b/src/kim/lib/kim_selection_hints.c index a4d7d666a..6903afb86 100644 --- a/src/kim/lib/kim_selection_hints.c +++ b/src/kim/lib/kim_selection_hints.c @@ -314,6 +314,28 @@ kim_error kim_selection_hints_get_explanation (kim_selection_hints in_selection /* ------------------------------------------------------------------------ */ +kim_error kim_selection_hints_get_application_id (kim_selection_hints in_selection_hints, + kim_string *out_application_id) +{ + kim_error err = KIM_NO_ERROR; + + if (!err && !in_selection_hints) { err = check_error (KIM_NULL_PARAMETER_ERR); } + if (!err && !out_application_id) { err = check_error (KIM_NULL_PARAMETER_ERR); } + + if (!err) { + if (in_selection_hints->application_identifier) { + err = kim_string_copy (out_application_id, + in_selection_hints->application_identifier); + } else { + *out_application_id = NULL; + } + } + + return check_error (err); +} + +/* ------------------------------------------------------------------------ */ + kim_error kim_selection_hints_set_options (kim_selection_hints io_selection_hints, kim_options in_options) { |