mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Fix Steam Link build
This commit is contained in:
1 parent
b7cbd99212
commit
c26562fab8
1 file changed
+4
-1
@@ -143,7 +143,10 @@ QSslKey
|
|||||||
IdentityManager::getSslKey()
|
IdentityManager::getSslKey()
|
||||||
{
|
{
|
||||||
if (m_CachedSslKey.isNull()) {
|
if (m_CachedSslKey.isNull()) {
|
||||||
BIO* bio = BIO_new_mem_buf(m_CachedPrivateKey.constData(), -1);
|
// This seemingly useless const_cast is required for old OpenSSL headers
|
||||||
|
// where BIO_new_mem_buf's parameter is not declared const like those on
|
||||||
|
// the Steam Link hardware.
|
||||||
|
BIO* bio = BIO_new_mem_buf(const_cast<char*>(m_CachedPrivateKey.constData()), -1);
|
||||||
THROW_BAD_ALLOC_IF_NULL(bio);
|
THROW_BAD_ALLOC_IF_NULL(bio);
|
||||||
|
|
||||||
EVP_PKEY* pk = PEM_read_bio_PrivateKey(bio, nullptr, nullptr, nullptr);
|
EVP_PKEY* pk = PEM_read_bio_PrivateKey(bio, nullptr, nullptr, nullptr);
|
||||||
|
|||||||
Reference in new issue
Block a user