gsasl  2.2.1
Functions
listmech.c File Reference
#include <config.h>
#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

◆ gsasl_client_mechlist()

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. @out 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 75 of file listmech.c.

◆ gsasl_server_mechlist()

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. @out 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 94 of file listmech.c.