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

Go to the source code of this file.

Functions

const char * gsasl_client_suggest_mechanism (Gsasl *ctx, const char *mechlist)

Function Documentation

const char* gsasl_client_suggest_mechanism ( Gsasl ctx,
const char *  mechlist 
)

gsasl_client_suggest_mechanism:

Parameters:
ctxlibgsasl handle.
mechlistinput character array with SASL mechanism names, separated by invalid characters (e.g. SPC).

Given a list of mechanisms, suggest which to use.

Return value: Returns name of "best" SASL mechanism supported by the libgsasl client which is present in the input string, or NULL if no supported mechanism is found.

Definition at line 38 of file suggest.c.