Lines Matching defs:libctx
48 OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new();
52 if (libctx == NULL)
55 oldctx = OSSL_LIB_CTX_set0_default(libctx);
58 /* Check the libctx is set up as we expect */
60 if (tmpctx != libctx)
63 /* Set it back again to continue to use our own libctx */
64 oldctx = OSSL_LIB_CTX_set0_default(libctx);
67 /* Check the libctx is set up as we expect */
69 if (tmpctx != libctx)
74 OSSL_LIB_CTX_free(libctx);
347 OSSL_LIB_CTX *libctx = OSSL_LIB_CTX_new();
351 if (libctx == NULL) {
353 "test_ASYNC_start_job_ex() failed to create libctx\n");
357 globalctx = oldctx = OSSL_LIB_CTX_set0_default(libctx);
368 /* Reset the libctx temporarily to find out what it is*/
371 if (tmpctx != libctx) {
373 "test_ASYNC_start_job_ex() failed - unexpected libctx\n");
384 /* Reset the libctx and continue with the global default libctx */
386 if (tmpctx != libctx) {
388 "test_ASYNC_start_job_ex() failed - unexpected libctx\n");
400 /* Reset the libctx temporarily to find out what it is*/
401 tmpctx = OSSL_LIB_CTX_set0_default(libctx);
405 "test_ASYNC_start_job_ex() failed - global libctx check failed\n");
413 OSSL_LIB_CTX_free(libctx);