cookie.h revision 1215bc4d7e747846f282cf710e61f3768e69238d
#ifndef __COOKIE_H
#define __COOKIE_H
#include "auth-interface.h"
typedef struct _CookieData CookieData;
struct _CookieData {
unsigned char cookie[AUTH_COOKIE_SIZE];
/* continue authentication */
const unsigned char *data,
/* fills reply from cookie, returns TRUE if successful */
/* Free all data related to cookie */
void *context;
};
typedef void (*CookieFreeFunc)(void *data);
/* data->cookie is filled */
/* Looks up the cookie */
/* Removes and frees the cookie */
/* Looks up the cookie and removes it, you have to free the returned data. */
void cookies_init(void);
void cookies_deinit(void);
#endif