mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 17:16:29 +08:00
fix(openssl): Fix warning in openssl
This commit is contained in:
@ -16,16 +16,14 @@
|
|||||||
#define _SSL_PORT_H_
|
#define _SSL_PORT_H_
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "esp_system.h"
|
#include "esp_system.h"
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef MEMLEAK_DEBUG
|
#ifdef MEMLEAK_DEBUG
|
||||||
|
|
||||||
extern void *pvPortMalloc( size_t xWantedSize, const char * file, unsigned line, bool use_iram);
|
extern void *pvPortMalloc( size_t xWantedSize, const char * file, unsigned line, bool use_iram);
|
||||||
|
@ -610,7 +610,7 @@ no_mem:
|
|||||||
|
|
||||||
long ssl_pm_get_verify_result(const SSL *ssl)
|
long ssl_pm_get_verify_result(const SSL *ssl)
|
||||||
{
|
{
|
||||||
long ret;
|
uint32_t ret;
|
||||||
long verify_result;
|
long verify_result;
|
||||||
struct ssl_pm *ssl_pm = (struct ssl_pm *)ssl->ssl_pm;
|
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) {
|
if (ret) {
|
||||||
SSL_DEBUG(SSL_PLATFORM_ERROR_LEVEL, "mbedtls_ssl_get_verify_result() return -0x%x", -ret);
|
SSL_DEBUG(SSL_PLATFORM_ERROR_LEVEL, "mbedtls_ssl_get_verify_result() return -0x%x", -ret);
|
||||||
verify_result = X509_V_ERR_UNSPECIFIED;
|
verify_result = X509_V_ERR_UNSPECIFIED;
|
||||||
} else
|
} else {
|
||||||
verify_result = X509_V_OK;
|
verify_result = X509_V_OK;
|
||||||
|
}
|
||||||
|
|
||||||
return verify_result;
|
return verify_result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user