pike.git / src / modules / Kerberos / kerberos.cmod

version» Context lines:

pike.git/src/modules/Kerberos/kerberos.cmod:1:   /* -*- c -*- -  * $Id: kerberos.cmod,v 1.2 2008/05/06 19:14:33 mast Exp $ +  * $Id: kerberos.cmod,v 1.3 2008/05/29 21:58:44 mast Exp $    *    * Kerberos support for Pike.    *    * 2004-05-12 Henrik Grubbström    *    * FIXME: Currently only minimal support, and only for Kerberos 5 (not 4).    */      #include "global.h"   #include "config.h"
pike.git/src/modules/Kerberos/kerberos.cmod:41:       INIT    {    krb5_error_code err_code;    if ((err_code = krb5_init_context(&THIS->ctx))) {    Pike_error("Failed to initialize context: %d\n", err_code);    }    }       EXIT +  gc_trivial;    {    if (THIS->ctx) {    krb5_free_context(THIS->ctx);    }    }       PIKEFUN int(0..1) authenticate(string user, string password)    optflags OPT_EXTERNAL_DEPEND;    {    krb5_error_code err_code;