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:
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.

Definition at line 37 of file suggest.c.

References Gsasl::client_mechs, gsasl_client_start(), gsasl_finish(), GSASL_OK, GSASL_VALID_MECHANISM_CHARACTERS, Gsasl::n_client_mechs, and Gsasl_mechanism::name.


Generated on Tue Aug 22 12:06:07 2006 for gsasl by  doxygen 1.4.7