/openbsd/usr.bin/dig/lib/dns/ |
H A D | compress.c | 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() 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 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/usr.bin/dig/lib/dns/include/dns/ |
H A 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);
|
H A D | rdataset.h | 254 dns_compress_t *cctx, 292 dns_compress_t *cctx,
|
/openbsd/usr.bin/ssh/ |
H A D | mux.c | 329 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_new_session() 349 free(cctx); in mux_master_process_new_session() 362 cctx->env = xreallocarray(cctx->env, env_len + 2, in mux_master_process_new_session() 375 cctx->want_tty, cctx->want_x_fwd, cctx->want_agent_fwd, in mux_master_process_new_session() 376 cctx->want_subsys, cctx->term, cmd, env_len); in mux_master_process_new_session() 396 free(cctx); in mux_master_process_new_session() 422 free(cctx); in mux_master_process_new_session() 1032 cctx = xcalloc(1, sizeof(*cctx)); in mux_master_process_stdio_fwd() 1085 free(cctx); in mux_stdio_confirm() 1394 cctx->term, &cctx->tio, c->rfd, cctx->cmd, cctx->env); in mux_session_confirm() [all …]
|
H A D | channels.c | 4539 for (; cctx->ai; cctx->ai = cctx->ai->ai_next) { in connect_next() 4549 if (getnameinfo(cctx->ai->ai_addr, cctx->ai->ai_addrlen, in connect_next() 4561 if ((sock = socket(cctx->ai->ai_family, cctx->ai->ai_socktype, in connect_next() 4584 cctx->ai = cctx->ai->ai_next; in connect_next() 4593 free(cctx->host); in channel_connect_ctx_free() 4594 if (cctx->aitop) { in channel_connect_ctx_free() 4600 memset(cctx, 0, sizeof(*cctx)); in channel_connect_ctx_free() 4661 cctx->ai = cctx->aitop; in connect_to_helper() 4681 memset(&cctx, 0, sizeof(cctx)); in connect_to() 4795 memset(&cctx, 0, sizeof(cctx)); in channel_connect_to_port() [all …]
|
/openbsd/lib/libcrypto/evp/ |
H A D | e_aes.c | 345 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aesni_ccm_init_key() 349 cctx->key_set = 1; in aesni_ccm_init_key() 353 cctx->iv_set = 1; in aesni_ccm_init_key() 1998 cctx->L = 8; in aes_ccm_ctrl() 1999 cctx->M = 12; in aes_ccm_ctrl() 2014 cctx->L = arg; in aes_ccm_ctrl() 2026 cctx->M = arg; in aes_ccm_ctrl() 2045 if (cctx->ccm.key != &cctx->ks) in aes_ccm_ctrl() 2069 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key() 2077 CRYPTO_ccm128_init(&cctx->ccm, cctx->M, cctx->L, in aes_ccm_init_key() [all …]
|
/openbsd/regress/lib/libcrypto/sm2/ |
H A 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/lib/libcrypto/pem/ |
H A 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() 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 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/usr.bin/dig/lib/dns/rdata/generic/ |
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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()
|
H A 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/usr.bin/dig/lib/dns/rdata/in_1/ |
H A 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()
|
H A 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/lib/libssl/ |
H A 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()
|