fix(openssl): Fix warning in openssl

This commit is contained in:
Wu Jian Gang
2018-05-31 15:33:42 +08:00
parent 19452fbd21
commit 6c066fad87
2 changed files with 4 additions and 5 deletions

View File

@ -16,16 +16,14 @@
#define _SSL_PORT_H_
#include <string.h>
#include <stdio.h>
#include "esp_system.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef MEMLEAK_DEBUG
extern void *pvPortMalloc( size_t xWantedSize, const char * file, unsigned line, bool use_iram);

View File

@ -610,7 +610,7 @@ no_mem:
long ssl_pm_get_verify_result(const SSL *ssl)
{
long ret;
uint32_t ret;
long verify_result;
struct ssl_pm *ssl_pm = (struct ssl_pm *)ssl->ssl_pm;
@ -618,8 +618,9 @@ long ssl_pm_get_verify_result(const SSL *ssl)
if (ret) {
SSL_DEBUG(SSL_PLATFORM_ERROR_LEVEL, "mbedtls_ssl_get_verify_result() return -0x%x", -ret);
verify_result = X509_V_ERR_UNSPECIFIED;
} else
} else {
verify_result = X509_V_OK;
}
return verify_result;
}