Diff for /libraries/liblber/dtest.c between versions 1.30 and 1.32.2.3

version 1.30, 2003/05/19 08:37:09 version 1.32.2.3, 2005/01/20 17:01:00
Line 1 Line 1
 /* dtest.c - lber decoding test program */  /* dtest.c - lber decoding test program */
 /* $OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.29 2003/01/03 19:20:50 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/liblber/dtest.c,v 1.32.2.2 2004/01/01 18:16:29 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 76  main( int argc, char **argv ) Line 88  main( int argc, char **argv )
   
         for (;;) {          for (;;) {
                 tag = ber_get_next( sb, &len, ber);                  tag = ber_get_next( sb, &len, ber);
                 if( tag == LBER_ERROR ) {                  if( tag != LBER_ERROR ) break;
                         if( errno == EWOULDBLOCK ) continue;  
                         if( errno == EAGAIN ) continue;                  if( errno == EWOULDBLOCK ) continue;
                         perror( "ber_get_next" );                  if( errno == EAGAIN ) continue;
                         return( EXIT_FAILURE );  
                 }                  perror( "ber_get_next" );
                   return( EXIT_FAILURE );
         }          }
   
         printf("decode: message tag 0x%lx and length %ld\n",          printf("decode: message tag 0x%lx and length %ld\n",
                 (unsigned long) tag, (long) len );                  (unsigned long) tag, (long) len );
   
         for( s = argv[1]; *s; s++ ) {          for( s = argv[1]; *s; s++ ) {
                 char buf[128];                  char buf[128];

Removed from v.1.30  
changed lines
  Added in v.1.32.2.3


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