Also compiles / runs without time-based functions in OS
Can now run without need of time() / localtime() and gettimeofday()
This commit is contained in:
parent
ecd54fb897
commit
fa9b10050b
13 changed files with 119 additions and 16 deletions
|
@ -27,8 +27,6 @@
|
|||
#ifndef POLARSSL_SSL_H
|
||||
#define POLARSSL_SSL_H
|
||||
|
||||
#include <time.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "net.h"
|
||||
#include "bignum.h"
|
||||
|
@ -60,6 +58,10 @@
|
|||
#include "zlib.h"
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_HAVE_TIME)
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && !defined(inline)
|
||||
#define inline _inline
|
||||
#else
|
||||
|
@ -306,7 +308,9 @@ typedef struct _ssl_handshake_params ssl_handshake_params;
|
|||
*/
|
||||
struct _ssl_session
|
||||
{
|
||||
#if defined(POLARSSL_HAVE_TIME)
|
||||
time_t start; /*!< starting time */
|
||||
#endif
|
||||
int ciphersuite; /*!< chosen ciphersuite */
|
||||
int compression; /*!< chosen compression */
|
||||
size_t length; /*!< session id length */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue