/** * xmlSecEncCtxFinalize: * @encCtx: the pointer to <enc:EncryptedData/> processing context. * * Cleans up @encCtx object. */ void xmlSecEncCtxFinalize(xmlSecEncCtxPtr encCtx) { xmlSecAssert(encCtx != NULL); xmlSecEncCtxReset(encCtx); xmlSecTransformCtxFinalize(&(encCtx->transformCtx)); xmlSecKeyInfoCtxFinalize(&(encCtx->keyInfoReadCtx)); xmlSecKeyInfoCtxFinalize(&(encCtx->keyInfoWriteCtx)); memset(encCtx, 0, sizeof(xmlSecEncCtx)); }
PyObject *xmlsec_EncCtxReset(PyObject *self, PyObject *args) { PyObject *encCtx_obj; xmlSecEncCtxPtr encCtx; if (CheckArgs(args, "O:encCtxReset")) { if (!PyArg_ParseTuple(args, "O:encCtxReset", &encCtx_obj)) return NULL; } else return NULL; encCtx = xmlSecEncCtxPtr_get(encCtx_obj); xmlSecEncCtxReset(encCtx); Py_INCREF(Py_None); return (Py_None); }