mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-27 17:57:24 +01:00
- Merged fixes 1394 and 1395 from trunk to PolarSSL 1.2 branch
This commit is contained in:
parent
b624520762
commit
4a2bd0da0f
8 changed files with 42 additions and 24 deletions
|
|
@ -34,8 +34,13 @@
|
|||
|
||||
#ifdef _MSC_VER
|
||||
#include <basetsd.h>
|
||||
#if (_MSC_VER <= 1200)
|
||||
typedef signed short int16_t;
|
||||
typedef unsigned short uint16_t;
|
||||
#else
|
||||
typedef INT16 int16_t;
|
||||
typedef UINT16 uint16_t;
|
||||
#endif
|
||||
typedef INT32 int32_t;
|
||||
typedef UINT32 uint32_t;
|
||||
typedef UINT64 uint64_t;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,12 @@
|
|||
|
||||
#include "aes.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <basetsd.h>
|
||||
typedef UINT64 uint64_t;
|
||||
#else
|
||||
#include <stdint.h>
|
||||
#endif
|
||||
|
||||
#define GCM_ENCRYPT 1
|
||||
#define GCM_DECRYPT 0
|
||||
|
|
|
|||
|
|
@ -682,7 +682,7 @@ void ssl_set_bio( ssl_context *ssl,
|
|||
* data) is cleared by the SSL/TLS layer when the connection is
|
||||
* terminated. It is recommended to add metadata to determine if
|
||||
* an entry is still valid in the future. Return 0 if
|
||||
* successfully cached, return 0 otherwise.
|
||||
* successfully cached, return 1 otherwise.
|
||||
*
|
||||
* \param ssl SSL context
|
||||
* \param f_get_cache session get callback
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue