Don't hardcode the QSslKey algorithm

This commit is contained in:
Cameron Gutman committed 2026-10-12 02:31:21 -05:00
1 parent a57e947d71
commit a614924502
1 file changed
+1 -1
+1 -1
View File
@@ -186,7 +186,7 @@ IdentityManager::getSslKey()
BUF_MEM* mem;
BIO_get_mem_ptr(bio, &mem);
m_CachedSslKey = QSslKey(QByteArray(mem->data, (int)mem->length), QSsl::Rsa);
m_CachedSslKey = QSslKey(QByteArray(mem->data, (int)mem->length), getSslCertificate().publicKey().algorithm());
BIO_free(bio);
EVP_PKEY_free(pk);