From 0c6256e08b3abcf12d807932bc3351b3a538e754 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Tue, 12 Sep 2017 14:13:27 +0200 Subject: [PATCH] [DEBUG] update to the new interface etk --- algue/base64.cpp | 4 +++- algue/base64.hpp | 2 ++ algue/md5.hpp | 2 ++ algue/sha1.hpp | 2 ++ algue/sha512.hpp | 2 ++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/algue/base64.cpp b/algue/base64.cpp index f964168..b3de770 100644 --- a/algue/base64.cpp +++ b/algue/base64.cpp @@ -22,7 +22,9 @@ const etk::Vector& getReverseTable() { static bool isBase64(char _ccc) { - return isalnum(_ccc) + return (_ccc >= '0' && _ccc <= '9') + || (_ccc >= 'a' && _ccc <= 'z') + || (_ccc >= 'A' && _ccc <= 'Z') || _ccc == '+' || _ccc == '/'; } diff --git a/algue/base64.hpp b/algue/base64.hpp index e61d61c..482d837 100644 --- a/algue/base64.hpp +++ b/algue/base64.hpp @@ -6,6 +6,8 @@ #pragma once #include +#include +#include namespace algue { namespace base64 { diff --git a/algue/md5.hpp b/algue/md5.hpp index 447483b..01fdef9 100644 --- a/algue/md5.hpp +++ b/algue/md5.hpp @@ -6,6 +6,8 @@ #pragma once #include +#include +#include /** * @brief Basic Algue library namespace diff --git a/algue/sha1.hpp b/algue/sha1.hpp index c35656e..9670ea3 100644 --- a/algue/sha1.hpp +++ b/algue/sha1.hpp @@ -6,6 +6,8 @@ #pragma once #include +#include +#include namespace algue { namespace sha1 { diff --git a/algue/sha512.hpp b/algue/sha512.hpp index 6149da6..2253858 100644 --- a/algue/sha512.hpp +++ b/algue/sha512.hpp @@ -6,6 +6,8 @@ #pragma once #include +#include +#include namespace algue { class Sha512 {