aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/cross_signing.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/cross_signing.cpp')
-rw-r--r--lib/csapi/cross_signing.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/csapi/cross_signing.cpp b/lib/csapi/cross_signing.cpp
index 1fa0e949..c6c34772 100644
--- a/lib/csapi/cross_signing.cpp
+++ b/lib/csapi/cross_signing.cpp
@@ -9,9 +9,10 @@ using namespace Quotient;
UploadCrossSigningKeysJob::UploadCrossSigningKeysJob(
const Omittable<CrossSigningKey>& masterKey,
const Omittable<CrossSigningKey>& selfSigningKey,
- const Omittable<CrossSigningKey>& userSigningKey)
+ const Omittable<CrossSigningKey>& userSigningKey,
+ const Omittable<AuthenticationData>& auth)
: BaseJob(HttpVerb::Post, QStringLiteral("UploadCrossSigningKeysJob"),
- makePath("/_matrix/client/r0", "/keys/device_signing/upload"))
+ makePath("/_matrix/client/v3", "/keys/device_signing/upload"))
{
QJsonObject _data;
addParam<IfNotEmpty>(_data, QStringLiteral("master_key"), masterKey);
@@ -19,13 +20,14 @@ UploadCrossSigningKeysJob::UploadCrossSigningKeysJob(
selfSigningKey);
addParam<IfNotEmpty>(_data, QStringLiteral("user_signing_key"),
userSigningKey);
+ addParam<IfNotEmpty>(_data, QStringLiteral("auth"), auth);
setRequestData(std::move(_data));
}
UploadCrossSigningSignaturesJob::UploadCrossSigningSignaturesJob(
const QHash<QString, QHash<QString, QJsonObject>>& signatures)
: BaseJob(HttpVerb::Post, QStringLiteral("UploadCrossSigningSignaturesJob"),
- makePath("/_matrix/client/r0", "/keys/signatures/upload"))
+ makePath("/_matrix/client/v3", "/keys/signatures/upload"))
{
setRequestData(RequestData(toJson(signatures)));
}