mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Remove default private key and certificate (#3)
This commit is contained in:
10
ssl/loader.c
10
ssl/loader.c
@ -434,8 +434,8 @@ int load_key_certs(SSL_CTX *ssl_ctx)
|
||||
else if (!(options & SSL_NO_DEFAULT_KEY))
|
||||
{
|
||||
#if defined(CONFIG_SSL_USE_DEFAULT_KEY) || defined(CONFIG_SSL_SKELETON_MODE)
|
||||
static const /* saves a few more bytes */
|
||||
#include "private_key.h"
|
||||
extern const unsigned char* default_private_key;
|
||||
extern const unsigned int default_private_key_len;
|
||||
|
||||
ssl_obj_memory_load(ssl_ctx, SSL_OBJ_RSA_KEY, default_private_key,
|
||||
default_private_key_len, NULL);
|
||||
@ -462,9 +462,9 @@ int load_key_certs(SSL_CTX *ssl_ctx)
|
||||
else if (!(options & SSL_NO_DEFAULT_KEY))
|
||||
{
|
||||
#if defined(CONFIG_SSL_USE_DEFAULT_KEY) || defined(CONFIG_SSL_SKELETON_MODE)
|
||||
static const /* saves a few bytes and RAM */
|
||||
#include "cert.h"
|
||||
ssl_obj_memory_load(ssl_ctx, SSL_OBJ_X509_CERT,
|
||||
extern const unsigned char* default_certificate;
|
||||
extern const unsigned int default_certificate_len;
|
||||
ssl_obj_memory_load(ssl_ctx, SSL_OBJ_X509_CERT,
|
||||
default_certificate, default_certificate_len, NULL);
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user