Lines Matching refs:uri
63 struct unique_domain_uri_s *uri;
142 unique_free_domain_uri ( unique_domain_uri *uri )
147 while ( uri ) {
148 next_uri = uri->next;
149 ch_free ( uri->dn.bv_val );
150 ch_free ( uri->ndn.bv_val );
151 ch_free ( uri->filter.bv_val );
152 filter_free( uri->f );
153 attr = uri->attrs;
159 ch_free ( uri );
160 uri = next_uri;
173 unique_free_domain_uri ( domain->uri );
185 unique_domain_uri *uri;
192 uri = ch_calloc ( 1, sizeof ( unique_domain_uri ) );
206 &uri->dn,
207 &uri->ndn,
226 if ( !dnIsSuffix ( &uri->ndn, &be->be_nsuffix[0] ) ) {
229 uri->dn.bv_val,
253 attr->next = uri->attrs;
254 uri->attrs = attr;
265 uri->scope = url_desc->lud_scope;
266 if ( !uri->scope ) {
268 "unique: uri with base scope will always be unique");
275 uri->f = str2filter( url_desc->lud_filter );
276 if ( !uri->f ) {
283 filter2bv( uri->f, &uri->filter );
284 ptr = strstr( uri->filter.bv_val, "(?=" /*)*/ );
285 if ( ptr != NULL && ptr <= ( uri->filter.bv_val - STRLENOF( "(?=" /*)*/ ) + uri->filter.bv_len ) )
294 uri->next = *urip;
295 *urip = uri;
299 unique_free_domain_uri ( uri );
325 * [strict ][ignore ][serialize ]uri[[ uri]...]
384 rc = unique_new_domain_uri ( &domain->uri,
420 if ( legacy && legacy->uri && legacy->uri->dn.bv_val ) {
422 &legacy->uri->dn );
425 &legacy->uri->ndn );
430 assert ( legacy && legacy->uri && legacy->uri->dn.bv_val );
432 ch_free ( legacy->uri->dn.bv_val );
433 ch_free ( legacy->uri->ndn.bv_val );
434 BER_BVZERO( &legacy->uri->dn );
435 BER_BVZERO( &legacy->uri->ndn );
436 if ( !legacy->uri->attrs ) {
437 unique_free_domain_uri ( legacy->uri );
438 legacy->uri = NULL;
440 if ( !legacy->uri && !private->legacy_strict_set ) {
478 if ( !legacy->uri )
479 unique_new_domain_uri_basic ( &legacy->uri, c );
480 ch_free ( legacy->uri->dn.bv_val );
481 ch_free ( legacy->uri->ndn.bv_val );
482 legacy->uri->dn = c->value_dn;
483 legacy->uri->ndn = c->value_ndn;
517 && legacy->uri )
518 for ( attr = legacy->uri->attrs;
528 && legacy->uri
529 && legacy->uri->attrs) {
531 for ( attr = legacy->uri->attrs;
537 legacy->uri->attrs = NULL;
539 attrp = &legacy->uri->attrs;
546 if ( !legacy->uri->attrs
547 && !legacy->uri->dn.bv_val ) {
548 unique_free_domain_uri ( legacy->uri );
549 legacy->uri = NULL;
551 if ( !legacy->uri && !private->legacy_strict_set ) {
569 && legacy->uri
570 && legacy->uri->attrs
585 if ( !legacy->uri )
586 unique_new_domain_uri_basic ( &legacy->uri, c );
615 /* (nconc legacy->uri->attrs (nreverse new_attrs)) */
624 for ( attrp = &legacy->uri->attrs;
667 if ( ! legacy->uri ) {
876 unique_domain_uri *uri,
886 if ( uri->attrs ) {
887 for ( attr = uri->attrs; attr; attr = attr->next ) {
914 unique_domain_uri *uri,
926 if ( uri->attrs ) {
927 for ( attr = uri->attrs; attr; attr = attr->next ) {
1086 unique_domain_uri *uri;
1088 for ( uri = domain->uri;
1089 uri;
1090 uri = uri->next )
1095 if ( uri->ndn.bv_val
1096 && !dnIsSuffix( &op->o_req_ndn, &uri->ndn ))
1099 if ( uri->f ) {
1100 if ( test_filter( NULL, op->ora_e, uri->f )
1120 uri,
1126 /* skip this domain-uri if it isn't involved */
1137 if ( uri->filter.bv_val && uri->filter.bv_len )
1138 ks += uri->filter.bv_len + STRLENOF ("(&)");
1141 if ( uri->filter.bv_val && uri->filter.bv_len ) {
1142 len = snprintf (kp, ks, "(&%s", uri->filter.bv_val);
1152 uri,
1162 if ( uri->filter.bv_val && uri->filter.bv_len ) {
1172 uri->ndn.bv_val ?
1173 &uri->ndn :
1175 uri->scope,
1244 unique_domain_uri *uri;
1246 for ( uri = domain->uri;
1247 uri;
1248 uri = uri->next )
1253 if ( uri->ndn.bv_val
1254 && !dnIsSuffix( &op->o_req_ndn, &uri->ndn ))
1262 uri,
1266 /* skip this domain-uri if it isn't involved */
1277 if ( uri->filter.bv_val && uri->filter.bv_len )
1278 ks += uri->filter.bv_len + STRLENOF ("(&)");
1281 if ( uri->filter.bv_val && uri->filter.bv_len ) {
1282 len = snprintf(kp, ks, "(&%s", uri->filter.bv_val);
1294 uri,
1304 if ( uri->filter.bv_val && uri->filter.bv_len ) {
1314 uri->ndn.bv_val ?
1315 &uri->ndn :
1317 uri->scope,
1382 unique_domain_uri *uri;
1384 for ( uri = domain->uri;
1385 uri;
1386 uri = uri->next )
1391 if ( uri->ndn.bv_val
1392 && !dnIsSuffix( &op->o_req_ndn, &uri->ndn )
1394 || !dnIsSuffix( op->orr_nnewSup, &uri->ndn )))
1429 uri,
1445 if ( uri->filter.bv_val && uri->filter.bv_len )
1446 ks += uri->filter.bv_len + STRLENOF ("(&)");
1449 if ( uri->filter.bv_val && uri->filter.bv_len ) {
1450 len = snprintf(kp, ks, "(&%s", uri->filter.bv_val);
1461 uri,
1472 if ( uri->filter.bv_val && uri->filter.bv_len ) {
1482 uri->ndn.bv_val ?
1483 &uri->ndn :
1485 uri->scope,