1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

SSL server DEBUG, code cleanup fixes (#4280)

The server needs to load an X509 and RSA key, but instead of using
the existing loadObject() calls implemented its own.  Remove them and
use the standard ones instead.

The DEBUG_OUTPUT macro was undefined in the SSL Web server.  Add it
in do that when you compile with DEBUG=HTTP_SERVER it actually compiles.
This commit is contained in:
Earle F. Philhower, III
2018-02-06 07:33:26 -08:00
committed by GitHub
parent c8dbfb160b
commit 4c23e66bba
2 changed files with 10 additions and 17 deletions

View File

@ -27,6 +27,12 @@
#include "WiFiClient.h"
#include "ESP8266WebServerSecure.h"
//#define DEBUG_ESP_HTTP_SERVER
#ifdef DEBUG_ESP_PORT
#define DEBUG_OUTPUT DEBUG_ESP_PORT
#else
#define DEBUG_OUTPUT Serial
#endif
ESP8266WebServerSecure::ESP8266WebServerSecure(IPAddress addr, int port)
: _serverSecure(addr, port)