Home
last modified time | relevance | path

Searched refs:malloc (Results 51 – 75 of 2594) sorted by relevance

12345678910>>...104

/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dkdc_preauth.c472 ret = malloc(sizeof(*ret)); in make_padata_context()
541 *result = malloc(sizeof(krb5_data)); in get_entry_tl_data()
546 (*result)->data = malloc(tl->tl_data_length); in get_entry_tl_data()
585 ret = malloc(sizeof(krb5_data)); in get_entry_data()
588 delta = malloc(sizeof(krb5_deltat)); in get_entry_data()
600 ret = malloc(sizeof(krb5_data)); in get_entry_data()
832 *pa = malloc(sizeof(krb5_pa_data)); in get_preauth_hint_list()
1035 e_data->data = malloc(pa_e_data->length); in check_padata()
1358 tmp_entry->s2kparams.data = malloc(1); in _make_etype_info_entry()
1537 tmp_padata = malloc( sizeof(krb5_pa_data)); in etype_info_as_rep_helper()
[all …]
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Dovload.c48 hist->key_data = (krb5_key_data *) malloc(hist->n_key_data *
79 (krb5_octet *) malloc(key_data->key_data_length[0]+1))) {
141 if((rec = (osa_princ_ent_t) malloc(sizeof(osa_princ_ent_rec))) == NULL)
153 if((rec->policy = (char *) malloc(strlen(cp)+1)) == NULL) {
188 malloc(sizeof(osa_pw_hist_ent) * rec->old_key_len))) {
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftASN1.c135 dst->big_value = malloc(dst->big_value_len); in unpad_bigint_attr()
1042 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1065 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1088 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1111 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1134 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1157 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1180 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1203 if ((tmp.big_value = malloc(tmplen)) == NULL) {
1322 if ((tmp.big_value = malloc(tmplen)) == NULL) {
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Ddata_obj.c321 class_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in data_object_set_default_attributes()
323 app_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in data_object_set_default_attributes()
324 value_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in data_object_set_default_attributes()
H A Dhwf_obj.c405 value_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in clock_set_default_attributes()
427 value_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE)); in counter_set_default_attributes()
428 hasreset_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in counter_set_default_attributes()
430 resetoninit_attr = (CK_ATTRIBUTE *)malloc(sizeof (CK_ATTRIBUTE) + in counter_set_default_attributes()
H A Dobject.c440 o = (OBJECT *)malloc(sizeof (OBJECT)); in object_copy()
441 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_copy()
442 new_tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_copy()
534 buf = (CK_BYTE *)malloc(total_len); in object_flatten()
727 new_tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_set_attribute_values()
766 obj = (OBJECT *)malloc(sizeof (OBJECT)); in object_restore()
832 o = (OBJECT *)malloc(sizeof (OBJECT)); in object_create_skel()
833 tmpl = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_create_skel()
834 tmpl2 = (TEMPLATE *)malloc(sizeof (TEMPLATE)); in object_create_skel()
/illumos-gate/usr/src/cmd/keyserv/
H A Dchkey.c178 (char *)malloc(HEXKEYBYTES + KEYCHECKSUMSIZE + 1))) { in encryptkeys()
213 if (!(plist = (char **)malloc(sizeof (char *) * mcount))) { in initkeylist()
241 if (!(public = (char *)malloc(hexkeylen))) { in getpublics()
264 if (!(public = (char *)malloc(HEXKEYBYTES + 1))) { in getpublics()
305 if (!(public = malloc(hexkeylen))) { in makenewkeys()
310 if (!(secret = malloc(hexkeylen))) { in makenewkeys()
337 if (!(public = malloc(HEXKEYBYTES + 1))) { in makenewkeys()
341 if (!(secret = malloc(HEXKEYBYTES + 1))) { in makenewkeys()
569 if (!(secret = (char *)malloc(HEXKEYBYTES + 1))) { in getsecrets()
1000 (mechanism_t *)malloc( in addmechtolist()
[all …]
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dtokens.c74 if ((opt = malloc(no * sizeof (Isa_opt))) == 0) in conv_isalist()
125 if ((desc->uts_osname = malloc(size + 1)) == 0) in conv_uts()
131 if ((desc->uts_osrel = malloc(size + 1)) == 0) in conv_uts()
/illumos-gate/usr/src/boot/common/
H A Dpart.c266 buf = malloc(table->sectorsize); in ptable_gptread()
361 entry = malloc(sizeof (*entry)); in ptable_gptread()
426 buf = malloc(table->sectorsize); in ptable_ebrread()
447 entry = malloc(sizeof (*entry)); in ptable_ebrread()
498 buf = malloc(table->sectorsize); in ptable_bsdread()
575 buf = malloc(table->sectorsize); in ptable_vtoc8read()
665 buf = malloc(table->sectorsize); in ptable_dklabelread()
721 buf = malloc(table->sectorsize); in ptable_iso9660read()
735 entry = malloc(sizeof (*entry)); in ptable_iso9660read()
765 buf = malloc(sectorsize); in ptable_open()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_map.c124 if ((new_pdesc = malloc(nsize)) == NULL || in dt_epid_add()
125 (new_edesc = malloc(nsize)) == NULL) { in dt_epid_add()
151 if ((enabled = malloc(sizeof (dtrace_eprobedesc_t))) == NULL) in dt_epid_add()
170 malloc(DTRACE_SIZEOF_EPROBEDESC(enabled))) != NULL) in dt_epid_add()
187 if ((probe = malloc(sizeof (dtrace_probedesc_t))) == NULL) { in dt_epid_add()
325 if ((new_aggdesc = malloc(nsize)) == NULL) in dt_aggid_add()
343 if ((agg = malloc(sizeof (dtrace_aggdesc_t))) == NULL) in dt_aggid_add()
361 if ((nagg = malloc(DTRACE_SIZEOF_AGGDESC(agg))) != NULL) in dt_aggid_add()
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dutils.c200 info->mdata = data = malloc(sizeof (Elf_Data)); in dozap()
317 p = malloc(len + 1 + data->d_size); in doappend()
358 p = malloc(len + 1 + data->d_size); in doappend()
399 p = malloc(data->d_size); in docompress()
427 hash_key = malloc(sizeof (int) * 200); in compress()
429 hash_str = malloc(sizeof (size_t) * 200); in compress()
431 strings = malloc(str_size); in compress()
520 str = malloc(next_str); in compress()
/illumos-gate/usr/src/lib/libsqlite/test/
H A Dmalloc.test14 # command (sqlite_malloc_fail N) which causes the N-th malloc to fail. This
15 # special feature is used to see what happens in the library if a malloc
18 # $Id: malloc.test,v 1.6 2004/02/14 01:39:50 drh Exp $
26 puts "Skipping malloc tests: not compiled with -DMEMORY_DEBUG..."
32 do_test malloc-1.$i {
76 do_test malloc-2.$i {
121 do_test malloc-3.$i {
156 do_test malloc-4.$i {
192 do_test malloc-5.$i {
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dscandir.c91 names = (struct direct64 **)malloc(arraysz * in scandir64()
103 p = (struct direct64 *)malloc(DIRSIZ64(d)); in scandir64()
162 names = (struct direct **)malloc(arraysz * sizeof (struct direct *)); in scandir()
173 p = (struct direct *)malloc(DIRSIZ(d)); in scandir()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dcc_memory.c253 lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache)); in krb5_mcc_resolve()
431 d = malloc(sizeof(krb5_mcc_data)); in new_mcc_data()
441 d->name = malloc(strlen(name) + 1); in new_mcc_data()
453 n = malloc(sizeof(krb5_mcc_list_node)); in new_mcc_data()
495 lid = (krb5_ccache) malloc(sizeof(struct _krb5_ccache)); in krb5_mcc_generate_new()
548 bytes = malloc (bytecount); in random_string()
663 new_node = malloc(sizeof(krb5_mcc_link)); in krb5_mcc_store()
695 n = malloc(sizeof(*n)); in krb5_mcc_ptcursor_new()
699 cdata = malloc(sizeof(struct krb5_mcc_ptcursor_data)); in krb5_mcc_ptcursor_new()
735 *ccache = malloc(sizeof(**ccache)); in krb5_mcc_ptcursor_next()
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dhash.c39 ptr = malloc(sizeof (*ptr)); in make_hash()
41 ptr->table = malloc((size_t)(sizeof (hash_entry *) * size)); in make_hash()
53 ptr = malloc(sizeof (*ptr)); in make_ihash()
55 ptr->table = malloc(sizeof (hash_entry *) * size); in make_ihash()
94 new = malloc(sizeof (*new)); in get_hash()
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dmalloc.c157 #pragma weak lmalloc = malloc
159 malloc(size_t size) in malloc() function
224 if ((mp = malloc(total)) == NULL) in calloc()
238 return (malloc(size)); in realloc()
263 if ((newptr = malloc(size)) == NULL) in realloc()
/illumos-gate/usr/src/cmd/praudit/
H A Dprintaudit.c204 if ((context = (pr_context_t *)malloc(sizeof (pr_context_t))) == NULL) { in print_audit_buf()
224 context->audit_adr = (adr_t *)malloc(sizeof (adr_t)); in print_audit_buf()
279 if ((context = (pr_context_t *)malloc(sizeof (pr_context_t))) == NULL) { in print_audit()
287 context->audit_adr = malloc(sizeof (adr_t)); in print_audit()
288 context->audit_adrf = malloc(sizeof (adrf_t)); in print_audit()
/illumos-gate/usr/src/lib/nametoaddr/straddr/common/
H A Dstraddr.c131 if ((retp = malloc(sizeof (struct nd_addrlist))) == NULL) { in _netdir_getbyname()
142 if ((retp->n_addrs = malloc(sizeof (struct netbuf))) == NULL) { in _netdir_getbyname()
235 if ((retp = malloc(sizeof (struct nd_hostservlist))) == NULL) { in _netdir_getbyaddr()
292 if ((retp = malloc(BUFSIZ)) == NULL) { in _taddr2uaddr()
333 holdp = malloc(strlen(uaddr) + 1); in _uaddr2taddr()
359 if ((retp = malloc(sizeof (struct netbuf))) == NULL) { in _uaddr2taddr()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/
H A Dauth.c94 chan.initiator_address.value = malloc(temp_buf.length); in do_auth()
101 chan.acceptor_address.value = malloc(temp_buf.length); in do_auth()
190 out_buf = (uchar_t *)malloc(outlen); in do_auth()
312 in_buffer->value = value = malloc(length); in get_inet_addr_info()
316 in_buffer->value = value = malloc(length); in get_inet_addr_info()
322 in_buffer->value = value = malloc(in_buffer->length); in get_inet_addr_info()
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_buf_size3.c3 void *malloc(int);
9 a = malloc(sizeof(int) * 4); in func()
H A Dinteger-const-expr.c1 extern void *malloc(unsigned long);
66 TEST(0, malloc(8)); in main()
67 TEST(0, v = malloc(8)); in main()
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwcsftime.c83 if ((sformat = malloc(sflen + 1)) == NULL) in __wcsftime_xpg5()
99 if ((dst = malloc(maxsize * MB_CUR_MAX)) == NULL) in __wcsftime_xpg5()
131 wfmt = malloc(sizeof (wchar_t) * len); in wcsftime()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dbld_princ.c49 data = (krb5_data *) malloc(sizeof(krb5_data) * count); in krb5_build_principal_va()
53 tmpdata = malloc(rlen + 1); in krb5_build_principal_va()
103 krb5_principal pr_ret = (krb5_principal)malloc(sizeof(krb5_principal_data)); in krb5_build_principal()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/dk/
H A Dstringtokey.c58 if ((concat = (unsigned char *) malloc(concatlen)) == NULL) in krb5int_dk_string_to_key()
60 if ((foldstring = (unsigned char *) malloc(keybytes)) == NULL) { in krb5int_dk_string_to_key()
64 if ((foldkeydata = (unsigned char *) malloc(keylength)) == NULL) { in krb5int_dk_string_to_key()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dscandir.c97 names = malloc(arraysz * sizeof (struct dirent64 *)); in scandir64()
109 p = malloc(entlen); in scandir64()
182 names = malloc(arraysz * sizeof (struct dirent *)); in scandir()
194 p = malloc(entlen); in scandir()

12345678910>>...104