ReactOS 0.4.16-dev-197-g92996da
|
Go to the source code of this file.
Typedefs | |
typedef struct _xsltSecurityPrefs | xsltSecurityPrefs |
typedef xsltSecurityPrefs * | xsltSecurityPrefsPtr |
typedef int(* | xsltSecurityCheck) (xsltSecurityPrefsPtr sec, xsltTransformContextPtr ctxt, const char *value) |
Enumerations | |
enum | xsltSecurityOption { XSLT_SECPREF_READ_FILE = 1 , XSLT_SECPREF_WRITE_FILE , XSLT_SECPREF_CREATE_DIRECTORY , XSLT_SECPREF_READ_NETWORK , XSLT_SECPREF_WRITE_NETWORK } |
typedef int(* xsltSecurityCheck) (xsltSecurityPrefsPtr sec, xsltTransformContextPtr ctxt, const char *value) |
xsltSecurityCheck:
User provided function to check the value of a string like a file path or an URL ...
Definition at line 51 of file security.h.
xsltSecurityPref:
structure to indicate the preferences for security in the XSLT transformation.
Definition at line 29 of file security.h.
typedef xsltSecurityPrefs* xsltSecurityPrefsPtr |
Definition at line 30 of file security.h.
xsltSecurityOption:
the set of option that can be configured
Enumerator | |
---|---|
XSLT_SECPREF_READ_FILE | |
XSLT_SECPREF_WRITE_FILE | |
XSLT_SECPREF_CREATE_DIRECTORY | |
XSLT_SECPREF_READ_NETWORK | |
XSLT_SECPREF_WRITE_NETWORK |
Definition at line 37 of file security.h.
XSLTPUBFUN int XSLTCALL 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().
XSLTPUBFUN int XSLTCALL 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().
XSLTPUBFUN void XSLTCALL xsltFreeSecurityPrefs | ( | xsltSecurityPrefsPtr | sec | ) |
xsltFreeSecurityPrefs: @sec: the security block to free
Free up a security preference block
Definition at line 78 of file security.c.
XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL 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().
XSLTPUBFUN xsltSecurityCheck XSLTCALL 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().
XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL 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.
XSLTPUBFUN int XSLTCALL xsltSecurityAllow | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt, | ||
const char * | value | ||
) |
XSLTPUBFUN int XSLTCALL xsltSecurityForbid | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt, | ||
const char * | value | ||
) |
XSLTPUBFUN int XSLTCALL 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.
XSLTPUBFUN void XSLTCALL 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.
XSLTPUBFUN int XSLTCALL 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.