/** * xmlSecEncCtxDestroy: * @encCtx: the pointer to <enc:EncryptedData/> processing context. * * Destroy context object created with #xmlSecEncCtxCreate function. */ void xmlSecEncCtxDestroy(xmlSecEncCtxPtr encCtx) { xmlSecAssert(encCtx != NULL); xmlSecEncCtxFinalize(encCtx); xmlFree(encCtx); }
PyObject *xmlsec_EncCtxFinalize(PyObject *self, PyObject *args) { PyObject *encCtx_obj; xmlSecEncCtxPtr encCtx; if (CheckArgs(args, "O:encCtxFinalize")) { if (!PyArg_ParseTuple(args, "O:encCtxFinalize", &encCtx_obj)) return NULL; } else return NULL; encCtx = xmlSecEncCtxPtr_get(encCtx_obj); xmlSecEncCtxFinalize(encCtx); Py_INCREF(Py_None); return (Py_None); }