Skip to content

Commit 874c6b0

Browse files
authored
Merge pull request #33 from Orange-OpenSource/own-cert
Allow the user to set his own client certificate
2 parents 996778e + 2fa6afe commit 874c6b0

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: src/BearSSLClient.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ void BearSSLClient::setEccSign(br_ecdsa_sign sign)
205205
_ecSign = sign;
206206
}
207207

208+
void BearSSLClient::setEccCert(br_x509_certificate cert)
209+
{
210+
_ecCert = cert;
211+
}
212+
208213
void BearSSLClient::setEccSlot(int ecc508KeySlot, const byte cert[], int certLength)
209214
{
210215
// HACK: put the key slot info. in the br_ec_private_key structure

Diff for: src/BearSSLClient.h

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class BearSSLClient : public Client {
7474
void setEccVrfy(br_ecdsa_vrfy vrfy);
7575
void setEccSign(br_ecdsa_sign sign);
7676

77+
void setEccCert(br_x509_certificate cert);
78+
7779
void setEccSlot(int ecc508KeySlot, const byte cert[], int certLength);
7880
void setEccSlot(int ecc508KeySlot, const char cert[]);
7981

0 commit comments

Comments
 (0)