PolarSSL v1.2.5
Main Page
Modules
Data Structures
Files
File List
Globals
include
polarssl
ssl_cache.h
Go to the documentation of this file.
1
27
#ifndef POLARSSL_SSL_CACHE_H
28
#define POLARSSL_SSL_CACHE_H
29
30
#include "
ssl.h
"
31
32
#define SSL_CACHE_DEFAULT_TIMEOUT 86400
33
#define SSL_CACHE_DEFAULT_MAX_ENTRIES 50
35
#ifdef __cplusplus
36
extern
"C"
{
37
#endif
38
39
typedef
struct
_ssl_cache_context
ssl_cache_context
;
40
typedef
struct
_ssl_cache_entry
ssl_cache_entry
;
41
45
struct
_ssl_cache_entry
46
{
47
time_t
timestamp
;
48
ssl_session
session
;
49
ssl_cache_entry
*
next
;
50
};
51
55
struct
_ssl_cache_context
56
{
57
ssl_cache_entry
*
chain
;
58
int
timeout
;
59
int
max_entries
;
60
};
61
67
void
ssl_cache_init
(
ssl_cache_context
*cache );
68
75
int
ssl_cache_get
(
void
*data,
ssl_session
*session );
76
83
int
ssl_cache_set
(
void
*data,
const
ssl_session
*session );
84
94
void
ssl_cache_set_timeout
(
ssl_cache_context
*cache,
int
timeout );
95
103
void
ssl_cache_set_max_entries
(
ssl_cache_context
*cache,
int
max );
104
110
void
ssl_cache_free
(
ssl_cache_context
*cache );
111
112
#ifdef __cplusplus
113
}
114
#endif
115
116
#endif
/* ssl_cache.h */
Generated on Thu Feb 14 2013 09:33:14 for PolarSSL v1.2.5 by
1.8.3