projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbedtls: Add support for a session cache
[project/ustream-ssl.git]
/
ustream-mbedtls.h
diff --git
a/ustream-mbedtls.h
b/ustream-mbedtls.h
index a48986771c0993b9a11890a7341beb47355435e6..70bd4ea6fb95bd97f060e7928bf2bcbcd76d007c 100644
(file)
--- a/
ustream-mbedtls.h
+++ b/
ustream-mbedtls.h
@@
-28,11
+28,18
@@
#include <mbedtls/version.h>
#include <mbedtls/entropy.h>
#include <mbedtls/version.h>
#include <mbedtls/entropy.h>
+#if defined(MBEDTLS_SSL_CACHE_C)
+#include <mbedtls/ssl_cache.h>
+#endif
+
struct ustream_ssl_ctx {
mbedtls_ssl_config conf;
mbedtls_pk_context key;
mbedtls_x509_crt ca_cert;
mbedtls_x509_crt cert;
struct ustream_ssl_ctx {
mbedtls_ssl_config conf;
mbedtls_pk_context key;
mbedtls_x509_crt ca_cert;
mbedtls_x509_crt cert;
+#if defined(MBEDTLS_SSL_CACHE_C)
+ mbedtls_ssl_cache_context cache;
+#endif
bool server;
};
bool server;
};