diff --git a/include/export/josepp/crypto.hpp b/include/export/josepp/crypto.hpp index 8350f80..520fc26 100644 --- a/include/export/josepp/crypto.hpp +++ b/include/export/josepp/crypto.hpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include diff --git a/include/export/josepp/digest.hpp b/include/export/josepp/digest.hpp index 8682101..bc2282a 100644 --- a/include/export/josepp/digest.hpp +++ b/include/export/josepp/digest.hpp @@ -44,6 +44,8 @@ class digest final { public: static const EVP_MD *md(digest::type t) { switch (t) { + default: + [[fallthrough]]; case type::SHA256: return EVP_sha256(); case type::SHA384: diff --git a/include/export/josepp/sstring.hh b/include/export/josepp/sstring.hh index adb5d72..e1d1a54 100644 --- a/include/export/josepp/sstring.hh +++ b/include/export/josepp/sstring.hh @@ -36,7 +36,9 @@ public: secure_allocator() noexcept = default; - secure_allocator(const secure_allocator &) noexcept {} + secure_allocator(const secure_allocator &) noexcept + : std::allocator() + {} template explicit secure_allocator(const secure_allocator &) noexcept {}