Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / smtp / smtp_sasl_auth_cache.h
blobb42d46f3c208e99eeaba89ff7c03c336bc6037b9
1 /* $NetBSD$ */
3 #ifndef _SMTP_SASL_AUTH_CACHE_H_INCLUDED_
4 #define _SMTP_SASL_AUTH_CACHE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* smtp_sasl_auth_cache 3h
9 /* SUMMARY
10 /* Postfix SASL authentication failure cache
11 /* SYNOPSIS
12 /* #include "smtp.h"
13 /* #include "smtp_sasl_auth_cache.h"
14 /* DESCRIPTION
15 /* .nf
18 * Utility library.
20 #include <dict.h>
23 * This code stores hashed passwords which requires OpenSSL.
25 #if defined(USE_TLS) && defined(USE_SASL_AUTH)
26 #define HAVE_SASL_AUTH_CACHE
29 * External interface.
31 typedef struct {
32 DICT *dict;
33 int ttl;
34 char *dsn;
35 char *text;
36 } SMTP_SASL_AUTH_CACHE;
38 extern SMTP_SASL_AUTH_CACHE *smtp_sasl_auth_cache_init(const char *, int);
39 extern void smtp_sasl_auth_cache_store(SMTP_SASL_AUTH_CACHE *, const SMTP_SESSION *, const SMTP_RESP *);
40 extern int smtp_sasl_auth_cache_find(SMTP_SASL_AUTH_CACHE *, const SMTP_SESSION *);
42 #define smtp_sasl_auth_cache_dsn(cp) ((cp)->dsn)
43 #define smtp_sasl_auth_cache_text(cp) ((cp)->text)
45 #endif
47 /* LICENSE
48 /* .ad
49 /* .fi
50 /* The Secure Mailer license must be distributed with this software.
51 /* AUTHOR(S)
52 /* Initial implementation by:
53 /* Till Franke
54 /* SuSE Rhein/Main AG
55 /* 65760 Eschborn, Germany
57 /* Adopted by:
58 /* Wietse Venema
59 /* IBM T.J. Watson Research
60 /* P.O. Box 704
61 /* Yorktown Heights, NY 10598, USA
62 /*--*/
64 #endif