int main (int argc, char **argv) { Wrapper *w = globalInit(argc, argv); if (w) { printf("Wrapper successfully created\n"); globalCleanup(&w); } else printf("Couldn't create wrapper\n"); }
void KSI_CTX_free(KSI_CTX *ctx) { if (ctx != NULL) { /* Call cleanup methods. */ globalCleanup(ctx); KSI_List_free(ctx->cleanupFnList); KSI_free(ctx->errors); KSI_NetworkClient_free(ctx->netProvider); KSI_PKITruststore_free(ctx->pkiTruststore); KSI_PublicationsFile_free(ctx->publicationsFile); KSI_free(ctx->publicationCertEmail_DEPRECATED); freeCertConstraintsArray(ctx->certConstraints); KSI_Signature_free(ctx->lastFailedSignature); KSI_free(ctx); } }
~GoingImmersive() { globalCleanup(); } // destructor