version 1.2, 1998/10/24 23:41:55
|
version 1.2.2.3, 1998/12/31 19:32:05
|
Line 1
|
Line 1
|
/* test.c - lber encoding test program */ |
/* test.c - lber encoding test program */ |
/* |
/* |
|
* 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 10
|
Line 14
|
|
|
#include <ac/socket.h> |
#include <ac/socket.h> |
#include <ac/string.h> |
#include <ac/string.h> |
|
#include <ac/unistd.h> |
|
|
#ifdef HAVE_CONSOLE_H |
#ifdef HAVE_CONSOLE_H |
#include <console.h> |
#include <console.h> |
Line 22 static void usage( char *name )
|
Line 27 static void usage( char *name )
|
fprintf( stderr, "usage: %s fmtstring\n", name ); |
fprintf( stderr, "usage: %s fmtstring\n", name ); |
} |
} |
|
|
|
int |
main( int argc, char **argv ) |
main( int argc, char **argv ) |
{ |
{ |
#ifdef notdef |
#ifdef notdef |
Line 32 main( int argc, char **argv )
|
Line 38 main( int argc, char **argv )
|
Seqorset *sos = NULLSEQORSET; |
Seqorset *sos = NULLSEQORSET; |
BerElement *ber; |
BerElement *ber; |
Sockbuf sb; |
Sockbuf sb; |
extern char *optarg; |
|
|
|
if ( argc < 2 ) { |
if ( argc < 2 ) { |
usage( argv[0] ); |
usage( argv[0] ); |