Skip to content

Commit

Permalink
Merge pull request #18 from troian/fix_crosscompile_build
Browse files Browse the repository at this point in the history
fix: add missing include
  • Loading branch information
troian authored Oct 17, 2019
2 parents c68b967 + 3511f03 commit 6c82250
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/export/josepp/crypto.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <string>
#include <memory>
#include <sstream>
#include <functional>

#include <josepp/types.hpp>
#include <josepp/digest.hpp>
Expand Down
2 changes: 2 additions & 0 deletions include/export/josepp/digest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion include/export/josepp/sstring.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ public:

secure_allocator() noexcept = default;

secure_allocator(const secure_allocator &) noexcept {}
secure_allocator(const secure_allocator &) noexcept
: std::allocator<T>()
{}

template <class U>
explicit secure_allocator(const secure_allocator<U> &) noexcept {}
Expand Down

0 comments on commit 6c82250

Please sign in to comment.