improved SASL support

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13929 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2004-06-14 08:19:05 +00:00
parent 8dbbc95b53
commit a0d8310e75
4 changed files with 613 additions and 163 deletions

25
appl/popper/pop_auth.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef __pop_auth_h__
#define __pop_auth_h__
struct auth_mech {
const char *name;
int (*init)(POP*, void**);
int (*loop)(POP*, void*, void*, size_t, void**, size_t*);
int (*cleanup)(POP*, void*);
};
#define POP_AUTH_CONTINUE 0
#define POP_AUTH_FAILURE 1
#define POP_AUTH_COMPLETE 2
void pop_auth_set_error(const char *message);
#ifdef KRB5
extern struct auth_mech gssapi_mech;
#endif
#ifdef KRB4
extern struct auth_mech krb4_mech;
#endif
#endif /* __pop_auth_h__ */