components/mbedtls: MBEDTLS Handshake result check

modify esp_config.h add some feature for support http2.0 protocol, TLS Handshake OK.
This commit is contained in:
liuhan
2016-08-30 20:40:58 +08:00
committed by Wu Jian Gang
parent 0f83831c74
commit 2d80fada70
11 changed files with 659 additions and 86 deletions

View File

@@ -24,7 +24,7 @@
#ifndef ESP_AES_H
#define ESP_AES_H
#include "c_types.h"
#include "esp_types.h"
#include "rom/ets_sys.h"
#include "rom/aes.h"
@@ -41,8 +41,8 @@ extern "C" {
typedef struct{
bool flag;
uint16 keybites;
uint8 key[32];
uint16_t keybites;
uint8_t key[32];
}key_context, KEY_CTX;
/**

View File

@@ -23,7 +23,7 @@
#ifndef _ESP_BIGNUM_H
#define _ESP_BIGNUM_H
#include "c_types.h"
#include "esp_types.h"
#include "rom/ets_sys.h"
#include "rom/bigint.h"

View File

@@ -1,7 +1,7 @@
#ifndef _MULTI_CRYPTO_H_
#define _MULTI_CRYPTO_H_
#include "c_types.h"
#include "esp_types.h"
#include "rom/ets_sys.h"
#ifdef __cplusplus

View File

@@ -6,7 +6,7 @@
#ifndef _ESP_SHA_H_
#define _ESP_SHA_H_
#include "c_types.h"
#include "esp_types.h"
#include "rom/ets_sys.h"
#include "rom/sha.h"
@@ -164,6 +164,8 @@ typedef sha_context SHA512_CTX;
*/
void esp_sha512_init( SHA512_CTX *ctx );
void esp_sha512_process( SHA512_CTX *ctx, const unsigned char data[128] );
/**
* \brief Clear SHA-512 context
*