mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
replace new
by new (std::nothrow)
, remove arduino_new
This commit is contained in:
@ -128,7 +128,7 @@ void setup(void){
|
||||
Serial.println("MDNS responder started");
|
||||
}
|
||||
|
||||
server.getServer().setRSACert(new BearSSL::X509List(serverCert), new BearSSL::PrivateKey(serverKey));
|
||||
server.getServer().setRSACert(new (std::nothrow) BearSSL::X509List(serverCert), new (std::nothrow) BearSSL::PrivateKey(serverKey));
|
||||
|
||||
server.on("/", handleRoot);
|
||||
|
||||
|
@ -111,7 +111,7 @@ void setup() {
|
||||
ESP.restart();
|
||||
}
|
||||
|
||||
server.getServer().setRSACert(new BearSSL::X509List(serverCert), new BearSSL::PrivateKey(serverKey));
|
||||
server.getServer().setRSACert(new (std::nothrow) BearSSL::X509List(serverCert), new (std::nothrow) BearSSL::PrivateKey(serverKey));
|
||||
server.on("/",showcredentialpage); //for this simple example, just show a simple page for changing credentials at the root
|
||||
server.on("/" + change_creds,handlecredentialchange); //handles submission of credentials from the client
|
||||
server.onNotFound(redirect);
|
||||
|
Reference in New Issue
Block a user