#define AUTH_SUCCESS 0 /* Authentication successful and done */
#define AUTH_DENIED 1 /* Ultimately failed - reason in handle->text */
#define AUTH_PASS 2 /* Pass data - look in handle->prompt */
#define AUTH_SUCCESS 0 /* Authentication successful and done */
#define AUTH_DENIED 1 /* Ultimately failed - reason in handle->text */
#define AUTH_PASS 2 /* Pass data - look in handle->prompt */
wchar_t *name;
int (*inithandle)(struct authhandle *handle, char *username);
void (*release)(struct authhandle *handle);
wchar_t *name;
int (*inithandle)(struct authhandle *handle, char *username);
void (*release)(struct authhandle *handle);
int (*renewcred)(struct authhandle *handle);
int (*opensess)(struct authhandle *handle);
int (*closesess)(struct authhandle *handle);
int (*renewcred)(struct authhandle *handle);
int (*opensess)(struct authhandle *handle);
int (*closesess)(struct authhandle *handle);
struct authhandle *initauth(wchar_t *mechname, char *username);
void authgethandle(struct authhandle *auth);
void authputhandle(struct authhandle *auth);
struct authhandle *initauth(wchar_t *mechname, char *username);
void authgethandle(struct authhandle *auth);
void authputhandle(struct authhandle *auth);
int authopensess(struct authhandle *handle);
int authclosesess(struct authhandle *handle);
void regmech(struct authmech *mech);
int authopensess(struct authhandle *handle);
int authclosesess(struct authhandle *handle);
void regmech(struct authmech *mech);