Diff for /libraries/liblber/idtest.c between versions 1.4 and 1.17

version 1.4, 1998/11/22 05:43:49 version 1.17, 2005/01/01 19:49:43
Line 1 Line 1
 /* idtest.c - ber decoding test program using isode libraries */  /* idtest.c - ber decoding test program using isode libraries */
 /*  /* $OpenLDAP: pkg/ldap/libraries/liblber/idtest.c,v 1.16 2004/01/01 18:15:25 kurt Exp $ */
  * Copyright (c) 1990 Regents of the University of Michigan.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
    *
    * 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 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 10 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"
   
 #include <stdio.h>  #include <stdio.h>
   
   #include <ac/stdlib.h>
   
 #ifdef HAVE_PSAP_H  #ifdef HAVE_PSAP_H
 #include <psap.h>  #include <psap.h>
 #include <quipu/attr.h>  #include <quipu/attr.h>
Line 30  main( int argc, char **argv ) Line 49  main( int argc, char **argv )
         /* read the pe from standard in */          /* read the pe from standard in */
         if ( (psin = ps_alloc( std_open )) == NULLPS ) {          if ( (psin = ps_alloc( std_open )) == NULLPS ) {
                 perror( "ps_alloc" );                  perror( "ps_alloc" );
                 exit( 1 );                  exit( EXIT_FAILURE );
         }          }
         if ( std_setup( psin, stdin ) == NOTOK ) {          if ( std_setup( psin, stdin ) == NOTOK ) {
                 perror( "std_setup" );                  perror( "std_setup" );
                 exit( 1 );                  exit( EXIT_FAILURE );
         }          }
         /* write the pe to standard out */          /* write the pe to standard out */
         if ( (psout = ps_alloc( std_open )) == NULLPS ) {          if ( (psout = ps_alloc( std_open )) == NULLPS ) {
                 perror( "ps_alloc" );                  perror( "ps_alloc" );
                 exit( 1 );                  exit( EXIT_FAILURE );
         }          }
         if ( std_setup( psout, stdout ) == NOTOK ) {          if ( std_setup( psout, stdout ) == NOTOK ) {
                 perror( "std_setup" );                  perror( "std_setup" );
                 exit( 1 );                  exit( EXIT_FAILURE );
         }          }
         /* pretty print it to standard error */          /* pretty print it to standard error */
         if ( (pserr = ps_alloc( std_open )) == NULLPS ) {          if ( (pserr = ps_alloc( std_open )) == NULLPS ) {
                 perror( "ps_alloc" );                  perror( "ps_alloc" );
                 exit( 1 );                  exit( EXIT_FAILURE );
         }          }
         if ( std_setup( pserr, stderr ) == NOTOK ) {          if ( std_setup( pserr, stderr ) == NOTOK ) {
                 perror( "std_setup" );                  perror( "std_setup" );
                 exit( 1 );                  exit( EXIT_FAILURE );
         }          }
   
         while ( (pe = ps2pe( psin )) != NULLPE ) {          while ( (pe = ps2pe( psin )) != NULLPE ) {
Line 60  main( int argc, char **argv ) Line 79  main( int argc, char **argv )
                 pe2ps( psout, pe );                  pe2ps( psout, pe );
         }          }
   
         exit( 0 );          exit( EXIT_SUCCESS );
 #else  #else
         fprintf(stderr, "requires ISODE X.500 distribution.\n");          fprintf(stderr, "requires ISODE X.500 distribution.\n");
         exit( 1 );          return( EXIT_FAILURE );
 #endif  #endif
 }  }

Removed from v.1.4  
changed lines
  Added in v.1.17


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