0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd:Ⓜ️ Add missing keys.h related.

This commit is contained in:
Jason Volk 2017-10-15 21:58:23 -07:00
parent 761cd1913e
commit 211f6da570
2 changed files with 7 additions and 2 deletions

View file

@ -33,6 +33,7 @@
#include "m/room.h"
#include "m/user.h"
#include "m/filter.h"
#include "m/keys.h"
#include "m/txn.h"
#include "m/request.h"
#include "m/session.h"

View file

@ -34,9 +34,10 @@ namespace ircd::m
namespace ircd::my
{
extern ed25519::pk public_key;
extern ed25519::sk secret_key;
extern ed25519::pk public_key;
extern std::string public_key_b64;
extern std::string public_key_id;
}
namespace ircd::m::name
@ -72,6 +73,8 @@ struct ircd::m::key
{
static room keys;
bool verify() const noexcept;
using super_type::tuple;
using super_type::operator=;
};
@ -80,8 +83,9 @@ namespace ircd::m::keys
{
using closure = std::function<void (const key &)>;
bool get(const string_view &server_name, const closure &);
void set(const key &);
bool get(const string_view &server_name, const string_view &key_id, const closure &);
bool get(const string_view &server_name, const closure &);
}
#pragma GCC diagnostic pop