mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-03 20:18:01 +00:00
fix PKCS12 move constructor
This commit is contained in:
@@ -87,12 +87,11 @@ PKCS12Container& PKCS12Container::operator = (const PKCS12Container& other)
|
|||||||
|
|
||||||
|
|
||||||
PKCS12Container::PKCS12Container(PKCS12Container&& other):
|
PKCS12Container::PKCS12Container(PKCS12Container&& other):
|
||||||
|
_pKey(other._pKey),
|
||||||
_pX509Cert(std::move(other._pX509Cert)),
|
_pX509Cert(std::move(other._pX509Cert)),
|
||||||
_caCertList(std::move(other._caCertList)),
|
_caCertList(std::move(other._caCertList)),
|
||||||
_pkcsFriendlyname(std::move(other._pkcsFriendlyname))
|
_pkcsFriendlyname(std::move(other._pkcsFriendlyname))
|
||||||
{
|
{
|
||||||
if (_pKey) EVP_PKEY_free(_pKey);
|
|
||||||
_pKey = other._pKey;
|
|
||||||
other._pKey = 0;
|
other._pKey = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user