-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:JusticeRage/Manalyze
- Loading branch information
Showing
28 changed files
with
782 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
{ | ||
Ignore dlopen bug. | ||
<Ignore dlopen leak.> | ||
Memcheck:Leak | ||
... | ||
fun:dlopen@@GLIBC_2.2.5 | ||
... | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
This file is part of Manalyze. | ||
Manalyze is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
Manalyze is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with Manalyze. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
#include <sstream> | ||
#include <vector> | ||
|
||
#include <boost/cstdint.hpp> | ||
#include <boost/shared_ptr.hpp> | ||
#include <boost/make_shared.hpp> | ||
#include <boost/archive/iterators/base64_from_binary.hpp> | ||
#include <boost/archive/iterators/insert_linebreaks.hpp> | ||
#include <boost/archive/iterators/transform_width.hpp> | ||
#include <boost/archive/iterators/ostream_iterator.hpp> | ||
#include <boost/system/api_config.hpp> | ||
|
||
#if defined BOOST_WINDOWS_API && !defined DECLSPEC_MANACOMMONS | ||
#ifdef MANACOMMONS_EXPORT | ||
#define DECLSPEC_MANACOMMONS __declspec(dllexport) | ||
#else | ||
#define DECLSPEC_MANACOMMONS __declspec(dllimport) | ||
#endif | ||
#elif !defined BOOST_WINDOWS_API && !defined DECLSPEC_MANACOMMONS | ||
#define DECLSPEC_MANACOMMONS | ||
#endif | ||
|
||
namespace utils { | ||
|
||
namespace biter = boost::archive::iterators; | ||
typedef boost::shared_ptr<std::string> pString; | ||
|
||
// ---------------------------------------------------------------------------- | ||
|
||
/** | ||
* @brief Converts the input data into a Base64 encoded string. | ||
* | ||
* Taken from the boost examples and slightly adaped to handle padding. | ||
* | ||
* @param const std::vector<boost::uint8_t>& bytes A vector of bytes to encode. | ||
* | ||
* @return A string containing the Base64 representation of the input. | ||
*/ | ||
DECLSPEC_MANACOMMONS pString b64encode(const std::vector<boost::uint8_t>& bytes); | ||
|
||
} // !namespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.