diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-01-11 23:55:07 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-01-11 23:55:07 -0500 |
commit | 30e2a3eaa7ba2fd11c4a26a8fef58a5591010c43 (patch) | |
tree | d195bfcc55d6b6c36edb20cf9bc8f6abc772fffc /src | |
parent | bf2d0b295c0f9c1e849052f68169883050e7d5ea (diff) | |
download | krb5-30e2a3eaa7ba2fd11c4a26a8fef58a5591010c43.tar.gz krb5-30e2a3eaa7ba2fd11c4a26a8fef58a5591010c43.tar.xz krb5-30e2a3eaa7ba2fd11c4a26a8fef58a5591010c43.zip |
Flesh out responder context doxygen markup
Diffstat (limited to 'src')
-rw-r--r-- | src/include/krb5/krb5.hin | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin index 6b8b2e2fc..4a7e5c0f1 100644 --- a/src/include/krb5/krb5.hin +++ b/src/include/krb5/krb5.hin @@ -6444,6 +6444,18 @@ krb5_prompter_posix(krb5_context context, void *data, const char *name, */ #define KRB5_RESPONDER_OTP_FLAGS_SEPARATE_PIN 0x0008 +/** + * A container for a set of preauthentication questions and answers + * + * A responder context is supplied by the krb5 authentication system to a @ref + * krb5_responder_fn callback. It contains a list of questions and can receive + * answers. Questions contained in a responder context can be listed using + * krb5_responder_list_questions(), retrieved using responder_get_challenge(), + * or answered using krb5_responder_set_answer(). The form of a question's + * challenge and answer depend on the question name. + * + * @version First introduced in 1.11 + */ typedef struct krb5_responder_context_st *krb5_responder_context; /** @@ -6452,6 +6464,12 @@ typedef struct krb5_responder_context_st *krb5_responder_context; * @param [in] ctx Library context * @param [in] rctx Responder context * + * Return a pointer to a null-terminated list of question names which are + * present in @a rctx. The pointer is an alias, valid only as long as the + * lifetime of @a rctx, and should not be modified or freed by the caller. A + * question's challenge can be retrieved using krb5_responder_get_challenge() + * and answered using krb5_responder_set_answer(). + * * @version First introduced in 1.11 */ const char * const * KRB5_CALLCONV @@ -6464,6 +6482,13 @@ krb5_responder_list_questions(krb5_context ctx, krb5_responder_context rctx); * @param [in] rctx Responder context * @param [in] question Question name * + * Return a pointer to a C string containing the challenge for @a question + * within @a rctx, or NULL if the question is not present in @a rctx. The + * structure of the question depends on the question name, but will always be + * printable UTF-8 text. The returned pointer is an alias, valid only as long + * as the lifetime of @a rctx, and should not be modified or freed by the + * caller. + * * @version First introduced in 1.11 */ const char * KRB5_CALLCONV @@ -6478,6 +6503,11 @@ krb5_responder_get_challenge(krb5_context ctx, krb5_responder_context rctx, * @param [in] question Question name * @param [in] answer The string to set (MUST be printable UTF-8) * + * This function supplies an answer to @a question within @a rctx. The + * appropriate form of the answer depends on the question name. + * + * @retval EINVAL @a question is not present within @a rctx + * * @version First introduced in 1.11 */ krb5_error_code KRB5_CALLCONV |