diff --git a/include/ircd/ed25519.h b/include/ircd/ed25519.h index 180165424..428ec3e27 100644 --- a/include/ircd/ed25519.h +++ b/include/ircd/ed25519.h @@ -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} {} }; diff --git a/ircd/sodium.cc b/ircd/sodium.cc index 5a6d21042..a0e38c17d 100644 --- a/ircd/sodium.cc +++ b/ircd/sodium.cc @@ -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