0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 08:13:46 +02:00

modules/client/keys: Stub handler modules for device_signing/upload and signatures/upload.

This commit is contained in:
Jason Volk 2020-03-30 15:23:28 -07:00
parent 2e7962216b
commit a9214f796b
4 changed files with 108 additions and 0 deletions

View file

@ -125,6 +125,8 @@ ircd::m::matrix::module_names
"client_keys_upload",
"client_keys_claim",
"client_keys_query",
"client_keys_signatures_upload",
"client_keys_device_signing_upload",
"client_room_keys_version",
"client_room_keys_keys",
"client_presence",

View file

@ -496,12 +496,16 @@ client_client_keys_upload_la_SOURCES = client/keys/upload.cc
client_client_keys_query_la_SOURCES = client/keys/query.cc
client_client_keys_claim_la_SOURCES = client/keys/claim.cc
client_client_keys_changes_la_SOURCES = client/keys/changes.cc
client_client_keys_signatures_upload_la_SOURCES = client/keys/signatures/upload.cc
client_client_keys_device_signing_upload_la_SOURCES = client/keys/device_signing/upload.cc
client_module_LTLIBRARIES += \
client/client_keys_upload.la \
client/client_keys_query.la \
client/client_keys_claim.la \
client/client_keys_changes.la \
client/client_keys_signatures_upload.la \
client/client_keys_device_signing_upload.la \
###
#

View file

@ -0,0 +1,51 @@
// The Construct
//
// Copyright (C) The Construct Developers, Authors & Contributors
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
namespace ircd::m
{
static resource::response post_keys_device_signing_upload(client &, const resource::request &);
extern resource::method keys_device_signing_upload_post;
extern resource keys_device_signing_upload;
}
ircd::mapi::header
IRCD_MODULE
{
"Client (undocumented) :Keys Device Signing Upload"
};
decltype(ircd::m::keys_device_signing_upload)
ircd::m::keys_device_signing_upload
{
"/_matrix/client/unstable/keys/device_signing/upload",
{
"(undocumented) Keys Device Signing Upload"
}
};
decltype(ircd::m::keys_device_signing_upload_post)
ircd::m::keys_device_signing_upload_post
{
keys_device_signing_upload, "POST", post_keys_device_signing_upload,
{
keys_device_signing_upload_post.REQUIRES_AUTH
}
};
ircd::m::resource::response
ircd::m::post_keys_device_signing_upload(client &client,
const resource::request &request)
{
return resource::response
{
client, http::NOT_IMPLEMENTED
};
}

View file

@ -0,0 +1,51 @@
// The Construct
//
// Copyright (C) The Construct Developers, Authors & Contributors
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
namespace ircd::m
{
static resource::response post_keys_signatures_upload(client &, const resource::request &);
extern resource::method keys_signatures_upload_post;
extern resource keys_signatures_upload;
}
ircd::mapi::header
IRCD_MODULE
{
"Client (undocumented) :Keys Signatures Upload"
};
decltype(ircd::m::keys_signatures_upload)
ircd::m::keys_signatures_upload
{
"/_matrix/client/unstable/keys/signatures/upload",
{
"(undocumented) Keys Signatures Upload"
}
};
decltype(ircd::m::keys_signatures_upload_post)
ircd::m::keys_signatures_upload_post
{
keys_signatures_upload, "POST", post_keys_signatures_upload,
{
keys_signatures_upload_post.REQUIRES_AUTH
}
};
ircd::m::resource::response
ircd::m::post_keys_signatures_upload(client &client,
const resource::request &request)
{
return resource::response
{
client, http::NOT_IMPLEMENTED
};
}