mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:37:35 +02:00
register RSA_free directly as custom deleter
This commit is contained in:
parent
cffeece08e
commit
869529a435
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ void IceServer::publicKeyReplyFinished(QNetworkReply* reply) {
|
||||||
RSA* rsaPublicKey = d2i_RSA_PUBKEY(NULL, &publicKeyData, apiPublicKey.size());
|
RSA* rsaPublicKey = d2i_RSA_PUBKEY(NULL, &publicKeyData, apiPublicKey.size());
|
||||||
|
|
||||||
if (rsaPublicKey) {
|
if (rsaPublicKey) {
|
||||||
_domainPublicKeys[domainID] = { rsaPublicKey, [](RSA* rsa) { RSA_free(rsa); }};
|
_domainPublicKeys[domainID] = { rsaPublicKey, RSA_free };
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Could not convert in-memory public key for" << domainID << "to usable RSA public key.";
|
qWarning() << "Could not convert in-memory public key for" << domainID << "to usable RSA public key.";
|
||||||
qWarning() << "Public key will be re-requested on next heartbeat.";
|
qWarning() << "Public key will be re-requested on next heartbeat.";
|
||||||
|
|
Loading…
Reference in a new issue