1 /***********************************************************************************************************************************
2 TLS Session
3 
4 TLS sessions are created by calling ioClientOpen().
5 
6 TLS sessions are generally reused so the user must be prepared to retry their transaction on a read/write error if the server closes
7 the session before it is reused. If this behavior is not desirable then ioSessionFree()/ioClientOpen() can be called to get a new
8 session.
9 ***********************************************************************************************************************************/
10 #ifndef COMMON_IO_TLS_SESSION_H
11 #define COMMON_IO_TLS_SESSION_H
12 
13 /***********************************************************************************************************************************
14 Object type
15 ***********************************************************************************************************************************/
16 #include <openssl/ssl.h>
17 
18 #include "common/io/session.h"
19 #include "common/time.h"
20 
21 /***********************************************************************************************************************************
22 Constructors
23 ***********************************************************************************************************************************/
24 // Only called by TLS client/server code
25 IoSession *tlsSessionNew(SSL *session, IoSession *ioSession, TimeMSec timeout);
26 
27 #endif
28