summaryrefslogtreecommitdiff
path: root/source4/scripting/swig
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig')
-rw-r--r--source4/scripting/swig/dcerpc.i7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i
index fb4870d819..10c20d201f 100644
--- a/source4/scripting/swig/dcerpc.i
+++ b/source4/scripting/swig/dcerpc.i
@@ -134,7 +134,12 @@ struct security_descriptor *security_descriptor_from_python(PyObject *obj)
char *string_from_python(PyObject *obj)
{
- return NULL;
+ return PyString_AsString(obj);
+}
+
+PyObject *string_to_python(char *obj)
+{
+ return PyString_FromString(obj);
}
%}