From 2cbd0c736abc9b13058629ba7a365927d5e10498 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 30 Mar 2020 18:54:01 -0700 Subject: [PATCH] modules/client/keys/device_signing/upload: Requisite stub; request elements. --- modules/client/keys/device_signing/upload.cc | 31 +++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/modules/client/keys/device_signing/upload.cc b/modules/client/keys/device_signing/upload.cc index 2b654585c..bfead88a3 100644 --- a/modules/client/keys/device_signing/upload.cc +++ b/modules/client/keys/device_signing/upload.cc @@ -43,9 +43,38 @@ ircd::m::resource::response ircd::m::post_keys_device_signing_upload(client &client, const resource::request &request) { + const json::object &auth + { + request["auth"] + }; + + const json::object &master_key + { + request["master_key"] + }; + + const json::object &self_signing_key + { + request["self_signing_key"] + }; + + const json::object &user_signing_key + { + request["user_signing_key"] + }; + + const m::device::id::buf device_id + { + m::user::get_device_from_access_token(request.access_token) + }; + + const m::user::room user_room + { + request.user_id + }; return resource::response { - client, http::NOT_IMPLEMENTED + client, http::OK }; }