Home
last modified time | relevance | path

Searched refs:LDAP_MALLOC (Results 1 – 25 of 27) sorted by relevance

12

/netbsd-src/external/bsd/openldap/dist/libraries/libldap/
H A Dcharray.c40 *a = (char **) LDAP_MALLOC( 2 * sizeof(char *) ); in ldap_charray_add()
162 new = (char **) LDAP_MALLOC( (i + 1) * sizeof(char *) ); in ldap_charray_dup()
205 res = (char **) LDAP_MALLOC( (i + 1) * sizeof(char *) ); in ldap_str2charray()
260 s = LDAP_MALLOC ( len + 1 ); in ldap_charray2str()
H A Dcontrols.c185 *ctrls = LDAP_MALLOC( 1 * sizeof(LDAPControl *) ); in ldap_pvt_get_controls()
315 new = (LDAPControl **) LDAP_MALLOC( (i+1) * sizeof(LDAPControl *) ); in ldap_controls_dup()
349 new = (LDAPControl *) LDAP_MALLOC( sizeof(LDAPControl) ); in ldap_control_dup()
364 (char *) LDAP_MALLOC( c->ldctl_value.bv_len + 1 ); in ldap_control_dup()
456 ctrl = (LDAPControl *) LDAP_MALLOC( sizeof(LDAPControl) ); in ldap_create_control()
H A Dsortctrl.c139 *key = LDAP_MALLOC(sizeof(LDAPSortKey)); in readNextKey()
143 (*key)->attributeType = LDAP_MALLOC(attrLen+1); in readNextKey()
154 (*key)->orderingRule = LDAP_MALLOC(oidLen+1); in readNextKey()
H A Dutf-8-conv.c395 wcs = (wchar_t *)LDAP_MALLOC(wcsize * sizeof(wchar_t)); in ldap_x_utf8s_to_mbs()
472 wcs = (wchar_t *)LDAP_MALLOC( wcsize * sizeof(wchar_t) ); in ldap_x_mbs_to_utf8s()
H A Dvc.c106 *diagmsg = LDAP_MALLOC( diagmsg_bv.bv_len + 1 ); in ldap_parse_verify_credentials()
129 *ctrls = LDAP_MALLOC(1 * sizeof(LDAPControl *)); in ldap_parse_verify_credentials()
H A Dfree.c58 return LDAP_MALLOC( s ); in ldap_memalloc()
H A Dt61.c383 dst->bv_val = LDAP_MALLOC( wlen+1 ); in ldap_t61s_to_utf8s()
641 dst->bv_val = LDAP_MALLOC( tlen+1 ); in ldap_utf8s_to_t61s()
H A Dtls2.c994 lo->ldo_tls_cacert.bv_val = LDAP_MALLOC( lo->ldo_tls_cacert.bv_len ); in ldap_pvt_tls_set_option()
1007 lo->ldo_tls_cert.bv_val = LDAP_MALLOC( lo->ldo_tls_cert.bv_len ); in ldap_pvt_tls_set_option()
1020 lo->ldo_tls_key.bv_val = LDAP_MALLOC( lo->ldo_tls_key.bv_len ); in ldap_pvt_tls_set_option()
1432 tmpStr=LDAP_MALLOC(bitLength + STR_OVERHEAD + 1); in der_to_ldap_BitString()
1537 newDN = (LDAPDN)LDAP_MALLOC( dnsize ); in ldap_X509dn2bv()
1581 oidbuf = LDAP_MALLOC( oidsize ); in ldap_X509dn2bv()
H A Dtls_g.c169 buf->data = LDAP_MALLOC( st.st_size + 1 ); in tlsg_getfile()
883 der->bv_val = LDAP_MALLOC( der->bv_len ); in tlsg_session_peercert()
940 key.data = LDAP_MALLOC( len ); in tlsg_session_pinning()
954 keyhash.bv_val = LDAP_MALLOC( keyhash.bv_len ); in tlsg_session_pinning()
H A Dgetvalues.c200 new = LDAP_MALLOC( (i+1)*sizeof(char *) ); /* Alloc array of pointers */ in ldap_value_dup()
H A Durl.c808 s = LDAP_MALLOC( len + 1 ); in ldap_url_desc2str()
1223 dest = LDAP_MALLOC( sizeof(LDAPURLDesc) ); in ldap_url_dup()
1468 s = LDAP_MALLOC(size); in ldap_url_list2hosts()
1512 s = LDAP_MALLOC( size ); in ldap_url_list2urls()
H A Dpagectrl.c266 *cookiep = LDAP_MALLOC( sizeof( struct berval ) ); in ldap_parse_page_control()
H A Dsort.c133 if ( (et = (struct entrything *) LDAP_MALLOC( count * in ldap_sort_entries()
H A Dschema.c122 ss = LDAP_MALLOC(sizeof(safe_string)); in new_safe_string()
126 ss->val = LDAP_MALLOC(size); in new_safe_string()
160 char *ret = LDAP_MALLOC(ss->pos+1); in safe_strdup()
1048 res = LDAP_MALLOC(q-p+1); in get_token()
1075 res = LDAP_MALLOC(q-p+1); in get_token()
1153 res = LDAP_MALLOC(len+1); in ldap_int_parse_numericoid()
2133 at->at_oid = LDAP_MALLOC(len+1); in ldap_str2attributetype()
2511 oc->oc_oid = LDAP_MALLOC(len+1); in ldap_str2objectclass()
2797 cr->cr_oid = LDAP_MALLOC(len+1); in ldap_str2contentrule()
H A Doptions.c154 info->ldapai_extensions = LDAP_MALLOC(sizeof(char *) * in ldap_get_option()
964 ll = LDAP_MALLOC( sizeof( *ll )); in ldap_set_option()
H A Dtls_o.c141 BIO_METHOD *method = LDAP_MALLOC( sizeof(BIO_METHOD) ); in BIO_meth_new()
1068 der->bv_val = LDAP_MALLOC(der->bv_len); in tlso_session_peercert()
1088 tmp = LDAP_MALLOC( len ); in tlso_session_pinning()
H A Dutf-8.c274 utf8s->bv_val = LDAP_MALLOC( l+1 ); in ldap_ucs_to_utf8s()
H A Dgetdn.c195 values = LDAP_MALLOC( sizeof( char * ) ); in ldap_explode_dn()
204 values = LDAP_MALLOC( sizeof( char * ) * ( 1 + iRDN ) ); in ldap_explode_dn()
240 values = LDAP_MALLOC( sizeof( char * ) * ( 1 + iAVA ) ); in ldap_explode_rdn()
265 str = LDAP_MALLOC( l + 1 ); in ldap_explode_rdn()
275 str = LDAP_MALLOC( l + 1 ); in ldap_explode_rdn()
H A Ddnssrv.c272 request = LDAP_MALLOC(strlen(domain) + sizeof("_ldap._tcp.")); in ldap_domain2hostlist()
H A Dtpool.c251 pool->ltp_wqs = LDAP_MALLOC(numqs * sizeof(struct ldap_int_thread_poolq_s *)); in ldap_pvt_thread_pool_init_q()
416 task = (ldap_int_thread_task_t *) LDAP_MALLOC(sizeof(*task)); in ldap_pvt_thread_pool_submit2()
H A Dinit.c395 path = LDAP_MALLOC(strlen(home) + strlen(file) + sizeof( LDAP_DIRSEP ".")); in openldap_ldap_init_w_userconf()
H A Dopen.c166 LDAP_MALLOC( len + 1 + gopts->ldo_tls_pin.bv_len ); in ldap_create()
H A Drequest.c1225 (char ***) LDAP_MALLOC( sizeof(void *) * 2); in ldap_chase_v3referrals()
1508 *referralsp = (char *)LDAP_MALLOC( strlen( s ) + LDAP_REF_STR_LEN in ldap_append_referral()
H A Dldap-int.h662 #define LDAP_MALLOC(s) (ber_memalloc_x((s),NULL)) macro
H A Dos-ip.c76 new = (struct timeval *) LDAP_MALLOC(sizeof(struct timeval)); in ldap_int_timeval_dup()

12