Skip to content

Commit

Permalink
Merge pull request #36 from Orange-OpenSource/fix-_ecSign
Browse files Browse the repository at this point in the history
src/BearSSLClient.cpp: fix _ecSign
  • Loading branch information
luigigubello authored Oct 22, 2020
2 parents d96ce6b + 6952258 commit 0d87fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BearSSLClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ int BearSSLClient::connectSSL(const char* host)
br_x509_minimal_set_ecdsa(&_xc, br_ssl_engine_get_ec(&_sc.eng), br_ssl_engine_get_ecdsa(&_sc.eng));

// enable client auth
if (_ecCert.data_len && _ecKey.xlen) {
if (_ecCert.data_len) {
br_ssl_client_set_single_ec(&_sc, &_ecCert, 1, &_ecKey, BR_KEYTYPE_KEYX | BR_KEYTYPE_SIGN, BR_KEYTYPE_EC, br_ec_get_default(), _ecSign);
}

Expand Down

0 comments on commit 0d87fd1

Please sign in to comment.