Skip to content

Commit 411d1a3

Browse files
committed
Add ctor without parameters
1 parent 39be681 commit 411d1a3

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/BearSSLClient.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,20 @@ BearSSLClient::BearSSLClient(Client& client) :
4242
}
4343
#endif
4444

45+
BearSSLClient::BearSSLClient() :
46+
_noSNI(false)
47+
{
48+
_ecKey.curve = 0;
49+
_ecKey.x = NULL;
50+
_ecKey.xlen = 0;
51+
52+
for (size_t i = 0; i < BEAR_SSL_CLIENT_CHAIN_SIZE; i++) {
53+
_ecCert[i].data = NULL;
54+
_ecCert[i].data_len = 0;
55+
}
56+
_ecCertDynamic = false;
57+
}
58+
4559
BearSSLClient::BearSSLClient(Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs)
4660
: BearSSLClient(&client, myTAs, myNumTAs)
4761
{

src/BearSSLClient.h

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
class BearSSLClient : public Client {
6060

6161
public:
62+
BearSSLClient();
6263
BearSSLClient(Client& client);
6364
BearSSLClient(Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs);
6465
BearSSLClient(Client* client, const br_x509_trust_anchor* myTAs, int myNumTAs);

0 commit comments

Comments
 (0)