@@ -113,6 +113,7 @@ static PyObject* PyXmlSec_EncryptionContextReset(PyObject* self, PyObject* args,
113
113
xmlSecEncCtxPtr ctx = ((PyXmlSec_EncryptionContext * )self )-> handle ;
114
114
Py_BEGIN_ALLOW_THREADS ;
115
115
xmlSecEncCtxReset (ctx );
116
+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
116
117
Py_END_ALLOW_THREADS ;
117
118
PYXMLSEC_DEBUGF ("%p: reset context - ok" , self );
118
119
Py_RETURN_NONE ;
@@ -141,6 +142,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptBinary(PyObject* self, PyObjec
141
142
int rv ;
142
143
Py_BEGIN_ALLOW_THREADS ;
143
144
rv = xmlSecEncCtxBinaryEncrypt (ctx , template -> _c_node , (const xmlSecByte * )data , (xmlSecSize )data_size );
145
+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
144
146
Py_END_ALLOW_THREADS ;
145
147
146
148
if (rv < 0 ) {
@@ -226,6 +228,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptXml(PyObject* self, PyObject*
226
228
xnew_node = NULL ;
227
229
}
228
230
}
231
+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
229
232
Py_END_ALLOW_THREADS ;
230
233
231
234
PyXmlSec_ClearReplacedNodes (ctx , node -> _doc );
@@ -268,6 +271,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptUri(PyObject* self, PyObject*
268
271
int rv ;
269
272
Py_BEGIN_ALLOW_THREADS ;
270
273
rv = xmlSecEncCtxUriEncrypt (ctx , template -> _c_node , (const xmlSecByte * )uri );
274
+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
271
275
Py_END_ALLOW_THREADS ;
272
276
273
277
if (rv < 0 ) {
@@ -329,6 +333,7 @@ static PyObject* PyXmlSec_EncryptionContextDecrypt(PyObject* self, PyObject* arg
329
333
ctx -> mode = xmlSecCheckNodeName (node -> _c_node , xmlSecNodeEncryptedKey , xmlSecEncNs ) ? xmlEncCtxModeEncryptedKey : xmlEncCtxModeEncryptedData ;
330
334
PYXMLSEC_DEBUGF ("mode: %d" , ctx -> mode );
331
335
rv = xmlSecEncCtxDecrypt (ctx , node -> _c_node );
336
+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
332
337
Py_END_ALLOW_THREADS ;
333
338
334
339
PyXmlSec_ClearReplacedNodes (ctx , node -> _doc );
0 commit comments