smtp_sasl_auth_cache.h [plain text]
#ifndef _SMTP_SASL_AUTH_CACHE_H_INCLUDED_
#define _SMTP_SASL_AUTH_CACHE_H_INCLUDED_
#include <dict.h>
#if defined(USE_TLS) && defined(USE_SASL_AUTH)
#define HAVE_SASL_AUTH_CACHE
typedef struct {
DICT *dict;
int ttl;
char *dsn;
char *text;
} SMTP_SASL_AUTH_CACHE;
extern SMTP_SASL_AUTH_CACHE *smtp_sasl_auth_cache_init(const char *, int);
extern void smtp_sasl_auth_cache_store(SMTP_SASL_AUTH_CACHE *, const SMTP_SESSION *, const SMTP_RESP *);
extern int smtp_sasl_auth_cache_find(SMTP_SASL_AUTH_CACHE *, const SMTP_SESSION *);
#define smtp_sasl_auth_cache_dsn(cp) ((cp)->dsn)
#define smtp_sasl_auth_cache_text(cp) ((cp)->text)
#endif
#endif