1 #ifndef OPENDKIM_DOT_HPP
2 #define OPENDKIM_DOT_HPP
15 lib(lib
const&) = delete;
16 lib
& operator=(lib
const&) = delete;
20 lib
& operator=(lib
&&) = default;
23 void header(std::string_view header
);
25 void body(std::string_view body
);
26 void chunk(std::string_view chunk
);
33 dkim_lib
* lib_
{nullptr};
38 class sign
: public lib
{
40 enum class body_type
: bool {
45 sign(char const* secretkey
,
48 body_type typ
= body_type::text
);
50 std::string
getsighdr();
53 class verify
: public lib
{
58 bool sig_syntax(std::string_view sig
);
59 void foreach_sig(std::function
<void(char const* domain
,
63 char const* b
)> func
);
66 } // namespace OpenDKIM
68 #endif // OPENDKIM_DOT_HPP