Home
last modified time | relevance | path

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

12345

/openbsd/src/usr.bin/dig/lib/dns/
Dcompress.c33 dns_compress_init(dns_compress_t *cctx, int edns) { in dns_compress_init() argument
36 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()
47 dns_compress_invalidate(dns_compress_t *cctx) { in dns_compress_invalidate() argument
52 while (cctx->table[i] != NULL) { in dns_compress_invalidate()
53 node = cctx->table[i]; in dns_compress_invalidate()
54 cctx->table[i] = cctx->table[i]->next; in dns_compress_invalidate()
[all …]
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/src/usr.bin/dig/lib/dns/include/dns/
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);
Drdataset.h254 dns_compress_t *cctx,
292 dns_compress_t *cctx,
/openbsd/src/usr.bin/ssh/
Dmux.c323 struct mux_session_confirm_ctx *cctx; in mux_master_process_new_session() local
329 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_new_session()
330 cctx->term = NULL; in mux_master_process_new_session()
331 cctx->rid = rid; in mux_master_process_new_session()
333 cctx->env = NULL; in mux_master_process_new_session()
336 (r = sshbuf_get_u32(m, &cctx->want_tty)) != 0 || in mux_master_process_new_session()
337 (r = sshbuf_get_u32(m, &cctx->want_x_fwd)) != 0 || in mux_master_process_new_session()
338 (r = sshbuf_get_u32(m, &cctx->want_agent_fwd)) != 0 || in mux_master_process_new_session()
339 (r = sshbuf_get_u32(m, &cctx->want_subsys)) != 0 || in mux_master_process_new_session()
341 (r = sshbuf_get_cstring(m, &cctx->term, NULL)) != 0 || in mux_master_process_new_session()
[all …]
Dchannels.c4532 connect_next(struct channel_connect *cctx) in connect_next() argument
4539 for (; cctx->ai; cctx->ai = cctx->ai->ai_next) { in connect_next()
4540 switch (cctx->ai->ai_family) { in connect_next()
4543 sunaddr = (struct sockaddr_un *)cctx->ai->ai_addr; in connect_next()
4549 if (getnameinfo(cctx->ai->ai_addr, cctx->ai->ai_addrlen, in connect_next()
4560 cctx->host, ntop, strport); in connect_next()
4561 if ((sock = socket(cctx->ai->ai_family, cctx->ai->ai_socktype, in connect_next()
4562 cctx->ai->ai_protocol)) == -1) { in connect_next()
4563 if (cctx->ai->ai_next == NULL) in connect_next()
4571 if (connect(sock, cctx->ai->ai_addr, in connect_next()
[all …]
/openbsd/src/lib/libcrypto/evp/
De_aes.c339 EVP_AES_CCM_CTX *cctx = ctx->cipher_data; in aesni_ccm_init_key() local
344 aesni_set_encrypt_key(key, ctx->key_len * 8, &cctx->ks); in aesni_ccm_init_key()
345 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key()
346 &cctx->ks, (block128_f)aesni_encrypt); in aesni_ccm_init_key()
347 cctx->str = enc ? (ccm128_f)aesni_ccm64_encrypt_blocks : in aesni_ccm_init_key()
349 cctx->key_set = 1; in aesni_ccm_init_key()
352 memcpy(ctx->iv, iv, 15 - cctx->L); in aesni_ccm_init_key()
353 cctx->iv_set = 1; in aesni_ccm_init_key()
1992 EVP_AES_CCM_CTX *cctx = c->cipher_data; in aes_ccm_ctrl() local
1996 cctx->key_set = 0; in aes_ccm_ctrl()
[all …]
/openbsd/src/regress/lib/libcrypto/sm2/
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/src/lib/libcrypto/pem/
Dpvkfmt.c735 EVP_CIPHER_CTX *cctx = NULL; in do_PVK_body() local
737 if ((cctx = EVP_CIPHER_CTX_new()) == NULL) { in do_PVK_body()
773 if (!EVP_DecryptInit_ex(cctx, EVP_rc4(), NULL, keybuf, NULL)) in do_PVK_body()
775 if (!EVP_DecryptUpdate(cctx, q, &enctmplen, p, inlen)) in do_PVK_body()
777 if (!EVP_DecryptFinal_ex(cctx, q + enctmplen, &enctmplen)) 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
[all …]
/openbsd/src/lib/libtls/
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/src/usr.bin/dig/lib/dns/rdata/generic/
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()
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()
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()
Dmf_4.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mf()
75 return (dns_name_towire(&name, cctx, target)); in towire_mf()
Ddname_39.c71 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_dname()
76 return (dns_name_towire(&name, cctx, target)); in towire_dname()
Dmr_9.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mr()
75 return (dns_name_towire(&name, cctx, target)); in towire_mr()
Dptr_12.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_ptr()
75 return (dns_name_towire(&name, cctx, target)); in towire_ptr()
Dmg_8.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mg()
75 return (dns_name_towire(&name, cctx, target)); in towire_mg()
Dmd_3.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_md()
75 return (dns_name_towire(&name, cctx, target)); in towire_md()
Dmb_7.c69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mb()
75 return (dns_name_towire(&name, cctx, target)); in towire_mb()
Dnsec_47.c86 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_nsec()
91 RETERR(dns_name_towire(&name, cctx, target)); in towire_nsec()
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/src/usr.bin/dig/lib/dns/rdata/in_1/
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()
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/src/lib/libssl/
Dt1_lib.c973 EVP_CIPHER_CTX *cctx = NULL; in tls_decrypt_ticket() local
987 if ((cctx = EVP_CIPHER_CTX_new()) == NULL) in tls_decrypt_ticket()
1006 (unsigned char *)CBS_data(ticket), cctx, hctx, 0)) < 0) in tls_decrypt_ticket()
1015 if ((iv_len = EVP_CIPHER_CTX_iv_length(cctx)) < 0) in tls_decrypt_ticket()
1033 if (!EVP_DecryptInit_ex(cctx, EVP_aes_128_cbc(), NULL, in tls_decrypt_ticket()
1080 if (EVP_DecryptUpdate(cctx, sdec, &slen, CBS_data(&ticket_encdata), in tls_decrypt_ticket()
1083 if (EVP_DecryptFinal_ex(cctx, sdec + slen, &hlen) <= 0) in tls_decrypt_ticket()
1114 EVP_CIPHER_CTX_free(cctx); in tls_decrypt_ticket()

12345