summaryrefslogtreecommitdiff
path: root/src/generic/md5.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/generic/md5.hpp')
-rw-r--r--src/generic/md5.hpp21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/generic/md5.hpp b/src/generic/md5.hpp
index 8b1c6ad..50bc987 100644
--- a/src/generic/md5.hpp
+++ b/src/generic/md5.hpp
@@ -1,5 +1,4 @@
-#ifndef TMWA_GENERIC_MD5CALC_HPP
-#define TMWA_GENERIC_MD5CALC_HPP
+#pragma once
// md5.hpp - Fundamental MD5 operations.
//
// Copyright © 2011-2014 Ben Longbons <b.r.longbons@gmail.com>
@@ -19,19 +18,18 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
-# include "../sanity.hpp"
+#include "fwd.hpp"
-# include <netinet/in.h>
+#include <cstdint>
-# include <cstdint>
-# include <cstddef>
-# include <cstdio>
+#include <array>
-# include <array>
+#include "../strings/fwd.hpp"
+#include "../strings/vstring.hpp"
-# include "../strings/fwd.hpp"
-# include "../strings/vstring.hpp"
+namespace tmwa
+{
/// The digest state - becomes the output
struct MD5_state
{
@@ -58,5 +56,4 @@ void MD5_to_str(MD5_state state, md5_string& out);
// Convenience
MD5_state MD5_from_string(XString msg);
-
-#endif // TMWA_GENERIC_MD5CALC_HPP
+} // namespace tmwa