/*
*/
/*
* Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0(the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http:/ /www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright(C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _LBER_H
#define _LBER_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _SOLARIS_SDK
#define _SOLARIS_SDK
#endif
#include <stdlib.h> /* to pick up size_t typedef */
#ifdef _SOLARIS_SDK
#ifdef sunos4
#else /* sunos4 */
#endif /* sunos4 */
#endif /* _SOLARIS_SDK */
/*
* Note that LBER_ERROR and LBER_DEFAULT are values that can never appear
* as valid BER tags, and so it is safe to use them to report errors. In
* fact, any tag for which the following is true is invalid:
* (( tag & 0x00000080 ) != 0 ) && (( tag & 0xFFFFFF00 ) != 0 )
*/
/* BER classes and mask */
/* BER encoding type and mask */
/* general BER types we know about */
typedef struct berval {
char *bv_val;
} BerValue;
#ifdef _SOLARIS_SDK
#endif
int free_input);
#ifndef macintosh
#include <winsock.h> /* for SOCKET */
#else
typedef int LBER_SOCKET;
#endif /* _WINDOWS */
#else /* macintosh */
typedef void *LBER_SOCKET;
#endif /* macintosh */
/* calling conventions used by library */
#ifndef LDAP_CALL
#ifndef _WIN32
#else
#define LDAP_CALLBACK
#endif /* _WIN32 */
#else /* _WINDOWS */
#define LDAP_C
#define LDAP_CALLBACK
#define LDAP_PASCAL
#define LDAP_CALL
#endif /* _WINDOWS */
#endif /* LDAP_CALL */
/*
* function prototypes for lber library
*/
#ifndef LDAP_API
#else /* _WINDOWS */
#endif /* _WINDOWS */
#endif /* LDAP_API */
/*
* decode routines
*/
char **buf);
int *boolval);
...);
/*
* encoding routines
*/
/*
* miscellaneous routines
*/
#ifdef __cplusplus
}
#endif
#endif /* _LBER_H */