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

version 1.4, 1998/11/22 05:43:49 version 1.9, 1999/08/03 16:14:27
Line 1 Line 1
 /* idtest.c - ber decoding test program using isode libraries */  /* idtest.c - ber decoding test program using isode libraries */
 /*  /*
    * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
    * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
    */
   /* 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.
  *   *
Line 15 Line 19
   
 #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 36  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 66  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.9


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