GNU SASL authentication support. More...
#include <gsasl.h>
Go to the source code of this file.
Functions | |
void | mutt_gsasl_client_finish (Gsasl_session **sctx) |
Free a GNU SASL client. | |
int | mutt_gsasl_client_new (struct Connection *conn, const char *mech, Gsasl_session **sctx) |
Create a new GNU SASL client. | |
void | mutt_gsasl_cleanup (void) |
Shutdown GNU SASL library. | |
const char * | mutt_gsasl_get_mech (const char *requested_mech, const char *server_mechlist) |
Pick a connection mechanism. | |
GNU SASL authentication support.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file gsasl2.h.
void mutt_gsasl_client_finish | ( | Gsasl_session ** | sctx | ) |
int mutt_gsasl_client_new | ( | struct Connection * | conn, |
const char * | mech, | ||
Gsasl_session ** | sctx | ||
) |
Create a new GNU SASL client.
conn | Connection to a server |
mech | Mechanisms to use |
sctx | GNU SASL Session |
0 | Success |
-1 | Error |
Definition at line 199 of file gsasl.c.
void mutt_gsasl_cleanup | ( | void | ) |
Shutdown GNU SASL library.
Definition at line 149 of file gsasl.c.
const char * mutt_gsasl_get_mech | ( | const char * | requested_mech, |
const char * | server_mechlist | ||
) |
Pick a connection mechanism.
requested_mech | Requested mechanism |
server_mechlist | Server's list of mechanisms |
ptr | Selected mechanism string |
Definition at line 164 of file gsasl.c.