logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sasl_chalprompt_t - Cyrus SASL documentation

Author

       The Cyrus Team

Description

intsasl_chalprompt_t(void*context,intid,constchar*challenge,constchar*prompt,constchar*defresult,constchar**result,unsigned*len)sasl_chalprompt_t  is used to prompt for input in response to a server challenge.

              Parameterscontext – is the context from the callback record

                     • id – is the callback id (either SASL_CB_ECHOPROMPT or  SASL_CB_NOECHOPROMPT)

                     • challenge – the server’s challenge

                     • prompt – A prompt for the user

                     • defresult – Default result (may be NULL)

                     • len – Length of the user’s response.

              Result The user’s response (a NUL terminated string) or SASL error code.

Name

       sasl_chalprompt_t - Cyrus SASL documentation

Return Value

       The user’s response (NUL terminated), or a SASL error code. See sasl_errors(3).

See Also

sasl(3), sasl_errors(3), sasl_callbacks(3)

Synopsis

       #include <sasl/prop.h>

       int sasl_chalprompt_t(void *context, int id,
           const char *challenge,
           const char *prompt, const char *defresult,
           const char **result, unsigned *len)

See Also