⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pgpldappriv.h

📁 PGP8.0源码 请认真阅读您的文件包然后写出其具体功能
💻 H
字号:
/*____________________________________________________________________________
	Copyright (C) 2002 PGP Corporation
	All rights reserved.

	$Id: pgpLDAPPriv.h,v 1.11 2002/08/06 20:11:12 dallen Exp $
____________________________________________________________________________*/
#ifndef Included_pgpLDAPPriv_h	/* [ */
#define Included_pgpLDAPPriv_h

#include "pgpLDAP.h"

#define	CKERR			if( IsPGPError( err ) ) { goto error; }
#define CKNULL(val)		if( IsNull( val ) ) \
						{ \
							err = kPGPError_OutOfMemory;\
							goto error;\
						}

typedef struct PGPldapContext
{
	char *				hostname;
	PGPInt16			port;

	PGPSocketRef		sock;

	PGPldapMessageID	nextMessageID;

	PGPldapMessageRef	response;

	/* Options */
	PGPUInt32			sizelimit;	/* Number of entries */
	PGPUInt32			timelimit;	/* Number of seconds */
	PGPldapDeref		deref;
	
	/* Global errors */
	PGPldapResult		result;
	char *				matched;
	char *				message;

	/* Thread-specific errors */
	PGPldapThreadFns	threadFns;

	PGPMemoryMgrRef 	memMgr;
} PGPldapContext;

typedef struct PGPldapMessage
{
	PGPldapMessageID		messageID;
	PGPldapType 			type;

	/*
	 * This is just a pointer to the PGPberElement. Freeing the 
	 * PGPldapMessage does not mean freeing the PGPberElement.
	 */
	PGPberElementRef		ber;

	struct PGPldapMessage *	next;
	struct PGPldapMessage *	prev;

} PGPldapMessage;

typedef struct PGPldapMessageSort
{
	PGPldapMessageRef	message;
	PGPldapContextRef	pgpLDAP;
	char *				attr;
	PGPInt32			(*compare)( const void * a, const void * b );
} PGPldapMessageSort;

PGPError	pgpNewLDAPURLDesc(
							PGPldapContextRef	pgpLDAP,
							PGPldapURLDesc **	lud );
PGPError	pgpLDAPSend(
							PGPldapContextRef	pgpLDAP,
							PGPberElementRef	ber );
PGPError	pgpCopyLDAPMessage(
							PGPldapMessageRef	src,
							PGPldapMessageRef	dst );
PGPError	pgpLDAPGetMessageErrno(
							PGPldapContextRef	pgpLDAP,
							PGPldapMessageRef	message );
PGPError	pgpLDAPGetSubstring(
							char *				value,
							char *				substring,
							PGPldapSubstring *	substringType,
							PGPSize *			inc );
PGPError	pgpLDAPGetSubfilter(
							char *				filter,
							char *				subfilter );
PGPError	pgpLDAPAddFilter(
							PGPldapContextRef	pgpLDAP,
							PGPberElementRef	ber,
							char *				inFilter );
PGPError	pgpLDAPCountValues(
							PGPldapContextRef	pgpLDAP,
							PGPberElementRef	ber,
							PGPSize	*			num );
PGPInt32	pgpLDAPSortCompare(
							const void *		s1,
							const void *		s2 );

#endif /* ] Included_pgpLDAPPriv_h */


/*__Editor_settings____

	Local Variables:
	tab-width: 4
	End:
	vi: ts=4 sw=4
	vim: si
_____________________*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -