File tree 2 files changed +15
-0
lines changed
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) :
42
42
}
43
43
#endif
44
44
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
+
45
59
BearSSLClient::BearSSLClient (Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs)
46
60
: BearSSLClient(&client, myTAs, myNumTAs)
47
61
{
Original file line number Diff line number Diff line change 59
59
class BearSSLClient : public Client {
60
60
61
61
public:
62
+ BearSSLClient ();
62
63
BearSSLClient (Client& client);
63
64
BearSSLClient (Client& client, const br_x509_trust_anchor* myTAs, int myNumTAs);
64
65
BearSSLClient (Client* client, const br_x509_trust_anchor* myTAs, int myNumTAs);
You can’t perform that action at this time.
0 commit comments