We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26c939e commit d9f1b8cCopy full SHA for d9f1b8c
src/BearSSLClient.cpp
@@ -179,7 +179,7 @@ int BearSSLClient::connectSSL(const char* host)
179
// inject entropy in engine
180
unsigned char entropy[32];
181
182
- if (ECC508.begin() && ECC508.random(entropy, sizeof(entropy))) {
+ if (ECC508.begin() && ECC508.locked() && ECC508.random(entropy, sizeof(entropy))) {
183
// ECC508 random success, add custom ECDSA vfry and EC sign
184
br_ssl_engine_set_ecdsa(&_sc.eng, ecc508_vrfy_asn1);
185
br_x509_minimal_set_ecdsa(&_xc, br_ssl_engine_get_ec(&_sc.eng), br_ssl_engine_get_ecdsa(&_sc.eng));
0 commit comments