mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
modules/s_keys: Fix create_my_key() linkage.
This commit is contained in:
parent
1d30fae3a6
commit
fd514d2416
2 changed files with 15 additions and 8 deletions
|
@ -5201,14 +5201,13 @@ console_cmd__key(opt &out, const string_view &line)
|
|||
bool
|
||||
console_cmd__key__create(opt &out, const string_view &line)
|
||||
{
|
||||
using prototype = void (const m::event &);
|
||||
using prototype = void ();
|
||||
static mods::import<prototype> create_my_key
|
||||
{
|
||||
"s_keys", "create_my_key"
|
||||
"s_keys", "ircd::m::create_my_key"
|
||||
};
|
||||
|
||||
create_my_key({});
|
||||
|
||||
create_my_key();
|
||||
out << "done" << std::endl;
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -12,7 +12,8 @@ namespace ircd::m
|
|||
{
|
||||
static bool keys_cache_get(const string_view &server, const string_view &key_id, const keys::closure &);
|
||||
static size_t keys_cache_set(const json::object &);
|
||||
static void create_my_key(const m::event &, m::vm::eval &);
|
||||
void create_my_key();
|
||||
static void create_my_key_hookfn(const m::event &, m::vm::eval &);
|
||||
static void init_my_ed25519();
|
||||
static void init_my_tls_crt();
|
||||
void init_my_keys();
|
||||
|
@ -557,7 +558,7 @@ ircd::m::init_my_ed25519()
|
|||
decltype(ircd::m::create_my_key_hook)
|
||||
ircd::m::create_my_key_hook
|
||||
{
|
||||
create_my_key,
|
||||
create_my_key_hookfn,
|
||||
{
|
||||
{ "_site", "vm.effect" },
|
||||
{ "room_id", m::my_node.room_id() },
|
||||
|
@ -566,8 +567,15 @@ ircd::m::create_my_key_hook
|
|||
};
|
||||
|
||||
void
|
||||
ircd::m::create_my_key(const m::event &,
|
||||
m::vm::eval &)
|
||||
ircd::m::create_my_key_hookfn(const m::event &,
|
||||
m::vm::eval &)
|
||||
{
|
||||
create_my_key();
|
||||
}
|
||||
|
||||
void
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::create_my_key()
|
||||
{
|
||||
const json::members verify_keys_
|
||||
{{
|
||||
|
|
Loading…
Reference in a new issue