mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
modules/client/keys/device_signing/upload: Requisite stub; request elements.
This commit is contained in:
parent
d28730538c
commit
2cbd0c736a
1 changed files with 30 additions and 1 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue