Skip to content

Commit 6c82250

Browse files
authored
Merge pull request #18 from troian/fix_crosscompile_build
fix: add missing include
2 parents c68b967 + 3511f03 commit 6c82250

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

include/export/josepp/crypto.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include <string>
3535
#include <memory>
3636
#include <sstream>
37+
#include <functional>
3738

3839
#include <josepp/types.hpp>
3940
#include <josepp/digest.hpp>

include/export/josepp/digest.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ class digest final {
4444
public:
4545
static const EVP_MD *md(digest::type t) {
4646
switch (t) {
47+
default:
48+
[[fallthrough]];
4749
case type::SHA256:
4850
return EVP_sha256();
4951
case type::SHA384:

include/export/josepp/sstring.hh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ public:
3636

3737
secure_allocator() noexcept = default;
3838

39-
secure_allocator(const secure_allocator &) noexcept {}
39+
secure_allocator(const secure_allocator &) noexcept
40+
: std::allocator<T>()
41+
{}
4042

4143
template <class U>
4244
explicit secure_allocator(const secure_allocator<U> &) noexcept {}

0 commit comments

Comments
 (0)