0
0
Fork 0
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:
Jason Volk 2019-10-02 17:51:35 -07:00
parent a3cf1dfa30
commit d71ffa6338
2 changed files with 2 additions and 2 deletions

View file

@ -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} {}
};

View file

@ -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