keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
for( i=0; values[i] != NULL; i++ ) {
HASH_Init( &HASHcontext );
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
keys = ch_malloc( sizeof( struct berval * ) * 2 );
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
casefold = strcmp( mr->smr_oid, caseExactMatchOID )
? UTF8_CASEFOLD : UTF8_NOCASEFOLD;
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
casefold = strcmp( mr->smr_oid, caseExactMatchOID )
? UTF8_CASEFOLD : UTF8_NOCASEFOLD;
keys = ch_malloc( sizeof( struct berval * ) * (nkeys+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
keys = ch_malloc( sizeof( struct berval * ) * (nkeys+1) );
nkeys = 0;
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
for( i=0; values[i] != NULL; i++ ) {
struct berval *value = values[i];
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
value = (struct berval *) assertValue;
keys = ch_malloc( sizeof( struct berval * ) * (nkeys+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
keys = ch_malloc( sizeof( struct berval * ) * (nkeys+1) );
nkeys = 0;
keys = ch_malloc( sizeof( struct berval * ) * (i+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
for( i=0; values[i] != NULL; i++ ) {
struct berval *value = ber_bvdup( values[i] );
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
value = ber_bvdup( (struct berval *) assertValue );
ldap_pvt_str2upper( value->bv_val );
keys = ch_malloc( sizeof( struct berval * ) * (nkeys+1) );
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
nkeys=0;
for( i=0; values[i] != NULL; i++ ) {
digest.bv_val = HASHdigest;
digest.bv_len = sizeof(HASHdigest);
- slen = strlen( syntax->ssyn_oid );
- mlen = strlen( mr->smr_oid );
+ slen = syntax->ssyn_oidlen;
+ mlen = mr->smr_oidlen;
keys = ch_malloc( sizeof( struct berval * ) * (nkeys+1) );
nkeys = 0;