ReactOS 0.4.16-dev-122-g325d74c
|
#include "precomp.h"
Go to the source code of this file.
Classes | |
struct | _xsltSecurityPrefs |
Variables | |
static xsltSecurityPrefsPtr | xsltDefaultSecurityPrefs = NULL |
xsltCheckFilename @path: the path to check
function checks to see if @path is a valid source (file, socket...) for XML.
TODO: remove at some point !!! Local copy of xmlCheckFilename to avoid a hard dependency on a new version of libxml2
if stat is not available on the target machine, returns 1. if stat fails, returns 0 (if calling stat on the filename fails, it can't be right). if stat succeeds and the file is a directory, returns 2. otherwise returns 1.
Definition at line 245 of file security.c.
Referenced by xsltCheckWritePath().
int xsltCheckRead | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt, | ||
const xmlChar * | URL | ||
) |
xsltCheckRead: @sec: the security options @ctxt: an XSLT transformation context @URL: the resource to be read
Check if the resource is allowed to be read
Return 1 if read is allowed, 0 if not and -1 in case or error.
Definition at line 402 of file security.c.
Referenced by xsltLoadDocument(), xsltLoadStyleDocument(), xsltParseStylesheetFile(), and xsltParseStylesheetImport().
int xsltCheckWrite | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt, | ||
const xmlChar * | URL | ||
) |
xsltCheckWrite: @sec: the security options @ctxt: an XSLT transformation context @URL: the resource to be written
Check if the resource is allowed to be written, if necessary makes some preliminary work like creating directories
Return 1 if write is allowed, 0 if not and -1 in case or error.
Definition at line 335 of file security.c.
Referenced by xsltApplyStylesheetInternal(), and xsltDocumentElem().
|
static |
Definition at line 273 of file security.c.
Referenced by xsltCheckWrite(), and xsltCheckWritePath().
void xsltFreeSecurityPrefs | ( | xsltSecurityPrefsPtr | sec | ) |
xsltFreeSecurityPrefs: @sec: the security block to free
Free up a security preference block
Definition at line 78 of file security.c.
xsltSecurityPrefsPtr xsltGetDefaultSecurityPrefs | ( | void | ) |
xsltGetDefaultSecurityPrefs:
Get the default security preference application-wide
Returns the current xsltSecurityPrefsPtr in use or NULL if none
Definition at line 163 of file security.c.
Referenced by xsltLoadStyleDocument(), xsltNewTransformContext(), xsltParseStylesheetFile(), and xsltParseStylesheetImport().
xsltSecurityCheck xsltGetSecurityPrefs | ( | xsltSecurityPrefsPtr | sec, |
xsltSecurityOption | option | ||
) |
xsltGetSecurityPrefs: @sec: the security block to update @option: the option to lookup
Lookup the security option to get the callback checking function
Returns NULL if not found, the function otherwise
Definition at line 125 of file security.c.
Referenced by xsltCheckRead(), xsltCheckWrite(), and xsltCheckWritePath().
xsltSecurityPrefsPtr xsltNewSecurityPrefs | ( | void | ) |
xsltNewSecurityPrefs:
Create a new security preference block
Returns a pointer to the new block or NULL in case of error
Definition at line 56 of file security.c.
int xsltSecurityAllow | ( | xsltSecurityPrefsPtr sec | ATTRIBUTE_UNUSED, |
xsltTransformContextPtr ctxt | ATTRIBUTE_UNUSED, | ||
const char *value | ATTRIBUTE_UNUSED | ||
) |
xsltSecurityAllow: @sec: the security block to use @ctxt: an XSLT transformation context @value: unused
Function used to always allow an operation
Returns 1 always
Definition at line 197 of file security.c.
int xsltSecurityForbid | ( | xsltSecurityPrefsPtr sec | ATTRIBUTE_UNUSED, |
xsltTransformContextPtr ctxt | ATTRIBUTE_UNUSED, | ||
const char *value | ATTRIBUTE_UNUSED | ||
) |
xsltSecurityForbid: @sec: the security block to use @ctxt: an XSLT transformation context @value: unused
Function used to always forbid an operation
Returns 0 always
Definition at line 214 of file security.c.
int xsltSetCtxtSecurityPrefs | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt | ||
) |
xsltSetCtxtSecurityPrefs: @sec: the security block to use @ctxt: an XSLT transformation context
Set the security preference for a specific transformation
Returns -1 in case of error, 0 otherwise
Definition at line 177 of file security.c.
void xsltSetDefaultSecurityPrefs | ( | xsltSecurityPrefsPtr | sec | ) |
xsltSetDefaultSecurityPrefs: @sec: the security block to use
Set the default security preference application-wide
Definition at line 150 of file security.c.
int xsltSetSecurityPrefs | ( | xsltSecurityPrefsPtr | sec, |
xsltSecurityOption | option, | ||
xsltSecurityCheck | func | ||
) |
xsltSetSecurityPrefs: @sec: the security block to update @option: the option to update @func: the user callback to use for this option
Update the security option to use the new callback checking function
Returns -1 in case of error, 0 otherwise
Definition at line 95 of file security.c.
|
static |
Definition at line 40 of file security.c.
Referenced by xsltGetDefaultSecurityPrefs(), and xsltSetDefaultSecurityPrefs().