#define LBER_INVALID(tag) ( ( (tag) & 0xFFFFFF80UL ) != 0 )
#define LBER_ERROR 0xffffffffUL
#define LBER_DEFAULT 0xffffffffUL
-/* #define LBER_END_SEQORSET 0xfffffffeUL *//* not part of LDAP C-API */
/* general BER types we know about */
#define LBER_BOOLEAN 0x01UL
*last = ber->ber_ptr + *len;
if ( *last == ber->ber_ptr ) {
-#ifdef LBER_END_SEQORSET
- return( LBER_END_SEQORSET );
-#else
return( LBER_DEFAULT );
-#endif
}
return( ber_peek_tag( ber, len ) );
assert( last != NULL );
if ( ber->ber_ptr == last ) {
-#ifdef LBER_END_SEQORSET
- return( LBER_END_SEQORSET );
-#else
return( LBER_DEFAULT );
-#endif
}
return( ber_peek_tag( ber, len ) );
*sss = NULL;
j = 0;
for ( tag = ber_first_element( ber, &len, &last );
- tag != LBER_DEFAULT &&
-#ifdef LBER_END_SEQORSET
- tag != LBER_END_SEQORSET &&
-#endif
- rc != LBER_DEFAULT;
+ tag != LBER_DEFAULT && rc != LBER_DEFAULT;
tag = ber_next_element( ber, &len, last ) )
{
if ( *sss == NULL ) {
rc = ber_get_stringa( ber, &((*sss)[j]) );
j++;
}
-#ifdef LBER_END_SEQORSET
- if (rc != LBER_DEFAULT &&
- tag != LBER_END_SEQORSET )
- {
- rc = LBER_DEFAULT;
- }
-#endif
if ( j > 0 )
(*sss)[j] = NULL;
break;
*bv = NULL;
j = 0;
for ( tag = ber_first_element( ber, &len, &last );
- tag != LBER_DEFAULT &&
-#ifdef LBER_END_SEQORSET
- tag != LBER_END_SEQORSET &&
-#endif
- rc != LBER_DEFAULT;
+ tag != LBER_DEFAULT && rc != LBER_DEFAULT;
tag = ber_next_element( ber, &len, last ) )
{
if ( *bv == NULL ) {
rc = ber_get_stringal( ber, &((*bv)[j]) );
j++;
}
-#ifdef LBER_END_SEQORSET
- if (rc != LBER_DEFAULT &&
- tag != LBER_END_SEQORSET )
- {
- rc = LBER_DEFAULT;
- }
-#endif
if ( j > 0 )
(*bv)[j] = NULL;
break;