suggest.c File Reference

#include "internal.h"

Go to the source code of this file.


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

Function Documentation

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


ctx libgsasl handle.
mechlist input 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.