| Index: third_party/libxslt/libxslt/security.c
|
| ===================================================================
|
| --- third_party/libxslt/libxslt/security.c (revision 39981)
|
| +++ third_party/libxslt/libxslt/security.c (working copy)
|
| @@ -58,6 +58,7 @@
|
| #include "xslt.h"
|
| #include "xsltInternals.h"
|
| #include "xsltutils.h"
|
| +#include "extensions.h"
|
| #include "security.h"
|
|
|
|
|
| @@ -88,6 +89,8 @@
|
| xsltNewSecurityPrefs(void) {
|
| xsltSecurityPrefsPtr ret;
|
|
|
| + xsltInitGlobals();
|
| +
|
| ret = (xsltSecurityPrefsPtr) xmlMalloc(sizeof(xsltSecurityPrefs));
|
| if (ret == NULL) {
|
| xsltTransformError(NULL, NULL, NULL,
|
| @@ -124,6 +127,7 @@
|
| int
|
| xsltSetSecurityPrefs(xsltSecurityPrefsPtr sec, xsltSecurityOption option,
|
| xsltSecurityCheck func) {
|
| + xsltInitGlobals();
|
| if (sec == NULL)
|
| return(-1);
|
| switch (option) {
|
| @@ -177,6 +181,7 @@
|
| */
|
| void
|
| xsltSetDefaultSecurityPrefs(xsltSecurityPrefsPtr sec) {
|
| +
|
| xsltDefaultSecurityPrefs = sec;
|
| }
|
|
|
|
|