Merge pull request #10 from bleckers/patch-1

Add support for Teensy 4.x
This commit is contained in:
Noah 2020-05-21 08:49:05 -07:00 committed by GitHub
commit 4f3c4c8729
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
#include "SSLClientParameters.h"
// fix for non-exception arduino platforms
#ifdef ADAFRUIT_FEATHER_M0
// fix for non-exception arduino platforms (Feather and Teensy 4.0)
#if defined ADAFRUIT_FEATHER_M0 || defined __IMXRT1062__
namespace std {
void __throw_length_error(char const*) {}
}
@ -91,4 +91,4 @@ SSLClientParameters SSLClientParameters::fromPEM(const char* cert_pem, const siz
/* See SSLClientParams.h */
SSLClientParameters SSLClientParameters::fromDER(const char* cert_der, const size_t cert_len, const char* key_der, const size_t key_len) {
return SSLClientParameters(cert_der, cert_len, key_der, key_len, true);
}
}