2 * Copyright (c) 1990 Regents of the University of Michigan.
5 * Redistribution and use in source and binary forms are permitted
6 * provided that this notice is preserved and that due credit is given
7 * to the University of Michigan at Ann Arbor. The name of the University
8 * may not be used to endorse or promote products derived from this
9 * software without specific prior written permission. This software
10 * is provided ``as is'' without express or implied warranty.
24 struct seqorset *ber_sos;
25 unsigned long ber_tag;
26 unsigned long ber_len;
29 #define LBER_USE_DER 0x01
30 #define LBER_USE_INDEFINITE_LEN 0x02
31 #define LBER_TRANSLATE_STRINGS 0x04
33 BERTranslateProc ber_encode_translate_proc;
34 BERTranslateProc ber_decode_translate_proc;
36 #define NULLBER ((BerElement *) 0)
46 int sb_naddr; /* > 0 implies using CLDAP (UDP) */
47 void *sb_useaddr; /* pointer to sockaddr to use next */
48 void *sb_fromaddr; /* pointer to message source sockaddr */
49 void **sb_addrs; /* actually an array of pointers to
52 int sb_options; /* to support copying ber elements */
53 #define LBER_TO_FILE 0x01 /* to a file referenced by sb_fd */
54 #define LBER_TO_FILE_ONLY 0x02 /* only write to file, not network */
55 #define LBER_MAX_INCOMING_SIZE 0x04 /* impose limit on incoming stuff */
56 #define LBER_NO_READ_AHEAD 0x08 /* read only as much as requested */
60 #define READBUFSIZ 8192
64 unsigned long sos_clen;
65 unsigned long sos_tag;
68 struct seqorset *sos_next;
70 #define NULLSEQORSET ((Seqorset *) 0)
72 #endif /* _LBER_INT_H */