File indexing completed on 2025-09-17 09:02:05
0001
0002
0003
0004
0005
0006
0007
0008
0009 #if !defined(Magick_SecurityPolicy_header)
0010 #define Magick_SecurityPolicy_header
0011
0012 #include "Magick++/Include.h"
0013 #include <string>
0014
0015 namespace Magick
0016 {
0017 class MagickPPExport SecurityPolicy
0018 {
0019 public:
0020
0021
0022 static bool precision(const int precision_);
0023
0024
0025 static bool anonymousCacheMemoryMap();
0026
0027
0028 static bool anonymousSystemMemoryMap();
0029
0030
0031 static bool maxMemoryRequest(const MagickSizeType limit_);
0032
0033
0034 static bool maxProfileSize(const MagickSizeType limit_);
0035
0036
0037 static bool shred(const int passes_);
0038
0039 private:
0040 SecurityPolicy(void);
0041
0042 static bool setValue(const PolicyDomain domain_, const std::string name_,
0043 const std::string value_);
0044
0045 template <typename T>
0046 static std::string toString(const T& value);
0047
0048 };
0049
0050 }
0051
0052 #endif