0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

modules/client/keys/device_signing/upload: Requisite stub; request elements.

This commit is contained in:
Jason Volk 2020-03-30 18:54:01 -07:00
parent d28730538c
commit 2cbd0c736a

View file

@ -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
};
}