mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Remove stray axtls refs, deprecated compat funcs (#7626)
Remove the axTLS compatability functions from WiFiClient/ServerSecure, device tests for axTLS, and any document refs to axTLS.
This commit is contained in:
committed by
GitHub
parent
7c8f934d2b
commit
85ba53a249
@ -1,7 +1,6 @@
|
||||
#include <Arduino.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <ESP8266HTTPClient.h>
|
||||
#include <WiFiClientSecureAxTLS.h>
|
||||
#include <BSTest.h>
|
||||
#include <pgmspace.h>
|
||||
|
||||
@ -210,43 +209,6 @@ TEST_CASE("HTTPS GET request", "[HTTPClient]")
|
||||
}
|
||||
}
|
||||
}
|
||||
//
|
||||
// Same tests with axTLS
|
||||
//
|
||||
#if !CORE_MOCK
|
||||
{
|
||||
// small request
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
axTLS::WiFiClientSecure client;
|
||||
#pragma GCC diagnostic pop
|
||||
HTTPClient http;
|
||||
http.begin(client, getenv("SERVER_IP"), 8088, "/", fp);
|
||||
auto httpCode = http.GET();
|
||||
REQUIRE(httpCode == HTTP_CODE_OK);
|
||||
String payload = http.getString();
|
||||
REQUIRE(payload == "hello!!!");
|
||||
}
|
||||
{
|
||||
// request which returns 4000 bytes
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
axTLS::WiFiClientSecure client;
|
||||
#pragma GCC diagnostic pop
|
||||
HTTPClient http;
|
||||
http.begin(client, getenv("SERVER_IP"), 8088, "/data?size=4000", fp);
|
||||
auto httpCode = http.GET();
|
||||
REQUIRE(httpCode == HTTP_CODE_OK);
|
||||
String payload = http.getString();
|
||||
auto len = payload.length();
|
||||
REQUIRE(len == 4000);
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
if (payload[i] != 'a') {
|
||||
REQUIRE(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
Reference in New Issue
Block a user