/titanic_41/usr/src/uts/common/syscall/ |
H A D | sidsys.c | 47 door_handle_t dh; in allocids() local 51 dh = idmap_get_door(zone); in allocids() 53 if (dh == NULL) in allocids() 56 if ((err = door_ki_info(dh, &di)) != 0) { in allocids() 57 door_ki_rele(dh); in allocids() 61 door_ki_rele(dh); in allocids() 88 door_handle_t dh; in idmap_reg() local 95 dh = door_ki_lookup(did); in idmap_reg() 97 if (dh == NULL) in idmap_reg() 100 if ((err = idmap_reg_dh(crgetzone(cr), dh)) != 0) in idmap_reg() [all …]
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | dh.c | 172 dh_pub_is_valid(DH *dh, BIGNUM *dh_pub) in dh_pub_is_valid() argument 185 debug("bits set: %d/%d", bits_set, BN_num_bits(dh->p)); in dh_pub_is_valid() 188 if (bits_set > 1 && (BN_cmp(dh_pub, dh->p) == -1)) in dh_pub_is_valid() 190 log("invalid public DH value (%d/%d)", bits_set, BN_num_bits(dh->p)); in dh_pub_is_valid() 195 dh_gen_key(DH *dh, int need) in dh_gen_key() argument 199 if (dh->p == NULL) in dh_gen_key() 201 if (2*need >= BN_num_bits(dh->p)) in dh_gen_key() 203 BN_num_bits(dh->p), 2*need); in dh_gen_key() 205 if (dh->priv_key != NULL) in dh_gen_key() 206 BN_clear_free(dh->priv_key); in dh_gen_key() [all …]
|
H A D | kexgexs.c | 49 DH *dh; in kexgex_server() local 87 dh = choose_dh(min, nbits, max); in kexgex_server() 88 if (dh == NULL) in kexgex_server() 93 packet_put_bignum2(dh->p); in kexgex_server() 94 packet_put_bignum2(dh->g); in kexgex_server() 101 dh_gen_key(dh, kex->we_need * 8); in kexgex_server() 120 DHparams_print_fp(stderr, dh); in kexgex_server() 122 BN_print_fp(stderr, dh->pub_key); in kexgex_server() 125 if (!dh_pub_is_valid(dh, dh_client_pub)) in kexgex_server() 128 klen = DH_size(dh); in kexgex_server() [all …]
|
H A D | kexdhc.c | 47 DH *dh; in kexdh_client() local 54 dh = dh_new_group1(); in kexdh_client() 55 dh_gen_key(dh, kex->we_need * 8); in kexdh_client() 57 packet_put_bignum2(dh->pub_key); in kexdh_client() 62 DHparams_print_fp(stderr, dh); in kexdh_client() 64 BN_print_fp(stderr, dh->pub_key); in kexdh_client() 99 if (!dh_pub_is_valid(dh, dh_server_pub)) in kexdh_client() 102 klen = DH_size(dh); in kexdh_client() 104 kout = DH_compute_key(kbuf, dh_server_pub, dh); in kexdh_client() 121 dh->pub_key, in kexdh_client() [all …]
|
H A D | kexdhs.c | 47 DH *dh; in kexdh_server() local 54 dh = dh_new_group1(); in kexdh_server() 55 dh_gen_key(dh, kex->we_need * 8); in kexdh_server() 80 DHparams_print_fp(stderr, dh); in kexdh_server() 82 BN_print_fp(stderr, dh->pub_key); in kexdh_server() 85 if (!dh_pub_is_valid(dh, dh_client_pub)) in kexdh_server() 88 klen = DH_size(dh); in kexdh_server() 90 kout = DH_compute_key(kbuf, dh_client_pub, dh); in kexdh_server() 110 dh->pub_key, in kexdh_server() 132 packet_put_bignum2(dh->pub_key); /* f */ in kexdh_server() [all …]
|
H A D | kexgexc.c | 53 DH *dh; in kexgex_client() local 97 dh = dh_new_group(g, p); in kexgex_client() 98 dh_gen_key(dh, kex->we_need * 8); in kexgex_client() 101 DHparams_print_fp(stderr, dh); in kexgex_client() 103 BN_print_fp(stderr, dh->pub_key); in kexgex_client() 110 packet_put_bignum2(dh->pub_key); in kexgex_client() 144 if (!dh_pub_is_valid(dh, dh_server_pub)) in kexgex_client() 147 klen = DH_size(dh); in kexgex_client() 149 kout = DH_compute_key(kbuf, dh_server_pub, dh); in kexgex_client() 170 dh->p, dh->g, in kexgex_client() [all …]
|
H A D | kexgsss.c | 65 DH *dh; in kexgss_server() local 167 dh = dh_new_group1(); in kexgss_server() 168 dh_gen_key(dh, kex->we_need * 8); in kexgss_server() 170 if (!dh_pub_is_valid(dh, dh_client_pub)) in kexgss_server() 173 klen = DH_size(dh); in kexgss_server() 175 kout = DH_compute_key(kbuf, dh_client_pub, dh); in kexgss_server() 190 dh->pub_key, in kexgss_server() 213 packet_put_bignum2(dh->pub_key); in kexgss_server() 227 DH_free(dh); in kexgss_server()
|
H A D | kexgssc.c | 65 DH *dh; in kexgss_client() local 88 dh = dh_new_group1(); in kexgss_client() 89 dh_gen_key(dh, kex->we_need * 8); in kexgss_client() 145 packet_put_bignum2(dh->pub_key); in kexgss_client() 261 if (!dh_pub_is_valid(dh, dh_server_pub)) in kexgss_client() 265 klen = DH_size(dh); in kexgss_client() 267 kout = DH_compute_key(kbuf, dh_server_pub, dh); in kexgss_client() 281 dh->pub_key, /* e */ in kexgss_client() 297 DH_free(dh); in kexgss_client()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | revarp.c | 65 dlpi_handle_t dh; in doifrevarp() local 94 dh = rarp_open(linkname, &physaddrlen, my_macaddr, my_broadcast); in doifrevarp() 95 if (dh == NULL) { in doifrevarp() 105 dlpi_close(dh); in doifrevarp() 129 dlpi_close(dh); in doifrevarp() 149 retval = dlpi_send(dh, my_broadcast, physaddrlen, req, in doifrevarp() 160 retval = rarp_recv(dh, ans, ifrarplen, physaddrlen, in doifrevarp() 187 dlpi_close(dh); in doifrevarp() 204 dlpi_handle_t dh; in rarp_open() local 209 if ((retval = dlpi_open(linkname, &dh, 0)) != DLPI_SUCCESS) { in rarp_open() [all …]
|
/titanic_41/usr/src/lib/libc/amd64/gen/ |
H A D | memccpy.s | 37 movb (%rsi),%dh 38 movb %dh,(%rdi) / move byte 39 cmpb %dh,%dl / is it the byte sought? 44 movb 1(%rsi),%dh 45 movb %dh,1(%rdi) / move byte 46 cmpb %dh,%dl / is it the byte sought? 51 movb 2(%rsi),%dh 52 movb %dh,2(%rdi) / move byte 53 cmpb %dh,%dl / is it the byte sought? 58 movb 3(%rsi),%dh [all …]
|
H A D | strlen.s | 142 test $0x01, %dh 145 test $0x02, %dh 148 test $0x04, %dh 151 test $0x08, %dh 154 test $0x10, %dh 157 test $0x20, %dh 160 test $0x40, %dh
|
/titanic_41/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_idmap.c | 312 door_handle_t dh; in nfs_idmap_str_uid() local 341 dh = nig->nfsidmap_daemon_dh; in nfs_idmap_str_uid() 342 if (dh) in nfs_idmap_str_uid() 343 door_ki_hold(dh); in nfs_idmap_str_uid() 346 if (dh == NULL || nig->nfsidmap_pid == curproc->p_pid || in nfs_idmap_str_uid() 348 if (dh) in nfs_idmap_str_uid() 349 door_ki_rele(dh); in nfs_idmap_str_uid() 363 door_ki_rele(dh); in nfs_idmap_str_uid() 381 error = door_ki_upcall_limited(dh, &door_args, NULL, SIZE_MAX, 0); in nfs_idmap_str_uid() 440 door_ki_rele(dh); in nfs_idmap_str_uid() [all …]
|
H A D | nfs_cmd.c | 86 door_handle_t dh; in nfscmd_send() local 94 dh = nfscmd_dh; in nfscmd_send() 95 if (dh != NULL) in nfscmd_send() 96 door_ki_hold(dh); in nfscmd_send() 99 if (dh == NULL) { in nfscmd_send() 124 switch (door_ki_upcall(dh, &da)) { in nfscmd_send() 130 door_ki_rele(dh); in nfscmd_send() 135 if (!door_ki_info(dh, &di)) { in nfscmd_send() 145 if (dh == nfscmd_dh) in nfscmd_send() 148 door_ki_rele(dh); in nfscmd_send() [all …]
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dlink_common.c | 105 dof_helper_t dh; in dtrace_link_dof() local 126 dh.dofhp_dof = (uintptr_t)dof; in dtrace_link_dof() 127 dh.dofhp_addr = elf->e_type == ET_DYN ? addr : 0; in dtrace_link_dof() 130 (void) snprintf(dh.dofhp_mod, sizeof (dh.dofhp_mod), in dtrace_link_dof() 133 (void) snprintf(dh.dofhp_mod, sizeof (dh.dofhp_mod), in dtrace_link_dof() 158 if (ioctl(fd, DTRACEHIOC_ADDDOF, &dh) == -1) { in dtrace_link_dof()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | l2_packet.c | 33 retval = dlpi_bind(l2->dh, DLPI_ANY_SAP, NULL); in link_init() 40 retval = dlpi_promiscon(l2->dh, DL_PROMISC_SAP); in link_init() 48 retval = dlpi_get_physaddr(l2->dh, DL_CURR_PHYS_ADDR, paddr, &paddrlen); in link_init() 79 retval = dlpi_send(l2->dh, NULL, 0, buf, buflen, NULL); in l2_packet_send() 98 retval = dlpi_recv(l2->dh, NULL, NULL, buf, &buflen, 0, NULL); in l2_packet_receive() 132 retval = dlpi_open(l2->ifname, &l2->dh, DLPI_RAW); in l2_packet_init() 142 dlpi_close(l2->dh); in l2_packet_init() 147 (void) eloop_register_read_sock(dlpi_fd(l2->dh), l2_packet_receive, l2, in l2_packet_init() 159 eloop_unregister_read_sock(dlpi_fd(l2->dh)); in l2_packet_deinit() 160 dlpi_close(l2->dh); in l2_packet_deinit()
|
/titanic_41/usr/src/lib/libnsl/nis/gen/ |
H A D | nis_misc_proc.c | 116 void *dh; in gss_OID_load() local 127 if ((dh = dlopen(LIBGSS, RTLD_NOLOAD)) == NULL) { in gss_OID_load() 132 OIDptr = (gss_OID *)dlsym(dh, "GSS_C_NT_EXPORT_NAME"); in gss_OID_load() 138 g_import_name = (gss_fptr)dlsym(dh, "gss_import_name"); in gss_OID_load() 142 g_display_name = (gss_fptr)dlsym(dh, "gss_display_name"); in gss_OID_load() 146 g_release_name = (gss_fptr)dlsym(dh, "gss_release_name"); in gss_OID_load() 150 g_release_buffer = (gss_fptr)dlsym(dh, "gss_release_buffer"); in gss_OID_load() 154 g_release_oid = (gss_fptr)dlsym(dh, "gss_release_oid"); in gss_OID_load() 164 if ((dh = dlopen(MECHDH, RTLD_LAZY)) != NULL) { in gss_OID_load() 166 OIDptr = (gss_OID *)dlsym(dh, "__DH_GSS_C_NT_NETNAME"); in gss_OID_load()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_capture.c | 173 init_datalink(dlpi_handle_t dh, ulong_t snaplen, ulong_t chunksize, in init_datalink() argument 179 retv = dlpi_bind(dh, DLPI_ANY_SAP, NULL); in init_datalink() 181 pr_errdlpi(dh, "cannot bind on", retv); in init_datalink() 185 dlpi_linkname(dh)); in init_datalink() 187 (void) fprintf(stderr, "Using device %s ", dlpi_linkname(dh)); in init_datalink() 196 retv = dlpi_promiscon(dh, DL_PROMISC_PHYS); in init_datalink() 198 pr_errdlpi(dh, "promiscuous mode(physical) failed", in init_datalink() 203 retv = dlpi_promiscon(dh, DL_PROMISC_MULTI); in init_datalink() 205 pr_errdlpi(dh, "promiscuous mode(multicast) failed", in init_datalink() 210 retv = dlpi_promiscon(dh, DL_PROMISC_SAP); in init_datalink() [all …]
|
/titanic_41/usr/src/uts/sun4v/io/ |
H A D | drctl_impl.c | 72 door_handle_t dh = drctl_dh; in i_drctl_send() local 76 if (dh) in i_drctl_send() 77 door_ki_hold(dh); in i_drctl_send() 99 up_err = door_ki_upcall_limited(dh, &door_args, NULL, SIZE_MAX, 0); in i_drctl_send() 132 door_ki_rele(dh); in i_drctl_send() 151 door_ki_rele(dh); in i_drctl_send()
|
/titanic_41/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 241 dlpi_close(dlpi_handle_t dh) in dlpi_close() argument 243 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_close() 262 dlpi_info(dlpi_handle_t dh, dlpi_info_t *infop, uint_t opt) in dlpi_info() argument 270 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_info() 437 dlpi_bind(dlpi_handle_t dh, uint_t sap, uint_t *boundsap) in dlpi_bind() argument 443 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_bind() 481 if (dlpi_unbind(dh) != DLPI_SUCCESS) in dlpi_bind() 492 dlpi_unbind(dlpi_handle_t dh) in dlpi_unbind() argument 495 dlpi_impl_t *dip = (dlpi_impl_t *)dh; in dlpi_unbind() 511 i_dlpi_multi(dlpi_handle_t dh, t_uscalar_t op, const uint8_t *addrp, in i_dlpi_multi() argument [all …]
|
/titanic_41/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_stable.c | 134 dlpi_handle_t dh = NULL; in make_stable_duid() local 143 if (dlpi_open(physintf, &dh, 0) == DLPI_SUCCESS && in make_stable_duid() 144 dlpi_bind(dh, DLPI_ANY_SAP, NULL) == DLPI_SUCCESS && in make_stable_duid() 145 dlpi_info(dh, &dlinfo, 0) == DLPI_SUCCESS && in make_stable_duid() 152 dlpi_close(dh); in make_stable_duid() 162 dlpi_close(dh); in make_stable_duid() 165 if (dh != NULL) in make_stable_duid() 166 dlpi_close(dh); in make_stable_duid()
|
/titanic_41/usr/src/lib/libc/i386/gen/ |
H A D | memccpy.s | 38 movb 16(%esp),%dh / %dh = character to search for 45 cmpb %dh,%dl / is it the byte sought? 52 cmpb %dh,%dl / is it the byte sought? 59 cmpb %dh,%dl / is it the byte sought? 68 cmpb %dh,%dl / is it the byte sought?
|
/titanic_41/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_hash.c | 47 did_hash_t *dh = did_hash_create(hdl); in did_hash_init() local 49 if (dh != NULL) { in did_hash_init() 50 topo_mod_setspecific(hdl, (void *) dh); in did_hash_init() 60 did_hash_t *dh = (did_hash_t *)topo_mod_getspecific(mod); in did_hash_fini() local 63 if (dh == NULL) in did_hash_fini() 65 did_hash_destroy(dh); in did_hash_fini()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | klpd.c | 448 door_handle_t dh; in klpd_reg() local 490 dh = door_ki_lookup(did); in klpd_reg() 491 if (dh == NULL || door_ki_info(dh, &di) != 0) { in klpd_reg() 507 kpd->klpd_door = dh; in klpd_reg() 576 klpd_unreg_dh(door_handle_t dh) in klpd_unreg_dh() argument 582 if (p->klpd_door == dh) in klpd_unreg_dh() 602 door_handle_t dh; in klpd_unreg() local 625 dh = door_ki_lookup(did); in klpd_unreg() 626 if (dh == NULL) { in klpd_unreg() 646 door_ki_rele(dh); in klpd_unreg() [all …]
|
/titanic_41/usr/src/lib/libuuid/common/ |
H A D | etheraddr.c | 125 dlpi_handle_t dh; in get_etheraddr() local 128 if (dlpi_open(linkname, &dh, 0) != DLPI_SUCCESS) in get_etheraddr() 132 retval = dlpi_get_physaddr(dh, DL_CURR_PHYS_ADDR, in get_etheraddr() 135 dlpi_close(dh); in get_etheraddr()
|
/titanic_41/usr/src/lib/libilb/common/ |
H A D | ilb_subr.c | 194 int64_t dh; in i_cmp_addr_impl() local 204 dh = signed_diff64(i1h, i2h); in i_cmp_addr_impl() 208 if (dh == 0) { in i_cmp_addr_impl() 214 } else if (l_sign == sign64(dh) || abs(dh) > 1) { in i_cmp_addr_impl() 215 if (dh > 0) in i_cmp_addr_impl() 224 if (dh == 1) in i_cmp_addr_impl()
|