2018-02-04 03:22:01 +01:00
|
|
|
// Matrix Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2018 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.
|
2017-10-01 12:05:09 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#define HAVE_IRCD_NACL_H
|
|
|
|
|
2018-05-21 12:01:40 +02:00
|
|
|
/// libsodium utility interface. (otherwise see: ircd::ed25519)
|
2017-10-01 12:05:09 +02:00
|
|
|
namespace ircd::nacl
|
|
|
|
{
|
|
|
|
IRCD_EXCEPTION(ircd::error, error)
|
|
|
|
|
|
|
|
struct init;
|
|
|
|
|
2019-06-01 01:06:55 +02:00
|
|
|
extern const info::versions version_api, version_abi;
|
2017-10-01 12:05:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
struct ircd::nacl::init
|
|
|
|
{
|
|
|
|
init();
|
|
|
|
~init() noexcept;
|
|
|
|
};
|