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_getsecret_t - Cyrus SASL documentation

Author

       The Cyrus Team

Description

intsasl_getsecret_t(sasl_conn_t*conn,void*context,intid,sasl_secret_t**psecret);sasl_getsecret_t()  is  used to retrieve the secret  from  the application. A sasl_secret_t should
              be allocated to length sizeof(sasl_secret_t)+<lengthofsecret>.  It  has two fields: len  which
              is  the  length of the secret in bytes and data which contains the secret itself (does not need to
              be null terminated).

              Parametersconn – is the SASL connection context

Name

       sasl_getsecret_t - Cyrus SASL documentation

Return Value

       SASL  callback  functions should return SASL return codes.  See  sasl.h  for  a  complete  list.  SASL_OK
       indicates success.

       Other return codes indicate errors and should be handled.

See Also

RFC4422,:saslman:sasl(3), sasl_callbacks(3)

Synopsis

       #include <sasl/sasl.h>

       int sasl_getsecret_t(sasl_conn_t *conn,
                           void *context,
                           int id,
                           sasl_secret_t ** psecret);

See Also