/** * xmlSecKeyReqFinalize: * @keyReq: the pointer to key requirements object. * * Cleans the key requirements object initialized with #xmlSecKeyReqInitialize * function. */ void xmlSecKeyReqFinalize(xmlSecKeyReqPtr keyReq) { xmlSecAssert(keyReq != NULL); xmlSecPtrListFinalize(&keyReq->keyUseWithList); memset(keyReq, 0, sizeof(xmlSecKeyReq)); }
static void xmlSecSimpleKeysStoreFinalize(xmlSecKeyStorePtr store) { xmlSecPtrListPtr list; xmlSecAssert(xmlSecKeyStoreCheckId(store, xmlSecSimpleKeysStoreId)); list = xmlSecSimpleKeysStoreGetList(store); xmlSecAssert(list != NULL); xmlSecPtrListFinalize(list); }
static void xmlSecTransformXPathFinalize(xmlSecTransformPtr transform) { xmlSecPtrListPtr dataList; xmlSecAssert(xmlSecTransformXPathCheckId(transform)); dataList = xmlSecXPathTransformGetDataList(transform); xmlSecAssert(xmlSecPtrListCheckId(dataList, xmlSecXPathDataListId)); xmlSecPtrListFinalize(dataList); }
/** * xmlSecKeysMngrDestroy: * @mngr: the pointer to keys manager. * * Destroys keys manager created with #xmlSecKeysMngrCreate function. */ void xmlSecKeysMngrDestroy(xmlSecKeysMngrPtr mngr) { xmlSecAssert(mngr != NULL); /* destroy keys store */ if(mngr->keysStore != NULL) { xmlSecKeyStoreDestroy(mngr->keysStore); } /* destroy other data stores */ xmlSecPtrListFinalize(&(mngr->storesList)); memset(mngr, 0, sizeof(xmlSecKeysMngr)); xmlFree(mngr); }
/** * xmlSecCryptoDLShutdown: * * Shutdowns dynamic loading engine. This is an internal function * and should not be called by application directly. * * Returns 0 on success or a negative value if an error occurs. */ int xmlSecCryptoDLShutdown(void) { int ret; xmlSecPtrListFinalize(&gXmlSecCryptoDLLibraries); ret = xmlsec_lt_dlexit (); if(ret != 0) { xmlSecErr_a_ignorar5(XMLSEC_ERRORS_HERE, NULL, "xmlsec_lt_dlexit", XMLSEC_ERRORS_R_IO_FAILED, XMLSEC_ERRORS_NO_MESSAGE); } return(0); }
PyObject *xmlsec_PtrListFinalize(PyObject *self, PyObject *args) { PyObject *list_obj; xmlSecPtrListPtr list; if (CheckArgs(args, "O:ptrListFinalize")) { if (!PyArg_ParseTuple(args, "O:ptrListFinalize", &list_obj)) return NULL; } else return NULL; list = xmlSecPtrListPtr_get(list_obj); xmlSecPtrListFinalize(list); Py_INCREF(Py_None); return (Py_None); }
/** * xmlSecPtrListDestroy: * @list: the pointer to list. * * Destroys @list created with #xmlSecPtrListCreate function. */ void xmlSecPtrListDestroy(xmlSecPtrListPtr list) { xmlSecAssert(xmlSecPtrListIsValid(list)); xmlSecPtrListFinalize(list); xmlFree(list); }
/** * xmlSecKeyDataIdsShutdown: * * Shuts down the keys data klasses. This function is called from the * #xmlSecShutdown function and the application should not call it directly. */ void xmlSecKeyDataIdsShutdown(void) { xmlSecPtrListFinalize(xmlSecKeyDataIdsGet()); }