18#ifndef MAGICKCORE_POLICY_PRIVATE_H
19#define MAGICKCORE_POLICY_PRIVATE_H
21#if defined(__cplusplus) || defined(c_plusplus)
25#include "MagickCore/quantum-private.h"
26#include "MagickCore/resource-private.h"
27#include "MagickCore/string-private.h"
28#include "MagickCore/utility-private.h"
30#if defined(MAGICKCORE_ZERO_CONFIGURATION_SUPPORT)
36 *ZeroConfigurationPolicy = \
41extern MagickExport MagickBooleanType
42 IsPathAuthorized(
const PolicyRights,
const char *);
44extern MagickPrivate MagickBooleanType
45 PolicyComponentGenesis(
void);
47extern MagickPrivate
void
48 PolicyComponentTerminus(
void);
50static inline ssize_t GetShredPasses(
void)
60 option=GetPolicyValue(
"system:shred");
61 if (option != (
char *) NULL)
63 policy_passes=(ssize_t) StringToLong(option);
64 option=DestroyString(option);
65 if (policy_passes < 0)
68 option=GetEnvironmentValue(
"MAGICK_SHRED_PASSES");
69 if (option != (
char *) NULL)
71 env_passes=(ssize_t) StringToLong(option);
72 option=DestroyString(option);
76 passes=MagickMax(policy_passes,env_passes);
80#if defined(__cplusplus) || defined(c_plusplus)