Diff for /libraries/liblber/decode.c between versions 1.96.2.1 and 1.101.2.1

version 1.96.2.1, 2003/09/18 15:43:31 version 1.101.2.1, 2005/01/20 18:03:49
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.97 2003/07/08 01:46:20 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/decode.c,v 1.101 2004/09/04 02:54:28 kurt Exp $ */
 /*  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   *
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * Copyright 1998-2005 The OpenLDAP Foundation.
    * All rights reserved.
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted only as authorized by the OpenLDAP
    * Public License.
    *
    * A copy of this license is available in the file LICENSE in the
    * top-level directory of the distribution or, alternatively, at
    * <http://www.OpenLDAP.org/license.html>.
  */   */
 /* Portions  /* Portions Copyright (c) 1990 Regents of the University of Michigan.
  * Copyright (c) 1990 Regents of the University of Michigan.  
  * All rights reserved.   * All rights reserved.
  *   *
  * Redistribution and use in source and binary forms are permitted   * Redistribution and use in source and binary forms are permitted
Line 15 Line 23
  * software without specific prior written permission. This software   * software without specific prior written permission. This software
  * is provided ``as is'' without express or implied warranty.   * is provided ``as is'' without express or implied warranty.
  */   */
   /* ACKNOWLEDGEMENTS:
    * This work was originally developed by the University of Michigan
    * (as part of U-MICH LDAP).
    */
   
 #include "portable.h"  #include "portable.h"
   
Line 657  ber_scanf ( BerElement *ber, Line 669  ber_scanf ( BerElement *ber,
   
         fmt_reset = fmt;          fmt_reset = fmt;
   
 #ifdef NEW_LOGGING  
         LDAP_LOG( BER, ENTRY, "ber_scanf fmt (%s) ber:\n", fmt, 0, 0 );  
   
         if ( LDAP_LOGS_TEST(BER, DETAIL2 )) {  
                         BER_DUMP(( "liblber", LDAP_LEVEL_DETAIL2, ber, 1 ));  
         }  
 #else  
         ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug,          ber_log_printf( LDAP_DEBUG_TRACE, ber->ber_debug,
                 "ber_scanf fmt (%s) ber:\n", fmt );                  "ber_scanf fmt (%s) ber:\n", fmt );
         ber_log_dump( LDAP_DEBUG_BER, ber->ber_debug, ber, 1 );          ber_log_dump( LDAP_DEBUG_BER, ber->ber_debug, ber, 1 );
 #endif  
   
         for ( rc = 0; *fmt && rc != LBER_DEFAULT; fmt++ ) {          for ( rc = 0; *fmt && rc != LBER_DEFAULT; fmt++ ) {
                 /* When this is modified, remember to update                  /* When this is modified, remember to update
Line 812  ber_scanf ( BerElement *ber, Line 816  ber_scanf ( BerElement *ber,
   
                 default:                  default:
                         if( ber->ber_debug ) {                          if( ber->ber_debug ) {
 #ifdef NEW_LOGGING  
                                 LDAP_LOG( BER, ERR,   
                                         "ber_scanf: unknown fmt %c\n", *fmt, 0, 0 );  
 #else  
                                 ber_log_printf( LDAP_DEBUG_ANY, ber->ber_debug,                                  ber_log_printf( LDAP_DEBUG_ANY, ber->ber_debug,
                                         "ber_scanf: unknown fmt %c\n", *fmt );                                          "ber_scanf: unknown fmt %c\n", *fmt );
 #endif  
                         }                          }
                         rc = LBER_DEFAULT;                          rc = LBER_DEFAULT;
                         break;                          break;

Removed from v.1.96.2.1  
changed lines
  Added in v.1.101.2.1


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