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.
21 #define LBER_ITEM_BERELEMENT 1
22 #define LBER_ITEM_SOCKBUF 2
24 extern int lber_int_debug;
27 short ber_item_type; /* always LBER_ITEM_BERELEMENT */
33 unsigned long ber_tag;
34 unsigned long ber_len;
40 struct seqorset *ber_sos;
42 BERTranslateProc ber_encode_translate_proc;
43 BERTranslateProc ber_decode_translate_proc;
45 #define NULLBER ((BerElement *) 0)
48 short sb_item_type; /* always LBER_ITEM_SOCKBUF */
49 short sb_options; /* to support copying ber elements */
63 int sb_naddr; /* > 0 implies using CLDAP (UDP) */
64 void *sb_useaddr; /* pointer to sockaddr to use next */
65 void *sb_fromaddr; /* pointer to message source sockaddr */
66 void **sb_addrs; /* actually an array of pointers to
69 #define READBUFSIZ 8192
73 unsigned long sos_clen;
74 unsigned long sos_tag;
77 struct seqorset *sos_next;
79 #define NULLSEQORSET ((Seqorset *) 0)
84 LDAP_F int lber_log_printf LDAP_P((
90 LDAP_F int lber_log_bprint LDAP_P((
96 LDAP_F int lber_log_dump LDAP_P((
102 LDAP_F int lber_log_sos_dump LDAP_P((
107 #endif /* _LBER_INT_H */