Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions src/BearSSLClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,9 @@ BearSSLClient::BearSSLClient(Client& client) :
}
#endif

BearSSLClient::BearSSLClient() :
_noSNI(false)
BearSSLClient::BearSSLClient()
: BearSSLClient(nullptr, nullptr, 0)
{
_ecKey.curve = 0;
_ecKey.x = NULL;
_ecKey.xlen = 0;

for (size_t i = 0; i < BEAR_SSL_CLIENT_CHAIN_SIZE; i++) {
_ecCert[i].data = NULL;
_ecCert[i].data_len = 0;
}
_ecCertDynamic = false;
}

BearSSLClient::BearSSLClient(Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs)
Expand All @@ -76,13 +67,8 @@ BearSSLClient::BearSSLClient(Client* client, const br_x509_trust_anchor* myTAs,
_br_ssl_client_init_function(NULL)
#endif
{
#ifndef ARDUINO_DISABLE_ECCX08
_ecVrfy = eccX08_vrfy_asn1;
_ecSign = eccX08_sign_asn1;
#else
_ecVrfy = br_ecdsa_vrfy_asn1_get_default();
_ecSign = br_ecdsa_sign_asn1_get_default();
#endif

_ecKey.curve = 0;
_ecKey.x = NULL;
Expand Down
Loading