summaryrefslogtreecommitdiffstats
path: root/src/include/kim
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-10-01 21:59:16 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-10-01 21:59:16 +0000
commitab0b1c37bb2cc13c971461bba419f6ce5f6774bf (patch)
tree00a794027b065f7b5c5384b6ff56be8178d73ad1 /src/include/kim
parent3c1a043bf4972ff20e1c3d0d63a4f88f5d9ad5a5 (diff)
downloadkrb5-ab0b1c37bb2cc13c971461bba419f6ce5f6774bf.tar.gz
krb5-ab0b1c37bb2cc13c971461bba419f6ce5f6774bf.tar.xz
krb5-ab0b1c37bb2cc13c971461bba419f6ce5f6774bf.zip
Make unset strings in kim_options and kim_selection_hints
be empty strings rather than NULL. This simplifies the stream code (and makes it easier to read and debug). In order to prevent copying tons of NUL bytes around, special case kim_string functions to use a special constant kim_empty_string. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20804 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/kim')
-rw-r--r--src/include/kim/kim_selection_hints.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/kim/kim_selection_hints.h b/src/include/kim/kim_selection_hints.h
index 6e7ee24c5..afeae635e 100644
--- a/src/include/kim/kim_selection_hints.h
+++ b/src/include/kim/kim_selection_hints.h
@@ -263,8 +263,10 @@ kim_error kim_selection_hints_set_hint (kim_selection_hints io_selection_hints,
* \param in_selection_hints a selection hints object.
* \param in_hint_key A string representing the type of hint to
* obtain.
- * \param out_hint_string A string representation of the hint
+ * \param out_hint_string On exit, a string representation of the hint
* \a in_hint_key in \a in_selection_hints.
+ * If the hint is not set, sets the value pointed
+ * to by \a out_hint_string to NULL;
* Must be freed with kim_string_free().
* \return On success, #KIM_NO_ERROR. On failure, an error code representing the failure.
* \brief Get the string value of a hint used for identity selection.