/*
*
* Portions Copyright 1998 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/* test.c - lber encoding test program */
/*
* Copyright (c) 1990 Regents of the University of Michigan.
* All rights reserved.
*/
#include <stdio.h>
#include <string.h>
#ifdef MACOS
#include <stdlib.h>
#include <unix.h>
#include <fcntl.h>
#include <console.h>
#else /* MACOS */
#endif /* MACOS */
#include "lber.h"
{
}
{
char *s, *p;
extern char *optarg;
if ( argc < 2 ) {
exit( 1 );
}
#ifdef MACOS
< 0 ) {
perror( "open" );
exit( 1 );
}
#endif /* MACOS */
perror( "ber_alloc" );
exit( 1 );
}
num = 7;
exit( 1 );
}
perror( "ber_flush" );
exit( 1 );
}
#ifdef notdef
for ( s = argv[1]; *s; s++ ) {
break;
*p = '\0';
switch ( *s ) {
case 'i': /* int */
case 'b': /* boolean */
exit( 1 );
}
break;
case 'e': /* enumeration */
break;
case 'n': /* null */
break;
case 'o': /* octet string (non-null terminated) */
break;
case 's': /* string */
break;
case 'B': /* bit string */
break;
case 't': /* tag for the next element */
break;
case 'v': /* vector of strings */
break;
break;
}
break;
case 'V': /* sequences of strings + lengths */
break;
break;
}
break;
case '{': /* begin sequence */
break;
case '}': /* end sequence */
break;
case '[': /* begin set */
break;
case ']': /* end set */
break;
default:
#ifndef NO_USERINTERFACE
#endif /* NO_USERINTERFACE */
rc = -1;
break;
}
}
}
#endif
return( 0 );
}