sasl_chalprompt_t - Cyrus SASL documentation

NAME  SYNOPSIS  DESCRIPTION  RETURN VALUE  SEE ALSO  AUTHOR  COPYRIGHT 

NAME

sasl_chalprompt_t − Cyrus SASL documentation

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)

DESCRIPTION

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

sasl_chalprompt_t is used to prompt for input in response to a server challenge.
Parameters

context â 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.

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)

AUTHOR

The Cyrus Team

COPYRIGHT

1993-2016, The Cyrus Team


Updated 2024-01-29 - jenkler.se | uex.se