mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 04:51:08 +01:00
ircd::ed25519: Use string_view for path ctor.
This commit is contained in:
parent
a3cf1dfa30
commit
d71ffa6338
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ class ircd::ed25519::sk
|
|||
public:
|
||||
sig sign(const const_buffer &msg) const;
|
||||
|
||||
sk(const std::string &filename, pk *const & = nullptr);
|
||||
sk(const string_view &filename, pk *const & = nullptr);
|
||||
sk(pk *const &, const const_buffer &seed);
|
||||
sk(): key{nullptr, std::free} {}
|
||||
};
|
||||
|
|
|
@ -102,7 +102,7 @@ ircd::ed25519::sk::sk(pk *const &pk_arg,
|
|||
};
|
||||
}
|
||||
|
||||
ircd::ed25519::sk::sk(const std::string &filename,
|
||||
ircd::ed25519::sk::sk(const string_view &filename,
|
||||
pk *const &pk_arg)
|
||||
try
|
||||
:key
|
||||
|
|
Loading…
Reference in a new issue