Eneboo - Documentación para desarrolladores
'typedefs' | Enumeraciones | Funciones
Referencia del Archivo src/libxslt/libxslt/security.h
#include <libxml/tree.h>
#include "xsltexports.h"
#include "xsltInternals.h"

Ir al código fuente de este archivo.

'typedefs'

typedef struct _xsltSecurityPrefs xsltSecurityPrefs
typedef xsltSecurityPrefsxsltSecurityPrefsPtr
typedef int(* xsltSecurityCheck )(xsltSecurityPrefsPtr sec, xsltTransformContextPtr ctxt, const char *value)

Enumeraciones

enum  xsltSecurityOption {
  XSLT_SECPREF_READ_FILE = 1, XSLT_SECPREF_WRITE_FILE, XSLT_SECPREF_CREATE_DIRECTORY, XSLT_SECPREF_READ_NETWORK,
  XSLT_SECPREF_WRITE_NETWORK
}

Funciones

XSLTPUBFUN
xsltSecurityPrefsPtr XSLTCALL 
xsltNewSecurityPrefs (void)
XSLTPUBFUN void XSLTCALL xsltFreeSecurityPrefs (xsltSecurityPrefsPtr sec)
XSLTPUBFUN int XSLTCALL xsltSetSecurityPrefs (xsltSecurityPrefsPtr sec, xsltSecurityOption option, xsltSecurityCheck func)
XSLTPUBFUN xsltSecurityCheck
XSLTCALL 
xsltGetSecurityPrefs (xsltSecurityPrefsPtr sec, xsltSecurityOption option)
XSLTPUBFUN void XSLTCALL xsltSetDefaultSecurityPrefs (xsltSecurityPrefsPtr sec)
XSLTPUBFUN
xsltSecurityPrefsPtr XSLTCALL 
xsltGetDefaultSecurityPrefs (void)
XSLTPUBFUN int XSLTCALL xsltSetCtxtSecurityPrefs (xsltSecurityPrefsPtr sec, xsltTransformContextPtr ctxt)
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 xsltCheckWrite (xsltSecurityPrefsPtr sec, xsltTransformContextPtr ctxt, const xmlChar *URL)
XSLTPUBFUN int XSLTCALL xsltCheckRead (xsltSecurityPrefsPtr sec, xsltTransformContextPtr ctxt, const xmlChar *URL)

Documentación de los 'typedefs'

xsltSecurityCheck:

User provided function to check the value of a string like a file path or an URL ...

xsltSecurityPref:

structure to indicate the preferences for security in the XSLT transformation.


Documentación de las enumeraciones

xsltSecurityOption:

the set of option that can be configured

Valores de enumeraciones:
XSLT_SECPREF_READ_FILE 
XSLT_SECPREF_WRITE_FILE 
XSLT_SECPREF_CREATE_DIRECTORY 
XSLT_SECPREF_READ_NETWORK 
XSLT_SECPREF_WRITE_NETWORK 

Documentación de las funciones

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

 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'