| /openbsd/src/usr.bin/dig/lib/dns/ |
| D | compress.c | 33 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 …]
|
| D | rdataset.c | 196 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/ |
| D | compress.h | 71 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);
|
| D | rdataset.h | 254 dns_compress_t *cctx, 292 dns_compress_t *cctx,
|
| /openbsd/src/usr.bin/ssh/ |
| D | mux.c | 323 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 …]
|
| D | channels.c | 4532 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/ |
| D | e_aes.c | 339 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/ |
| D | sm2evptest.c | 114 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/ |
| D | pvkfmt.c | 735 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/ |
| D | tls_server.c | 406 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/ |
| D | rp_17.c | 86 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()
|
| D | talink_58.c | 82 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()
|
| D | minfo_14.c | 87 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()
|
| D | mf_4.c | 69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mf() 75 return (dns_name_towire(&name, cctx, target)); in towire_mf()
|
| D | dname_39.c | 71 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_dname() 76 return (dns_name_towire(&name, cctx, target)); in towire_dname()
|
| D | mr_9.c | 69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mr() 75 return (dns_name_towire(&name, cctx, target)); in towire_mr()
|
| D | ptr_12.c | 69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_ptr() 75 return (dns_name_towire(&name, cctx, target)); in towire_ptr()
|
| D | mg_8.c | 69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mg() 75 return (dns_name_towire(&name, cctx, target)); in towire_mg()
|
| D | md_3.c | 69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_md() 75 return (dns_name_towire(&name, cctx, target)); in towire_md()
|
| D | mb_7.c | 69 dns_compress_setmethods(cctx, DNS_COMPRESS_GLOBAL14); in towire_mb() 75 return (dns_name_towire(&name, cctx, target)); in towire_mb()
|
| D | nsec_47.c | 86 dns_compress_setmethods(cctx, DNS_COMPRESS_NONE); in towire_nsec() 91 RETERR(dns_name_towire(&name, cctx, target)); in towire_nsec()
|
| D | mx_15.c | 85 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/ |
| D | px_26.c | 114 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()
|
| D | nsap-ptr_23.c | 74 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/ |
| D | t1_lib.c | 973 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()
|