policy.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore security policy methods.
00017 */
00018 #ifndef MAGICKCORE_POLICY_H
00019 #define MAGICKCORE_POLICY_H
00020 
00021 #include "magick/pixel.h"
00022 #include "magick/exception.h"
00023 
00024 #if defined(__cplusplus) || defined(c_plusplus)
00025 extern "C" {
00026 #endif
00027 
00028 typedef enum
00029 {
00030   UndefinedPolicyDomain,
00031   CoderPolicyDomain,
00032   DelegatePolicyDomain,
00033   FilterPolicyDomain,
00034   PathPolicyDomain,
00035   ResourcePolicyDomain,
00036   SystemPolicyDomain,
00037   CachePolicyDomain,
00038   ModulePolicyDomain
00039 } PolicyDomain;
00040 
00041 typedef enum
00042 {
00043   UndefinedPolicyRights = 0x00,
00044   NoPolicyRights = 0x00,
00045   ReadPolicyRights = 0x01,
00046   WritePolicyRights = 0x02,
00047   ExecutePolicyRights = 0x04,
00048   AllPolicyRights = 0xff
00049 } PolicyRights;
00050 
00051 typedef struct _PolicyInfo
00052   PolicyInfo;
00053 
00054 extern MagickExport char
00055   *GetPolicyValue(const char *name),
00056   **GetPolicyList(const char *,size_t *,ExceptionInfo *);
00057 
00058 extern MagickExport const PolicyInfo
00059   **GetPolicyInfoList(const char *,size_t *,ExceptionInfo *);
00060 
00061 extern MagickExport MagickBooleanType
00062   IsRightsAuthorized(const PolicyDomain,const PolicyRights,const char *),
00063   ListPolicyInfo(FILE *,ExceptionInfo *),
00064   PolicyComponentGenesis(void),
00065   SetMagickSecurityPolicy(const char *,ExceptionInfo *);
00066 
00067 extern MagickExport void
00068   PolicyComponentTerminus(void);
00069 
00070 #if defined(__cplusplus) || defined(c_plusplus)
00071 }
00072 #endif
00073 
00074 #endif

Generated on 17 Feb 2020 for MagickCore by  doxygen 1.6.1