Diff for /libraries/liblber/decode.c between versions 1.46 and 1.50

version 1.46, 2000/04/25 08:42:32 version 1.50, 2000/05/13 21:08:25
Line 1 Line 1
 /* decode.c - ber input decoding routines */  /* decode.c - ber input decoding routines */
 /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.45 1999/12/13 03:54:01 kdz Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.49 2000/05/13 00:36:07 kurt Exp $ */
 /*  /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */   */
 /* Portions  /* Portions
Line 56  ber_get_tag( BerElement *ber ) Line 56  ber_get_tag( BerElement *ber )
                 if ( ber_read( ber, (char *) &xbyte, 1 ) != 1 )                  if ( ber_read( ber, (char *) &xbyte, 1 ) != 1 )
                         return( LBER_DEFAULT );                          return( LBER_DEFAULT );
   
                 tag << 8;                  tag <<= 8;
                 tag &= 0x00ffUL & (ber_tag_t) xbyte;                  tag |= 0x00ffUL & (ber_tag_t) xbyte;
   
                 if ( ! (xbyte & LBER_MORE_TAG_MASK) )                  if ( ! (xbyte & LBER_MORE_TAG_MASK) )
                         break;                          break;
Line 67  ber_get_tag( BerElement *ber ) Line 67  ber_get_tag( BerElement *ber )
         if ( i == sizeof(ber_tag_t) )          if ( i == sizeof(ber_tag_t) )
                 return( LBER_DEFAULT );                  return( LBER_DEFAULT );
   
         /* want leading, not trailing 0's */  
         return tag;          return tag;
 }  }
   
Line 230  ber_get_int( Line 229  ber_get_int(
 }  }
   
 ber_tag_t  ber_tag_t
   ber_get_enum(
           BerElement *ber,
           ber_int_t *num )
   {
           ber_get_int( ber, num );
   }
   
   ber_tag_t
 ber_get_stringb(  ber_get_stringb(
         BerElement *ber,          BerElement *ber,
         char *buf,          char *buf,

Removed from v.1.46  
changed lines
  Added in v.1.50


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org