Eneboo - Documentación para desarrolladores
|
Ir al código fuente de este archivo.
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 ...
typedef struct _xsltSecurityPrefs xsltSecurityPrefs |
xsltSecurityPref:
structure to indicate the preferences for security in the XSLT transformation.
typedef xsltSecurityPrefs* xsltSecurityPrefsPtr |
enum xsltSecurityOption |
XSLTPUBFUN int XSLTCALL xsltCheckRead | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt, | ||
const xmlChar * | URL | ||
) |
xsltCheckRead: : the security options : an XSLT transformation context : 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.
XSLTPUBFUN int XSLTCALL xsltCheckWrite | ( | xsltSecurityPrefsPtr | sec, |
xsltTransformContextPtr | ctxt, | ||
const xmlChar * | URL | ||
) |
xsltCheckWrite: : the security options : an XSLT transformation context : 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.
XSLTPUBFUN void XSLTCALL xsltFreeSecurityPrefs | ( | xsltSecurityPrefsPtr | sec | ) |
xsltFreeSecurityPrefs: : the security block to free
Free up a security preference block
XSLTPUBFUN xsltSecurityPrefsPtr XSLTCALL xsltGetDefaultSecurityPrefs | ( | void | ) |
xsltGetDefaultSecurityPrefs:
Get the default security preference application-wide
Returns the current xsltSecurityPrefsPtr in use or NULL if none
XSLTPUBFUN xsltSecurityCheck XSLTCALL xsltGetSecurityPrefs | ( | xsltSecurityPrefsPtr | sec, |
xsltSecurityOption | option | ||
) |
xsltGetSecurityPrefs: : the security block to update : the option to lookup
Lookup the security option to get the callback checking function
Returns NULL if not found, the function otherwise
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
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: : the security block to use : an XSLT transformation context
Set the security preference for a specific transformation
Returns -1 in case of error, 0 otherwise
XSLTPUBFUN void XSLTCALL xsltSetDefaultSecurityPrefs | ( | xsltSecurityPrefsPtr | sec | ) |
xsltSetDefaultSecurityPrefs: : the security block to use
Set the default security preference application-wide
XSLTPUBFUN int XSLTCALL xsltSetSecurityPrefs | ( | xsltSecurityPrefsPtr | sec, |
xsltSecurityOption | option, | ||
xsltSecurityCheck | func | ||
) |
xsltSetSecurityPrefs: : the security block to update : the option to update : 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