File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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+
4559BearSSLClient::BearSSLClient (Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs)
4660: BearSSLClient(&client, myTAs, myNumTAs)
4761{
Original file line number Diff line number Diff line change 5959class BearSSLClient : public Client {
6060
6161public:
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);
You can’t perform that action at this time.
0 commit comments