WebRTC certificate improvement
This commit is contained in:
parent
37cbafe284
commit
e6489f2d6a
4 changed files with 83 additions and 24 deletions
|
@ -23,12 +23,13 @@
|
|||
class Certificate{
|
||||
public:
|
||||
Certificate();
|
||||
bool loadCert(const std::string & certFile);
|
||||
bool loadKey(const std::string & certFile);
|
||||
int init(const std::string &countryName, const std::string &organization, const std::string &commonName);
|
||||
int shutdown();
|
||||
std::string getFingerprintSha256();
|
||||
~Certificate();
|
||||
std::string getFingerprintSha256() const;
|
||||
|
||||
public:
|
||||
mbedtls_x509_crt cert;
|
||||
mbedtls_pk_context key; /* key context, stores private and public key. */
|
||||
mbedtls_rsa_context *rsa_ctx; /* rsa context, stored in key_ctx */
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue