ustream-ssl: add support for using a fd instead of ustream as backing
[project/ustream-ssl.git] / ustream-mbedtls.h
index ff907f6d5bc1708d618c5384f0cd094406f68ccc..281b9195abc9e37034c234e5a24e64ef04ef553f 100644 (file)
@@ -43,6 +43,9 @@ struct ustream_ssl_ctx {
        void *debug_cb_priv;
        bool server;
        int *ciphersuites;
+
+       void *session_data;
+       size_t session_data_len;
 };
 
 static inline char *__ustream_ssl_strerror(int error, char *buffer, int len)
@@ -61,7 +64,6 @@ static inline void __ustream_ssl_update_peer_cn(struct ustream_ssl *us)
        mbedtls_ssl_set_hostname(us->ssl, us->peer_cn);
 }
 
-void __ustream_ssl_session_free(void *ssl);
 void *__ustream_ssl_session_new(struct ustream_ssl_ctx *ctx);
 
 #endif