MySQL  8.0.19
Source Code Documentation
isasl.h File Reference

Go to the source code of this file.

Classes

struct  sasl_callback
 
struct  sasl_conn
 
struct  user_db_entry
 

Macros

#define SASL_CB_LIST_END   0 /* end of list */
 
#define SASL_USERNAME   0 /* pointer to NUL terminated user name */
 
#define ISASL_CONFIG   20 /* Just so we don't have to implement all the auxprop stuff */
 
#define SASL_OK   0
 
#define SASL_CONTINUE   1
 
#define SASL_FAIL   -1 /* generic failure */
 
#define SASL_NOMEM   -2 /* memory shortage failure */
 
#define SASL_BADPARAM   -7 /* invalid parameter supplied */
 
#define SASL_NOUSER   -20 /* user not found */
 

Typedefs

typedef struct sasl_callback sasl_callback_t
 
typedef struct sasl_conn sasl_conn_t
 
typedef struct user_db_entry user_db_entry_t
 

Functions

void sasl_dispose (sasl_conn_t **pconn)
 
int sasl_server_init (const sasl_callback_t *callbacks, const char *appname)
 
int sasl_server_new (const char *service, const char *serverFQDN, const char *user_realm, const char *iplocalport, const char *ipremoteport, const sasl_callback_t *callbacks, unsigned flags, sasl_conn_t **pconn)
 
int sasl_listmech (sasl_conn_t *conn, const char *user, const char *prefix, const char *sep, const char *suffix, const char **result, unsigned *plen, int *pcount)
 
int sasl_server_start (sasl_conn_t *conn, const char *mech, const char *clientin, unsigned clientinlen, const char **serverout, unsigned *serveroutlen)
 
int sasl_server_step (sasl_conn_t *conn, const char *clientin, unsigned clientinlen, const char **serverout, unsigned *serveroutlen)
 
int sasl_getprop (sasl_conn_t *conn, int propnum, const void **pvalue)
 

Macro Definition Documentation

◆ ISASL_CONFIG

#define ISASL_CONFIG   20 /* Just so we don't have to implement all the auxprop stuff */

◆ SASL_BADPARAM

#define SASL_BADPARAM   -7 /* invalid parameter supplied */

◆ SASL_CB_LIST_END

#define SASL_CB_LIST_END   0 /* end of list */

◆ SASL_CONTINUE

#define SASL_CONTINUE   1

◆ SASL_FAIL

#define SASL_FAIL   -1 /* generic failure */

◆ SASL_NOMEM

#define SASL_NOMEM   -2 /* memory shortage failure */

◆ SASL_NOUSER

#define SASL_NOUSER   -20 /* user not found */

◆ SASL_OK

#define SASL_OK   0

◆ SASL_USERNAME

#define SASL_USERNAME   0 /* pointer to NUL terminated user name */

Typedef Documentation

◆ sasl_callback_t

◆ sasl_conn_t

typedef struct sasl_conn sasl_conn_t

◆ user_db_entry_t

Function Documentation

◆ sasl_dispose()

void sasl_dispose ( sasl_conn_t **  pconn)

◆ sasl_getprop()

int sasl_getprop ( sasl_conn_t conn,
int  propnum,
const void **  pvalue 
)

◆ sasl_listmech()

int sasl_listmech ( sasl_conn_t conn,
const char *  user,
const char *  prefix,
const char *  sep,
const char *  suffix,
const char **  result,
unsigned *  plen,
int *  pcount 
)

◆ sasl_server_init()

int sasl_server_init ( const sasl_callback_t callbacks,
const char *  appname 
)

◆ sasl_server_new()

int sasl_server_new ( const char *  service,
const char *  serverFQDN,
const char *  user_realm,
const char *  iplocalport,
const char *  ipremoteport,
const sasl_callback_t callbacks,
unsigned  flags,
sasl_conn_t **  pconn 
)

◆ sasl_server_start()

int sasl_server_start ( sasl_conn_t conn,
const char *  mech,
const char *  clientin,
unsigned  clientinlen,
const char **  serverout,
unsigned *  serveroutlen 
)

◆ sasl_server_step()

int sasl_server_step ( sasl_conn_t conn,
const char *  clientin,
unsigned  clientinlen,
const char **  serverout,
unsigned *  serveroutlen 
)