Home
last modified time | relevance | path

Searched refs:nctx (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/krb5/src/lib/krb5/krb/
H A Dcopy_ctx.c60 krb5_context nctx; in krb5_copy_context() local
66 nctx = malloc(sizeof(*nctx)); in krb5_copy_context()
67 if (nctx == NULL) in krb5_copy_context()
70 *nctx = *ctx; in krb5_copy_context()
72 nctx->tgs_etypes = NULL; in krb5_copy_context()
73 nctx->default_realm = NULL; in krb5_copy_context()
74 nctx->profile = NULL; in krb5_copy_context()
75 nctx->dal_handle = NULL; in krb5_copy_context()
76 nctx->prompt_types = NULL; in krb5_copy_context()
77 nctx->preauth_context = NULL; in krb5_copy_context()
[all …]
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_swapcontext.c41 ucontext_t nctx; variable
64 ATF_REQUIRE(swapcontext(&nctx, &octx)); in swapfunc()
79 ATF_REQUIRE(getcontext(&nctx) == 0); in mainfunc()
81 nctx.uc_stack.ss_sp = stack; in mainfunc()
82 nctx.uc_stack.ss_size = sizeof(stack); in mainfunc()
87 ATF_REQUIRE(nctx.uc_flags & _UC_TLSBASE); in mainfunc()
89 nctx.uc_flags &= ~_UC_TLSBASE; in mainfunc()
92 makecontext(&nctx, swapfunc, 0); in mainfunc()
97 ATF_REQUIRE(swapcontext(&octx, &nctx) == 0); in mainfunc()
/freebsd/contrib/netbsd-tests/lib/libpthread/
H A Dt_swapcontext.c46 ucontext_t nctx; variable
66 ATF_REQUIRE(swapcontext(&nctx, &octx)); in swapfunc()
76 nctx.uc_stack.ss_sp = stack; in threadfunc()
77 nctx.uc_stack.ss_size = sizeof(stack); in threadfunc()
79 makecontext(&nctx, (void *)*swapfunc, 0); in threadfunc()
83 ATF_REQUIRE_MSG(swapcontext(&octx, &nctx) != -1, "swapcontext failed: %s", in threadfunc()
115 ATF_REQUIRE_MSG(getcontext(&nctx) != -1, "getcontext failed: %s", in ATF_TC_BODY()
/freebsd/crypto/openssl/crypto/async/
H A Dasync.c37 async_ctx *nctx; in async_ctx_new() local
42 nctx = OPENSSL_malloc(sizeof(*nctx)); in async_ctx_new()
43 if (nctx == NULL) in async_ctx_new()
46 async_fibre_init_dispatcher(&nctx->dispatcher); in async_ctx_new()
47 nctx->currjob = NULL; in async_ctx_new()
48 nctx->blocked = 0; in async_ctx_new()
49 if (!CRYPTO_THREAD_set_local(&ctxkey, nctx)) in async_ctx_new()
52 return nctx; in async_ctx_new()
54 OPENSSL_free(nctx); in async_ctx_new()
/freebsd/usr.sbin/pkg/
H A Dpkg.c105 struct pkgsign_ctx *nctx; in pkgsign_new() local
125 ctx_size = sizeof(*nctx); in pkgsign_new()
126 assert(ctx_size >= sizeof(*nctx)); in pkgsign_new()
128 nctx = calloc(1, ctx_size); in pkgsign_new()
129 if (nctx == NULL) in pkgsign_new()
131 nctx->impl = impl; in pkgsign_new()
135 ret = (*ops->pkgsign_new)(name, nctx); in pkgsign_new()
138 free(nctx); in pkgsign_new()
142 *ctx = nctx; in pkgsign_new()
/freebsd/crypto/openssl/test/
H A Dbntest.c2828 BN_CTX *nctx = NULL; in test_ctx_consttime_flag() local
2833 if (!TEST_ptr(nctx = BN_CTX_new()) in test_ctx_consttime_flag()
2838 BN_CTX *c = i == 0 ? nctx : sctx; in test_ctx_consttime_flag()
2846 BN_CTX_free(nctx); in test_ctx_consttime_flag()