diff --git a/src/BearSSLClient.cpp b/src/BearSSLClient.cpp index 67d00ee..16f18ab 100644 --- a/src/BearSSLClient.cpp +++ b/src/BearSSLClient.cpp @@ -205,6 +205,11 @@ void BearSSLClient::setEccSign(br_ecdsa_sign sign) _ecSign = sign; } +void BearSSLClient::setEccCert(br_x509_certificate cert) +{ + _ecCert = cert; +} + void BearSSLClient::setEccSlot(int ecc508KeySlot, const byte cert[], int certLength) { // HACK: put the key slot info. in the br_ec_private_key structure diff --git a/src/BearSSLClient.h b/src/BearSSLClient.h index 8296cd9..125f41e 100644 --- a/src/BearSSLClient.h +++ b/src/BearSSLClient.h @@ -74,6 +74,8 @@ class BearSSLClient : public Client { void setEccVrfy(br_ecdsa_vrfy vrfy); void setEccSign(br_ecdsa_sign sign); + void setEccCert(br_x509_certificate cert); + void setEccSlot(int ecc508KeySlot, const byte cert[], int certLength); void setEccSlot(int ecc508KeySlot, const char cert[]);