1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

Implement PEM writing for CNG implementation

This commit is contained in:
Ted John
2018-05-26 18:56:18 +01:00
parent 9467438c1c
commit b8d37548ed
5 changed files with 139 additions and 9 deletions

View File

@@ -112,6 +112,11 @@ class OpenSSLRsaKey final : public RsaKey
public:
EVP_PKEY * GetEvpKey() const { return _evpKey; }
~OpenSSLRsaKey()
{
EVP_PKEY_free(_evpKey);
}
void SetPrivate(const std::string_view& pem) override
{
SetKey(pem, true);