From 35ff3d6950e6428c3a6c3d7b275313db2412aafa Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Wed, 1 Sep 2010 12:41:28 +0200 Subject: [Strings] add string constant for the internal XML attributes used in dumps Add string constants for signature method, signature type, private key (file path or content), private key password and certificate (file path or content). Add cast for xmlChar constant strings definition in python bindings, it assumed all constant strings were char*. --- bindings/python/lang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/python') diff --git a/bindings/python/lang.py b/bindings/python/lang.py index ab987266..8be92e39 100644 --- a/bindings/python/lang.py +++ b/bindings/python/lang.py @@ -692,7 +692,7 @@ register_constants(PyObject *d) if c[0] == 'i': print >> fd, ' obj = PyInt_FromLong(%s);' % c[1] elif c[0] == 's': - print >> fd, ' obj = PyString_FromString(%s);' % c[1] + print >> fd, ' obj = PyString_FromString((char*)%s);' % c[1] elif c[0] == 'b': print >> fd, '''\ #ifdef %s -- cgit