aboutsummaryrefslogtreecommitdiff
path: root/src/identitycollection.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-21 14:51:53 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-21 14:51:53 +0200
commit4dc7ce7747f95b4803e74c4a9dcae8033d3ac870 (patch)
treeccf206ea29141f0ac53ec31f5bfeb704190d51df /src/identitycollection.cpp
parent0cd3f649205dd079843914d2977a650dd9bd3a92 (diff)
downloadkristall-4dc7ce7747f95b4803e74c4a9dcae8033d3ac870.tar.gz
Fix for ubuntu.
Diffstat (limited to 'src/identitycollection.cpp')
-rw-r--r--src/identitycollection.cpp6
1 files changed, 3 insertions, 3 deletions
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())