3 #ifndef _TLS_SCACHE_H_INCLUDED_
4 #define _TLS_SCACHE_H_INCLUDED_
10 /* TLS session cache manager
12 /* #include <tls_scache.h>
26 int flags
; /* see below */
27 DICT
*db
; /* database handle */
28 char *cache_label
; /* "smtpd", "smtp" or "lmtp" */
29 int verbose
; /* enable verbose logging */
30 int timeout
; /* smtp(d)_tls_session_cache_timeout */
31 char *saved_cursor
; /* cursor cache ID */
34 #define TLS_SCACHE_FLAG_DEL_SAVED_CURSOR (1<<0)
36 extern TLS_SCACHE
*tls_scache_open(const char *, const char *, int, int);
37 extern void tls_scache_close(TLS_SCACHE
*);
38 extern int tls_scache_lookup(TLS_SCACHE
*, const char *, VSTRING
*);
39 extern int tls_scache_update(TLS_SCACHE
*, const char *, const char *, ssize_t
);
40 extern int tls_scache_delete(TLS_SCACHE
*, const char *);
41 extern int tls_scache_sequence(TLS_SCACHE
*, int, char **, VSTRING
*);
43 #define TLS_SCACHE_DONT_NEED_CACHE_ID ((char **) 0)
44 #define TLS_SCACHE_DONT_NEED_SESSION ((VSTRING *) 0)
46 #define TLS_SCACHE_SEQUENCE_NOTHING \
47 TLS_SCACHE_DONT_NEED_CACHE_ID, TLS_SCACHE_DONT_NEED_SESSION
52 /* The Secure Mailer license must be distributed with this software.
55 /* IBM T.J. Watson Research
57 /* Yorktown Heights, NY 10598, USA