mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-21 00:56:38 +08:00
fix(openssl): Fix warning in openssl
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user