00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 #ifndef LOGIN_H
00024 #define LOGIN_H
00025 
00026 #include <gsasl.h>
00027 
00028 #define GSASL_LOGIN_NAME "LOGIN"
00029 
00030 extern Gsasl_mechanism gsasl_login_mechanism;
00031 
00032 extern int _gsasl_login_client_start (Gsasl_session * sctx, void **mech_data);
00033 extern int _gsasl_login_client_step (Gsasl_session * sctx,
00034                                      void *mech_data,
00035                                      const char *input, size_t input_len,
00036                                      char **output, size_t * output_len);
00037 extern void _gsasl_login_client_finish (Gsasl_session * sctx,
00038                                         void *mech_data);
00039 
00040 extern int _gsasl_login_server_start (Gsasl_session * sctx, void **mech_data);
00041 extern int _gsasl_login_server_step (Gsasl_session * sctx,
00042                                      void *mech_data,
00043                                      const char *input, size_t input_len,
00044                                      char **output, size_t * output_len);
00045 extern void _gsasl_login_server_finish (Gsasl_session * sctx,
00046                                         void *mech_data);
00047 
00048 #endif