void *ctx )
{
int i;
- size_t slen, mlen;
BerVarray keys;
HASH_CONTEXT HASHcontext;
unsigned char HASHdigest[HASH_BYTES];
keys = slap_sl_malloc( sizeof( struct berval ) * (i+1), ctx );
- slen = syntax->ssyn_oidlen;
- mlen = mr->smr_oidlen;
-
hashPreset( &HASHcontext, prefix, 0, syntax, mr);
for( i=0; !BER_BVISNULL( &values[i] ); i++ ) {
hashIter( &HASHcontext, HASHdigest,
BerVarray *keysp,
void *ctx )
{
- size_t slen, mlen;
BerVarray keys;
HASH_CONTEXT HASHcontext;
unsigned char HASHdigest[HASH_BYTES];
digest.bv_val = (char *)HASHdigest;
digest.bv_len = HASH_LEN;
- slen = syntax->ssyn_oidlen;
- mlen = mr->smr_oidlen;
-
keys = slap_sl_malloc( sizeof( struct berval ) * 2, ctx );
hashPreset( &HASHcontext, prefix, 0, syntax, mr );
void *ctx )
{
ber_len_t i, nkeys;
- size_t slen, mlen;
BerVarray keys;
HASH_CONTEXT HCany, HCini, HCfin;
keys = slap_sl_malloc( sizeof( struct berval ) * (nkeys+1), ctx );
- slen = syntax->ssyn_oidlen;
- mlen = mr->smr_oidlen;
-
if ( flags & SLAP_INDEX_SUBSTR_ANY )
hashPreset( &HCany, prefix, SLAP_INDEX_SUBSTR_PREFIX, syntax, mr );
if( flags & SLAP_INDEX_SUBSTR_INITIAL )
SubstringsAssertion *sa;
char pre;
ber_len_t nkeys = 0;
- size_t slen, mlen, klen;
+ size_t klen;
BerVarray keys;
HASH_CONTEXT HASHcontext;
unsigned char HASHdigest[HASH_BYTES];
digest.bv_val = (char *)HASHdigest;
digest.bv_len = HASH_LEN;
- slen = syntax->ssyn_oidlen;
- mlen = mr->smr_oidlen;
-
keys = slap_sl_malloc( sizeof( struct berval ) * (nkeys+1), ctx );
nkeys = 0;
struct berval *in )
{
int len;
- unsigned char *u = (unsigned char *)in->bv_val, *end = in->bv_val + in->bv_len;
+ unsigned char *u = (unsigned char *)in->bv_val, *end = (unsigned char *)in->bv_val + in->bv_len;
if( BER_BVISEMPTY( in ) && syntax == slap_schema.si_syn_directoryString ) {
/* directory strings cannot be empty */