Home
last modified time | relevance | path

Searched refs:cctx (Results 1 – 25 of 102) sorted by relevance

12345

/openbsd/usr.bin/dig/lib/dns/
H A Dcompress.c36 REQUIRE(cctx != NULL); in dns_compress_init()
38 cctx->allowed = 0; in dns_compress_init()
39 cctx->edns = edns; in dns_compress_init()
41 cctx->table[i] = NULL; in dns_compress_init()
42 cctx->count = 0; in dns_compress_init()
54 cctx->table[i] = cctx->table[i]->next; in dns_compress_invalidate()
60 cctx->allowed = 0; in dns_compress_invalidate()
61 cctx->edns = -1; in dns_compress_invalidate()
99 if (cctx->count == 0) in dns_compress_findglobal()
178 node = &cctx->initialnodes[cctx->count]; in dns_compress_add()
[all …]
H A Drdataset.c196 dns_compress_t *cctx, isc_buffer_t *target, unsigned int *countp) in towiresorted() argument
216 REQUIRE(cctx != NULL); in towiresorted()
296 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towiresorted()
297 result = dns_name_towire(owner_name, cctx, target); in towiresorted()
329 result = dns_rdata_towire(&rdata, cctx, target); in towiresorted()
360 dns_compress_rollback(cctx, (uint16_t)savedbuffer.used); in towiresorted()
375 dns_compress_t *cctx, in dns_rdataset_towiresorted() argument
379 return (towiresorted(rdataset, owner_name, cctx, target, countp)); in dns_rdataset_towiresorted()
385 dns_compress_t *cctx, in dns_rdataset_towire() argument
389 return (towiresorted(rdataset, owner_name, cctx, target, countp)); in dns_rdataset_towire()
/openbsd/usr.bin/dig/lib/dns/include/dns/
H A Dcompress.h71 dns_compress_init(dns_compress_t *cctx, int edns);
86 dns_compress_invalidate(dns_compress_t *cctx);
96 dns_compress_setmethods(dns_compress_t *cctx, unsigned int allowed);
106 dns_compress_getmethods(dns_compress_t *cctx);
119 dns_compress_findglobal(dns_compress_t *cctx, const dns_name_t *name,
138 dns_compress_add(dns_compress_t *cctx, const dns_name_t *name,
155 dns_compress_rollback(dns_compress_t *cctx, uint16_t offset);
H A Drdataset.h254 dns_compress_t *cctx,
292 dns_compress_t *cctx,
/openbsd/usr.bin/ssh/
H A Dmux.c330 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_new_session()
350 free(cctx); in mux_master_process_new_session()
363 cctx->env = xreallocarray(cctx->env, env_len + 2, in mux_master_process_new_session()
376 cctx->want_tty, cctx->want_x_fwd, cctx->want_agent_fwd, in mux_master_process_new_session()
377 cctx->want_subsys, cctx->term, cmd, env_len); in mux_master_process_new_session()
397 free(cctx); in mux_master_process_new_session()
423 free(cctx); in mux_master_process_new_session()
1033 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_stdio_fwd()
1086 free(cctx); in mux_stdio_confirm()
1395 cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env); in mux_session_confirm()
[all …]
H A Dchannels.c4535 for (; cctx->ai; cctx->ai = cctx->ai->ai_next) { in connect_next()
4545 if (getnameinfo(cctx->ai->ai_addr, cctx->ai->ai_addrlen, in connect_next()
4557 if ((sock = socket(cctx->ai->ai_family, cctx->ai->ai_socktype, in connect_next()
4580 cctx->ai = cctx->ai->ai_next; in connect_next()
4589 free(cctx->host); in channel_connect_ctx_free()
4590 if (cctx->aitop) { in channel_connect_ctx_free()
4596 memset(cctx, 0, sizeof(*cctx)); in channel_connect_ctx_free()
4657 cctx->ai = cctx->aitop; in connect_to_helper()
4677 memset(&cctx, 0, sizeof(cctx)); in connect_to()
4791 memset(&cctx, 0, sizeof(cctx)); in channel_connect_to_port()
[all …]
/openbsd/lib/libcrypto/evp/
H A De_aes.c343 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
347 cctx->key_set = 1; in aesni_ccm_init_key()
351 cctx->iv_set = 1; in aesni_ccm_init_key()
1996 cctx->L = 8; in aes_ccm_ctrl()
1997 cctx->M = 12; in aes_ccm_ctrl()
2012 cctx->L = arg; in aes_ccm_ctrl()
2024 cctx->M = arg; in aes_ccm_ctrl()
2043 if (cctx->ccm.key != &cctx->ks) in aes_ccm_ctrl()
2067 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key()
2075 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key()
[all …]
/openbsd/regress/lib/libcrypto/sm2/
H A Dsm2evptest.c114 EVP_PKEY_CTX *cctx = NULL; in test_EVP_SM2() local
209 cctx = EVP_PKEY_CTX_new(pkey, NULL); in test_EVP_SM2()
210 CHECK_GOTO(cctx != NULL); in test_EVP_SM2()
212 CHECK_GOTO(EVP_PKEY_encrypt_init(cctx)); in test_EVP_SM2()
214 CHECK_GOTO(EVP_PKEY_encrypt(cctx, ciphertext, &ctext_len, kMsg, sizeof(kMsg))); in test_EVP_SM2()
216 CHECK_GOTO(EVP_PKEY_decrypt_init(cctx)); in test_EVP_SM2()
218 CHECK_GOTO(EVP_PKEY_decrypt(cctx, plaintext, &ptext_len, ciphertext, ctext_len)); in test_EVP_SM2()
231 EVP_PKEY_CTX_free(cctx); in test_EVP_SM2()
/openbsd/lib/libcrypto/pem/
H A Dpvkfmt.c735 EVP_CIPHER_CTX *cctx = NULL; in do_PVK_body() local
737 if ((cctx = EVP_CIPHER_CTX_new()) == NULL) { in do_PVK_body()
775 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body()
783 if (!EVP_DecryptInit_ex(cctx, EVP_rc4(), NULL, keybuf, in do_PVK_body()
787 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body()
789 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, in do_PVK_body()
805 EVP_CIPHER_CTX_free(cctx); in do_PVK_body()
854 EVP_CIPHER_CTX *cctx = NULL; in i2b_PVK() local
856 if ((cctx = EVP_CIPHER_CTX_new()) == NULL) { in i2b_PVK()
913 EVP_CIPHER_CTX_free(cctx); in i2b_PVK()
[all …]
/openbsd/lib/libtls/
H A Dtls_server.c406 tls_accept_socket(struct tls *ctx, struct tls **cctx, int s) in tls_accept_socket() argument
408 return (tls_accept_fds(ctx, cctx, s, s)); in tls_accept_socket()
412 tls_accept_fds(struct tls *ctx, struct tls **cctx, int fd_read, int fd_write) in tls_accept_fds() argument
426 *cctx = conn_ctx; in tls_accept_fds()
431 *cctx = NULL; in tls_accept_fds()
437 tls_accept_cbs(struct tls *ctx, struct tls **cctx, in tls_accept_cbs() argument
448 *cctx = conn_ctx; in tls_accept_cbs()
453 *cctx = NULL; in tls_accept_cbs()
/openbsd/usr.bin/dig/lib/dns/rdata/generic/
H A Dminfo_14.c87 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_minfo()
97 RETERR(dns_name_towire(&rmail, cctx, target)); in towire_minfo()
102 return (dns_name_towire(&rmail, cctx, target)); in towire_minfo()
H A Drp_17.c86 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_rp()
95 RETERR(dns_name_towire(&rmail, cctx, target)); in towire_rp()
100 return (dns_name_towire(&rmail, cctx, target)); in towire_rp()
H A Dtalink_58.c82 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_talink()
91 RETERR(dns_name_towire(&prev, cctx, target)); in towire_talink()
95 return(dns_name_towire(&next, cctx, target)); in towire_talink()
H A Dmf_4.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mf()
75 return (dns_name_towire(&name, cctx, target)); in towire_mf()
H A Dptr_12.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_ptr()
75 return (dns_name_towire(&name, cctx, target)); in towire_ptr()
H A Ddname_39.c71 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_dname()
76 return (dns_name_towire(&name, cctx, target)); in towire_dname()
H A Dmb_7.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mb()
75 return (dns_name_towire(&name, cctx, target)); in towire_mb()
H A Dmd_3.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_md()
75 return (dns_name_towire(&name, cctx, target)); in towire_md()
H A Dmg_8.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mg()
75 return (dns_name_towire(&name, cctx, target)); in towire_mg()
H A Dmr_9.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mr()
75 return (dns_name_towire(&name, cctx, target)); in towire_mr()
H A Dnsec_47.c86 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_nsec()
91 RETERR(dns_name_towire(&name, cctx, target)); in towire_nsec()
H A Dmx_15.c85 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mx()
94 return (dns_name_towire(&name, cctx, target)); in towire_mx()
/openbsd/usr.bin/dig/lib/dns/rdata/in_1/
H A Dpx_26.c114 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_in_px()
127 RETERR(dns_name_towire(&name, cctx, target)); in towire_in_px()
135 return (dns_name_towire(&name, cctx, target)); in towire_in_px()
H A Dnsap-ptr_23.c74 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_in_nsap_ptr()
79 return (dns_name_towire(&name, cctx, target)); in towire_in_nsap_ptr()
/openbsd/lib/libssl/
H A Dt1_lib.c988 EVP_CIPHER_CTX *cctx = NULL; in tls_decrypt_ticket() local
1002 if ((cctx = EVP_CIPHER_CTX_new()) == NULL) in tls_decrypt_ticket()
1021 (unsigned char *)CBS_data(ticket), cctx, hctx, 0)) < 0) in tls_decrypt_ticket()
1030 if ((iv_len = EVP_CIPHER_CTX_iv_length(cctx)) < 0) in tls_decrypt_ticket()
1048 if (!EVP_DecryptInit_ex(cctx, EVP_aes_128_cbc(), NULL, in tls_decrypt_ticket()
1095 if (EVP_DecryptUpdate(cctx, sdec, &slen, CBS_data(&ticket_encdata), in tls_decrypt_ticket()
1098 if (EVP_DecryptFinal_ex(cctx, sdec + slen, &hlen) <= 0) in tls_decrypt_ticket()
1129 EVP_CIPHER_CTX_free(cctx); in tls_decrypt_ticket()

12345