From 4dc7ce7747f95b4803e74c4a9dcae8033d3ac870 Mon Sep 17 00:00:00 2001 From: "Felix (xq) Queißner" Date: Sun, 21 Jun 2020 14:51:53 +0200 Subject: Fix for ubuntu. --- src/identitycollection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/identitycollection.cpp') diff --git a/src/identitycollection.cpp b/src/identitycollection.cpp index 64b39de..069a492 100644 --- a/src/identitycollection.cpp +++ b/src/identitycollection.cpp @@ -396,7 +396,7 @@ QMimeData *IdentityCollection::mimeData(const QModelIndexList &indexes) const stream << identity.host_filter; stream << identity.auto_enable; stream << identity.certificate.toDer(); - stream << identity.private_key.algorithm(); + stream << int(identity.private_key.algorithm()); stream << identity.private_key.toDer(); } assert(buffer.size() > 0); @@ -451,7 +451,7 @@ bool IdentityCollection::dropMimeData(const QMimeData *data, Qt::DropAction acti QDataStream stream { &ident_blob, QIODevice::ReadOnly }; QByteArray cert_data, key_data; - QSsl::KeyAlgorithm key_algorithm; + int key_algorithm; stream >> identity.display_name; stream >> identity.user_notes; @@ -462,7 +462,7 @@ bool IdentityCollection::dropMimeData(const QMimeData *data, Qt::DropAction acti stream >> key_data; identity.certificate = QSslCertificate { cert_data, QSsl::Der }; - identity.private_key = QSslKey { key_data, key_algorithm, QSsl::Der, QSsl::PrivateKey }; + identity.private_key = QSslKey { key_data, QSsl::KeyAlgorithm(key_algorithm), QSsl::Der, QSsl::PrivateKey }; } if(not identity.isValid()) -- cgit v1.2.3