version 1.120, 2004/02/23 10:45:19
|
version 1.121, 2004/03/09 06:08:04
|
Line 1
|
Line 1
|
/* filter.c - routines for parsing and dealing with filters */ |
/* filter.c - routines for parsing and dealing with filters */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.119 2004/01/11 21:52:07 ando Exp $ */ |
/* $OpenLDAP: pkg/ldap/servers/slapd/filter.c,v 1.120 2004/02/23 10:45:19 ando Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2004 The OpenLDAP Foundation. |
* Copyright 1998-2004 The OpenLDAP Foundation. |
Line 691 filter2bv_x( Operation *op, Filter *f, s
|
Line 691 filter2bv_x( Operation *op, Filter *f, s
|
{ |
{ |
int i; |
int i; |
Filter *p; |
Filter *p; |
struct berval tmp, |
struct berval tmp; |
|
static struct berval |
ber_bvfalse = BER_BVC( "(?=false)" ), |
ber_bvfalse = BER_BVC( "(?=false)" ), |
ber_bvtrue = BER_BVC( "(?=true)" ), |
ber_bvtrue = BER_BVC( "(?=true)" ), |
ber_bvundefined = BER_BVC( "(?=undefined)" ), |
ber_bvundefined = BER_BVC( "(?=undefined)" ), |
ber_bverror = BER_BVC( "(?=error)" ), |
ber_bverror = BER_BVC( "(?=error)" ), |
ber_bvunknown = BER_BVC( "(?=unknown)" ); |
ber_bvunknown = BER_BVC( "(?=unknown)" ), |
|
ber_bvnone = BER_BVC( "(?=none)" ); |
ber_len_t len; |
ber_len_t len; |
|
|
if ( f == NULL ) { |
if ( f == NULL ) { |
ber_str2bv_x( "No filter!", sizeof("No filter!")-1, 1, fstr, op->o_tmpmemctx ); |
ber_dupbv_x( fstr, &ber_bvnone, op->o_tmpmemctx ); |
return; |
return; |
} |
} |
|
|