@@ -113,6 +113,7 @@ static PyObject* PyXmlSec_EncryptionContextReset(PyObject* self, PyObject* args,
113113 xmlSecEncCtxPtr ctx = ((PyXmlSec_EncryptionContext * )self )-> handle ;
114114 Py_BEGIN_ALLOW_THREADS ;
115115 xmlSecEncCtxReset (ctx );
116+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
116117 Py_END_ALLOW_THREADS ;
117118 PYXMLSEC_DEBUGF ("%p: reset context - ok" , self );
118119 Py_RETURN_NONE ;
@@ -141,6 +142,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptBinary(PyObject* self, PyObjec
141142 int rv ;
142143 Py_BEGIN_ALLOW_THREADS ;
143144 rv = xmlSecEncCtxBinaryEncrypt (ctx , template -> _c_node , (const xmlSecByte * )data , (xmlSecSize )data_size );
145+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
144146 Py_END_ALLOW_THREADS ;
145147
146148 if (rv < 0 ) {
@@ -226,6 +228,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptXml(PyObject* self, PyObject*
226228 xnew_node = NULL ;
227229 }
228230 }
231+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
229232 Py_END_ALLOW_THREADS ;
230233
231234 PyXmlSec_ClearReplacedNodes (ctx , node -> _doc );
@@ -268,6 +271,7 @@ static PyObject* PyXmlSec_EncryptionContextEncryptUri(PyObject* self, PyObject*
268271 int rv ;
269272 Py_BEGIN_ALLOW_THREADS ;
270273 rv = xmlSecEncCtxUriEncrypt (ctx , template -> _c_node , (const xmlSecByte * )uri );
274+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
271275 Py_END_ALLOW_THREADS ;
272276
273277 if (rv < 0 ) {
@@ -329,6 +333,7 @@ static PyObject* PyXmlSec_EncryptionContextDecrypt(PyObject* self, PyObject* arg
329333 ctx -> mode = xmlSecCheckNodeName (node -> _c_node , xmlSecNodeEncryptedKey , xmlSecEncNs ) ? xmlEncCtxModeEncryptedKey : xmlEncCtxModeEncryptedData ;
330334 PYXMLSEC_DEBUGF ("mode: %d" , ctx -> mode );
331335 rv = xmlSecEncCtxDecrypt (ctx , node -> _c_node );
336+ PYXMLSEC_DUMP (xmlSecEncCtxDebugDump , ctx );
332337 Py_END_ALLOW_THREADS ;
333338
334339 PyXmlSec_ClearReplacedNodes (ctx , node -> _doc );
0 commit comments