gsasl  1.8.0
Functions
listmech.c File Reference
#include "internal.h"

Go to the source code of this file.

Functions

int gsasl_client_mechlist (Gsasl *ctx, char **out)
int gsasl_server_mechlist (Gsasl *ctx, char **out)

Function Documentation

int gsasl_client_mechlist ( Gsasl ctx,
char **  out 
)

gsasl_client_mechlist:

Parameters:
ctxlibgsasl handle.
outnewly allocated output character array.

Return a newly allocated string containing SASL names, separated by space, of mechanisms supported by the libgsasl client. is allocated by this function, and it is the responsibility of caller to deallocate it.

Return value: Returns GSASL_OK if successful, or error code.

Definition at line 74 of file listmech.c.

int gsasl_server_mechlist ( Gsasl ctx,
char **  out 
)

gsasl_server_mechlist:

Parameters:
ctxlibgsasl handle.
outnewly allocated output character array.

Return a newly allocated string containing SASL names, separated by space, of mechanisms supported by the libgsasl server. is allocated by this function, and it is the responsibility of caller to deallocate it.

Return value: Returns GSASL_OK if successful, or error code.

Definition at line 93 of file listmech.c.