add support for SAM, switch __throw_length_error to weak linkage
This commit is contained in:
parent
376c339c95
commit
fa0c4ee5e2
2 changed files with 4 additions and 4 deletions
|
@ -6,5 +6,5 @@ sentence=Arduino library to add TLS functionality to any Client class
|
||||||
paragraph=including the Arduino EthernetClient and WiFiClient classes (though it is better to prefer WiFClient.connectSSL if implemented). In other words, SSLClient implements encrypted communication through SSL on devices that do not otherwise support it.
|
paragraph=including the Arduino EthernetClient and WiFiClient classes (though it is better to prefer WiFClient.connectSSL if implemented). In other words, SSLClient implements encrypted communication through SSL on devices that do not otherwise support it.
|
||||||
category=Communication
|
category=Communication
|
||||||
url=https://github.com/OPEnSLab-OSU/SSLClient
|
url=https://github.com/OPEnSLab-OSU/SSLClient
|
||||||
architectures=samd,tivac,stm32,esp32
|
architectures=samd,sam,tivac,stm32,esp32
|
||||||
includes=SSLClient.h
|
includes=SSLClient.h
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#include "SSLClientParameters.h"
|
#include "SSLClientParameters.h"
|
||||||
|
|
||||||
// fix for non-exception arduino platforms (Feather and Teensy 4.0)
|
// fix for non-exception arduino platforms (Feather and Teensy 4.0)
|
||||||
extern "C"{
|
namespace std {
|
||||||
int __attribute__((weak)) __exidx_start(){ return -1;}
|
void __attribute__((weak)) __throw_length_error(char const*) {}
|
||||||
int __attribute__((weak)) __exidx_end(){ return -1; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
struct ssl_pem_decode_state {
|
struct ssl_pem_decode_state {
|
||||||
std::vector<char>* vect;
|
std::vector<char>* vect;
|
||||||
size_t index = 0;
|
size_t index = 0;
|
||||||
|
|
Loading…
Reference in a new issue