http://swpat.ffii.org/Action against software patents http://www.gnome.org/Gnome2 Logo http://www.w3.org/StatusW3C logo http://www.redhat.comRed Hat Logo http://xmlsoft.org/XSLT/Made with Libxslt Logo The XSLT C library for Gnome
Module security from libxslt
API Menu ../index.htmlMain Menu ../docs.htmlDeveloper Menu index.htmlAPI Menu ../ChangeLog.htmlChangeLog Related links http://mail.gnome.org/archives/xslt/Mail archive http://xmlsoft.org/XML libxml2 ftp://xmlsoft.org/FTP http://www.zlatkovic.com/projects/libxml/Windows binaries http://garypennington.net/libxml2/Solaris binaries http://www.zveno.com/open_source/libxml2xslt.htmlMacOsX binaries http://bugzilla.gnome.org/buglist.cgi?product=libxsltBug Tracker http://www.zend.com/php5/articles/php5-xmlphp.php#Heading17XSLT with PHP http://www.mod-xslt2.com/Apache module http://sourceforge.net/projects/libxml2-pas/Pascal bindings http://xsldbg.sourceforge.net/Xsldbg Debugger API Indexes ../APIchunk0.htmlAlphabetic ../APIconstructors.htmlConstructors ../APIfunctions.htmlFunctions/Types ../APIfiles.htmlModules ../APIsymbols.htmlSymbols libxslt-preproc.htmlPrev libxslt-preproc.htmlpreproc index.htmlUp index.htmlAPI documentation ../index.htmlHome ../index.htmlHome libxslt-templates.htmltemplates libxslt-templates.htmlNext the libxslt security framework allow to restrict the access to new resources (file or URL) from the stylesheet at runtime. 
Table of Contents
Enum #xsltSecurityOptionxsltSecurityOption Structure #xsltSecurityPrefsxsltSecurityPrefs struct _xsltSecurityPrefs
The content of this structure is not made public by the API.
Typedef libxslt-security.html#xsltSecurityPrefsxsltSecurityPrefs  * xsltSecurityPrefsPtr int	#xsltCheckReadxsltCheckRead 			( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const xmlChar * URL)int	#xsltCheckWritexsltCheckWrite 			( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const xmlChar * URL)void	#xsltFreeSecurityPrefsxsltFreeSecurityPrefs 		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec) libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr 	#xsltGetDefaultSecurityPrefsxsltGetDefaultSecurityPrefs 	(void) libxslt-security.html#xsltSecurityCheckxsltSecurityCheck 	#xsltGetSecurityPrefsxsltGetSecurityPrefs 	( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 						 libxslt-security.html#xsltSecurityOptionxsltSecurityOption  option) libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr 	#xsltNewSecurityPrefsxsltNewSecurityPrefs 	(void)int	#xsltSecurityAllowxsltSecurityAllow 		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const char * value)Function type: #xsltSecurityCheckxsltSecurityCheck int	
#xsltSecurityCheckxsltSecurityCheck 		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const char * value)
int	#xsltSecurityForbidxsltSecurityForbid 		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const char * value)int	#xsltSetCtxtSecurityPrefsxsltSetCtxtSecurityPrefs 	( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt)void	#xsltSetDefaultSecurityPrefsxsltSetDefaultSecurityPrefs 	( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec)int	#xsltSetSecurityPrefsxsltSetSecurityPrefs 		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-security.html#xsltSecurityOptionxsltSecurityOption  option, 					 libxslt-security.html#xsltSecurityCheckxsltSecurityCheck  func)Description
Enum xsltSecurityOption 
Enum xsltSecurityOption {
    
XSLT_SECPREF_READ_FILE  = 1
    
XSLT_SECPREF_WRITE_FILE  = 2
    
XSLT_SECPREF_CREATE_DIRECTORY  = 3
    
XSLT_SECPREF_READ_NETWORK  = 4
    
XSLT_SECPREF_WRITE_NETWORK  = 5
}
Structure xsltSecurityPrefs 
Structure xsltSecurityPrefsstruct _xsltSecurityPrefs {
The content of this structure is not made public by the API.
}
Function: xsltCheckRead
int	xsltCheckRead			( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const xmlChar * URL)Check if the resource is allowed to be read
sec: the security options ctxt: an XSLT transformation context URL: the resource to be read Returns: 1 if read is allowed, 0 if not and -1 in case or error. Function: xsltCheckWrite
int	xsltCheckWrite			( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const xmlChar * URL)Check if the resource is allowed to be written, if necessary makes some preliminary work like creating directories
sec: the security options ctxt: an XSLT transformation context URL: the resource to be written Returns: 1 if write is allowed, 0 if not and -1 in case or error. Function: xsltFreeSecurityPrefs
void	xsltFreeSecurityPrefs		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec)Free up a security preference block
sec: the security block to free Function: xsltGetDefaultSecurityPrefs
libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr 	xsltGetDefaultSecurityPrefs	(void)Get the default security preference application-wide
Returns: the current libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  in use or NULL if none Function: xsltGetSecurityPrefs
libxslt-security.html#xsltSecurityCheckxsltSecurityCheck 	xsltGetSecurityPrefs	( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 						 libxslt-security.html#xsltSecurityOptionxsltSecurityOption  option)Lookup the security option to get the callback checking function
sec: the security block to update option: the option to lookup Returns: NULL if not found, the function otherwise Function: xsltNewSecurityPrefs
libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr 	xsltNewSecurityPrefs	(void)Create a new security preference block
Returns: a pointer to the new block or NULL in case of error Function: xsltSecurityAllow
int	xsltSecurityAllow		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const char * value)Function used to always allow an operation
sec: the security block to use ctxt: an XSLT transformation context value: unused Returns: 1 always Function type: xsltSecurityCheck
Function type: xsltSecurityCheck
int	xsltSecurityCheck		(
libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const char * value)
User provided function to check the value of a string like a file path or an URL ...
sec: ctxt: value: Returns: Function: xsltSecurityForbid
int	xsltSecurityForbid		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt, 					 const char * value)Function used to always forbid an operation
sec: the security block to use ctxt: an XSLT transformation context value: unused Returns: 0 always Function: xsltSetCtxtSecurityPrefs
int	xsltSetCtxtSecurityPrefs	( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-xsltInternals.html#xsltTransformContextPtrxsltTransformContextPtr  ctxt)Set the security preference for a specific transformation
sec: the security block to use ctxt: an XSLT transformation context Returns: -1 in case of error, 0 otherwise Function: xsltSetDefaultSecurityPrefs
void	xsltSetDefaultSecurityPrefs	( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec)Set the default security preference application-wide
sec: the security block to use Function: xsltSetSecurityPrefs
int	xsltSetSecurityPrefs		( libxslt-security.html#xsltSecurityPrefsPtrxsltSecurityPrefsPtr  sec, 					 libxslt-security.html#xsltSecurityOptionxsltSecurityOption  option, 					 libxslt-security.html#xsltSecurityCheckxsltSecurityCheck  func)Update the security option to use the new callback checking function
sec: the security block to update option: the option to update func: the user callback to use for this option Returns: -1 in case of error, 0 otherwise ../bugs.htmlDaniel Veillard 
