/titanic_41/usr/src/cmd/krb5/slave/ |
H A D | utils.c | 22 krbap->contents = (krb5_octet *) in cvtkaddr() 24 if (krbap->contents == NULL) in cvtkaddr() 26 memcpy((char *)krbap->contents, in cvtkaddr() 35 krbap->contents = (krb5_octet *) in cvtkaddr() 37 if (krbap->contents == NULL) in cvtkaddr() 41 *(ipaddr_t *)(krbap->contents)); in cvtkaddr() 45 krbap->contents = (krb5_octet *) in cvtkaddr() 47 if (krbap->contents == NULL) in cvtkaddr() 49 memcpy((char *)krbap->contents, in cvtkaddr()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/crypto/keyhash_provider/ |
H A D | k5_md5des.c | 79 xorkey.contents = (krb5_octet *)malloc(key->length); in k5_md5des_hash() 80 if (xorkey.contents == NULL) in k5_md5des_hash() 83 (void) memcpy(xorkey.contents, key->contents, xorkey.length); in k5_md5des_hash() 86 xorkey.contents[i] ^= 0xf0; in k5_md5des_hash() 88 if (!mit_des_check_key_parity(xorkey.contents)) { in k5_md5des_hash() 93 if (mit_des_is_weak_key(xorkey.contents)) { in k5_md5des_hash() 147 free(xorkey.contents); in k5_md5des_hash() 190 xorkey.contents = (krb5_octet *)malloc(key->length); in k5_md5des_verify() 191 if (xorkey.contents == NULL) in k5_md5des_verify() 194 (void) memcpy(xorkey.contents, key->contents, xorkey.length); in k5_md5des_verify() [all …]
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/ |
H A D | des.c | 99 (void) memcpy(key->contents, randombits->data, randombits->length); in k5_des_make_key() 100 key->contents[7] = (((key->contents[0]&1)<<1) | ((key->contents[1]&1)<<2) | in k5_des_make_key() 101 ((key->contents[2]&1)<<3) | ((key->contents[3]&1)<<4) | in k5_des_make_key() 102 ((key->contents[4]&1)<<5) | ((key->contents[5]&1)<<6) | in k5_des_make_key() 103 ((key->contents[6]&1)<<7)); in k5_des_make_key() 105 mit_des_fixup_key_parity(key->contents); in k5_des_make_key()
|
H A D | des3.c | 105 (void) memcpy(key->contents+i*8, randombits->data+i*7, 7); in k5_des3_make_key() 106 key->contents[i*8+7] = (((key->contents[i*8]&1)<<1) | in k5_des3_make_key() 107 ((key->contents[i*8+1]&1)<<2) | in k5_des3_make_key() 108 ((key->contents[i*8+2]&1)<<3) | in k5_des3_make_key() 109 ((key->contents[i*8+3]&1)<<4) | in k5_des3_make_key() 110 ((key->contents[i*8+4]&1)<<5) | in k5_des3_make_key() 111 ((key->contents[i*8+5]&1)<<6) | in k5_des3_make_key() 112 ((key->contents[i*8+6]&1)<<7)); in k5_des3_make_key() 114 mit_des_fixup_key_parity(key->contents+i*8); in k5_des3_make_key()
|
/titanic_41/usr/src/cmd/svr4pkg/libinst/ |
H A D | ocfile.c | 207 char contents[PATH_MAX]; in ocfile() local 247 (void) snprintf(contents, sizeof (contents), "%s/contents", pkgadm_dir); in ocfile() 257 if (stat64(contents, &statb) == -1) { in ocfile() 260 progerr(gettext(ERR_NOCFILE), contents); in ocfile() 268 if (statvfs64(contents, &svfsb) == -1) { in ocfile() 271 progerr(gettext(ERR_NOSTATV), contents); in ocfile() 309 progerr(gettext(ERR_CFBACK), contents); in ocfile() 374 char contents[PATH_MAX]; in socfile() local 649 char contents[PATH_MAX]; in iscfile() local 651 (void) snprintf(contents, PATH_MAX, "%s/contents", get_PKGADM()); in iscfile() [all …]
|
/titanic_41/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | ldap_fetch_mkey.c | 88 if (r_params->mkey.contents) { 89 free (r_params->mkey.contents); 90 r_params->mkey.contents=NULL; 96 r_params->mkey.contents = malloc(key->length); 97 if (r_params->mkey.contents == NULL) 100 memcpy(r_params->mkey.contents, key->contents, key->length);
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/crypto/crc32/ |
H A D | crc.c | 198 outcksum->contents[0] = (krb5_octet) (c & 0xff); 199 outcksum->contents[1] = (krb5_octet) ((c >> 8) & 0xff); 200 outcksum->contents[2] = (krb5_octet) ((c >> 16) & 0xff); 201 outcksum->contents[3] = (krb5_octet) ((c >> 24) & 0xff); 230 if ((cksum->contents[0] != (krb5_octet) (c & 0xff)) || 231 (cksum->contents[1] != (krb5_octet) ((c >> 8) & 0xff)) || 232 (cksum->contents[2] != (krb5_octet) ((c >> 16) & 0xff)) || 233 (cksum->contents[3] != (krb5_octet) ((c >> 24) & 0xff)))
|
/titanic_41/usr/src/lib/krb5/kdb/ |
H A D | kdb_default.c | 192 (fwrite((krb5_pointer) key->contents, 193 sizeof(key->contents[0]), (unsigned) key->length, 259 if (!(key->contents = (krb5_octet *)malloc(key->length))) { in krb5_db_def_fetch_mkey() 264 if (fread((krb5_pointer) key->contents, in krb5_db_def_fetch_mkey() 265 sizeof(key->contents[0]), key->length, kf) in krb5_db_def_fetch_mkey() 268 memset(key->contents, 0, key->length); in krb5_db_def_fetch_mkey() 269 free(key->contents); in krb5_db_def_fetch_mkey() 270 key->contents = 0; in krb5_db_def_fetch_mkey() 317 memcmp((char *)mkey->contents, 318 (char *)tempkey.contents,mkey->length)) { [all …]
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | make_checksum.c | 67 if ((cksum->contents = (krb5_octet *) MALLOC(cksum->length)) == NULL) in krb5_c_make_checksum() 71 data.data = (char *) cksum->contents; in krb5_c_make_checksum() 158 (void) memcpy(trunc, cksum->contents, cksum->length); in krb5_c_make_checksum() 159 FREE(cksum->contents, old_len); in krb5_c_make_checksum() 160 cksum->contents = trunc; in krb5_c_make_checksum() 169 (void) memset(cksum->contents, 0, cksum->length); in krb5_c_make_checksum() 170 FREE(cksum->contents, cksum->length); in krb5_c_make_checksum() 172 cksum->contents = NULL; in krb5_c_make_checksum()
|
H A D | verify_checksum.c | 58 indata.data = (char *) cksum->contents; in krb5_c_verify_checksum() 78 FREE(computed.contents, computed.length); in krb5_c_verify_checksum() 82 *valid = (memcmp(computed.contents, cksum->contents, hashsize) == 0); in krb5_c_verify_checksum() 84 FREE(computed.contents, computed.length); in krb5_c_verify_checksum()
|
H A D | combine_keys.c | 153 input.data = (char *) key2->contents; in krb5int_c_combine_keys() 169 input.data = (char *) key1->contents; in krb5int_c_combine_keys() 214 tkey.contents = output; in krb5int_c_combine_keys() 225 printf(" %02x", (unsigned char) tkey.contents[i]); in krb5int_c_combine_keys() 247 if (outkey->length == 0 || outkey->contents == NULL) { in krb5int_c_combine_keys() 248 outkey->contents = (krb5_octet *) malloc(keylength); in krb5int_c_combine_keys() 249 if (!outkey->contents) { in krb5int_c_combine_keys() 261 free(outkey->contents); in krb5int_c_combine_keys() 262 outkey->contents = NULL; in krb5int_c_combine_keys() 272 printf(" %02x", (unsigned char) outkey->contents[i]); in krb5int_c_combine_keys()
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
H A D | util_crypt.c | 232 usage_key.contents = MALLOC(usage_key.length); in kg_arcfour_docrypt() 242 if (usage_key.contents == NULL) in kg_arcfour_docrypt() 245 seq_enc_key.contents = MALLOC(seq_enc_key.length); in kg_arcfour_docrypt() 254 if (seq_enc_key.contents == NULL) { in kg_arcfour_docrypt() 255 FREE ((void *) usage_key.contents, usage_key.length); in kg_arcfour_docrypt() 265 output.data = (void *) usage_key.contents; in kg_arcfour_docrypt() 278 output.data = (void *) seq_enc_key.contents; in kg_arcfour_docrypt() 302 bzero ((void *) seq_enc_key.contents, seq_enc_key.length); in kg_arcfour_docrypt() 303 bzero ((void *) usage_key.contents, usage_key.length); in kg_arcfour_docrypt() 304 FREE ((void *) usage_key.contents, usage_key.length); in kg_arcfour_docrypt() [all …]
|
H A D | k5seal.c | 246 seq->contents : NULL), in make_seal_token_v1() 247 md5cksum.contents, md5cksum.contents, 16))) { in make_seal_token_v1() 248 xfree_wrap(md5cksum.contents, md5cksum.length); in make_seal_token_v1() 257 cksum.contents = md5cksum.contents + 16 - cksum.length; in make_seal_token_v1() 259 (void) memcpy(ptr+14, cksum.contents, cksum.length); in make_seal_token_v1() 280 (void) memcpy(ptr+14, md5cksum.contents, md5cksum.length); in make_seal_token_v1() 285 (void) memcpy(ptr+14, md5cksum.contents, cksum_size); in make_seal_token_v1() 289 xfree_wrap(md5cksum.contents, md5cksum.length); in make_seal_token_v1() 321 ((char *) enc_key->contents)[i] ^=0xf0; in make_seal_token_v1()
|
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/ |
H A D | copy_key.c | 54 if ((to->contents == NULL || from->contents == NULL) && in krb5_copy_keyblock_data() 64 (void) memcpy(to->contents, from->contents, from->length); in krb5_copy_keyblock_data() 100 if (!(new_key->contents = (krb5_octet *)MALLOC(from->length))) {
|
H A D | ser_adata.c | 122 (void) krb5_ser_pack_bytes(authdata->contents, in krb5_authdata_externalize() 173 authdata->contents = (krb5_octet *) in krb5_authdata_internalize() 175 if ((authdata->contents) && in krb5_authdata_internalize() 176 !(kret = krb5_ser_unpack_bytes(authdata->contents, in krb5_authdata_internalize() 191 if (authdata->contents) in krb5_authdata_internalize() 192 FREE(authdata->contents, authdata->length); in krb5_authdata_internalize()
|
H A D | ser_key.c | 120 (void) krb5_ser_pack_bytes(keyblock->contents, in krb5_keyblock_externalize() 173 keyblock->contents = (krb5_octet *) MALLOC((size_t) (ibuf)); in krb5_keyblock_internalize() 174 if ((keyblock->contents)&& in krb5_keyblock_internalize() 175 !(kret = krb5_ser_unpack_bytes(keyblock->contents, in krb5_keyblock_internalize() 190 if (keyblock->contents) in krb5_keyblock_internalize() 191 FREE(keyblock->contents, keyblock->length); in krb5_keyblock_internalize()
|
H A D | ser_addr.c | 122 (void) krb5_ser_pack_bytes(address->contents, in krb5_address_externalize() 177 address->contents = (krb5_octet *) MALLOC((size_t) (ibuf)); in krb5_address_internalize() 178 if ((address->contents) && in krb5_address_internalize() 179 !(kret = krb5_ser_unpack_bytes(address->contents, in krb5_address_internalize() 196 if (address->contents) in krb5_address_internalize() 197 FREE(address->contents, address->length); in krb5_address_internalize()
|
H A D | ser_cksum.c | 122 (void) krb5_ser_pack_bytes(checksum->contents, in krb5_checksum_externalize() 175 checksum->contents = (krb5_octet *) in krb5_checksum_internalize() 179 ((checksum->contents) && in krb5_checksum_internalize() 180 !(kret = krb5_ser_unpack_bytes(checksum->contents, in krb5_checksum_internalize() 196 if (checksum->contents) in krb5_checksum_internalize() 197 FREE(checksum->contents, checksum->length); in krb5_checksum_internalize()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | init_allocated_keyblock.c | 47 kb->contents = malloc(length); in krb5_init_allocated_keyblock() 48 if (!kb->contents) { in krb5_init_allocated_keyblock() 51 (void) memset(kb->contents, 0, length); in krb5_init_allocated_keyblock() 53 kb->contents = NULL; in krb5_init_allocated_keyblock()
|
H A D | addr_order.c | 55 if ((unsigned char) addr1->contents[i] < in krb5_address_order() 56 (unsigned char) addr2->contents[i]) in krb5_address_order() 58 else if ((unsigned char) addr1->contents[i] > in krb5_address_order() 59 (unsigned char) addr2->contents[i]) in krb5_address_order()
|
H A D | addr_comp.c | 63 inet_ntop(addr_fam, addr1->contents, buf, sizeof(buf)); in krb5_address_compare() 78 inet_ntop(addr_fam, addr2->contents, buf, sizeof(buf)); in krb5_address_compare() 98 if (memcmp((char *)addr1->contents, (char *)addr2->contents, in krb5_address_compare()
|
H A D | send_tgs.c | 69 free(checksum.contents); in krb5_send_tgs_basic() 81 free(checksum.contents); in krb5_send_tgs_basic() 87 free(checksum.contents); in krb5_send_tgs_basic() 91 free(checksum.contents); in krb5_send_tgs_basic() 255 ap_req_padata.contents = (krb5_octet *)scratch2.data; in krb5_send_tgs2() 264 krb5_xfree(ap_req_padata.contents); in krb5_send_tgs2() 275 krb5_xfree(ap_req_padata.contents); in krb5_send_tgs2() 286 krb5_xfree(ap_req_padata.contents); in krb5_send_tgs2() 290 krb5_xfree(ap_req_padata.contents); in krb5_send_tgs2()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | getdment.c | 414 dmap_minor_root(const char *contents, const char **mn_root) in dmap_minor_root() argument 420 if ((ptr = strstr(contents, prefix)) != NULL) { in dmap_minor_root() 431 if (strncmp(contents, prefix, strlen(prefix)) == 0) { in dmap_minor_root() 435 *mn_root = contents + strlen(prefix) - 1; in dmap_minor_root() 441 *mn_root = contents; in dmap_minor_root() 458 char contents[PATH_MAX + 1]; in dmap_resolve_link() local 468 linksize = readlink(devpath, contents, PATH_MAX); in dmap_resolve_link() 473 contents[linksize] = '\0'; in dmap_resolve_link() 481 if (dmap_minor_root((const char *)contents, (const char **)&ptr) != in dmap_resolve_link() 483 if (strncmp(contents, slashdev, strlen(slashdev)) == 0) { in dmap_resolve_link() [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | util_cksum.c | 62 if ((cksum->contents = (krb5_octet *) xmalloc(cksum->length)) == NULL) { 65 memset(cksum->contents, '\0', cksum->length); 115 memcpy(temp, cksum->contents, cksum->length); 117 cksum->contents = (krb5_octet *)temp; 128 xfree(cksum->contents); /* SUNW15resync -just in case not already free */
|
/titanic_41/usr/src/uts/sun4u/io/ppm/ |
H A D | schppm.c | 239 uint64_t contents; in spm_change_schizo_speed() local 242 contents = ddi_get64(spm_schizo_handle, (uint64_t *)spm_schizo_csr); in spm_change_schizo_speed() 243 contents &= ~SCHIZO_SAFARI_ECLK_MASK; in spm_change_schizo_speed() 244 contents |= schizo_safari_masks[ lvl_index ]; in spm_change_schizo_speed() 245 ddi_put64(spm_schizo_handle, (uint64_t *)spm_schizo_csr, contents); in spm_change_schizo_speed()
|