Diff for /libraries/liblber/idtest.c between versions 1.8 and 1.8.8.2

version 1.8, 1999/06/02 22:37:46 version 1.8.8.2, 1999/09/10 20:25:24
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.10 1999/09/08 17:06:27 kdz Exp $ */
 /*  /*
  * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 36  main( int argc, char **argv ) Line 37  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 66  main( int argc, char **argv ) Line 67  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");
         return( EXIT_FAILURE );          return( EXIT_FAILURE );

Removed from v.1.8  
changed lines
  Added in v.1.8.8.2


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