cldappgpkeyserver.h

来自「可以实现对邮件的加密解密以及签名」· C头文件 代码 · 共 83 行

H
83
字号
/*____________________________________________________________________________
        Copyright (C) 2002 PGP Corporation
        All rights reserved.

        $Id: CLDAPPGPKeyServer.h,v 1.6 2002/11/05 00:10:44 dallen Exp $
____________________________________________________________________________*/
#ifndef Included_CLDAPPGPKeyServer_h	/* [ */
#define Included_CLDAPPGPKeyServer_h


#include "pgpSockets.h"
#include "CKeyServer.h"
#include "pgpLDAP.h"
#include "pgpKeyServer.h"


class CLDAPPGPKeyServer : public CKeyServer
{
public:
							CLDAPPGPKeyServer(
								PGPContextRef					inContext,
								const char *					inHostName,
								PGPUInt32						inHostAddress,
								PGPUInt16						inHostPort,
								PGPKeyServerProtocol			inType,
								PGPKeyServerClass				inClass,
								PGPKeyServerAccessType			inAccessType,
								const char *					inKeyStoreDN);
	virtual					~CLDAPPGPKeyServer();
	
	virtual void			Cancel();

	virtual void			Open( PGPtlsSessionRef inTLSSession );
	virtual void			Close();

	virtual void			Query(
								PGPFilterRef		inFilterRef,
								PGPKeyDBRef *		outFoundKeys);
	virtual void			Upload(PGPKeyUploadPreference inSendPrivateKeys,
								PGPKeySetRef inKeysToUpload,
								PGPKeySetRef * outKeysThatFailed);
	virtual void			Delete(PGPKeySetRef inKeysToDelete,
								PGPKeySetRef * outKeysThatFailed);
	virtual void			Disable(PGPKeySetRef inKeysToDelete,
								PGPKeySetRef * outKeysThatFailed);
	virtual void			GetAccessType( PGPKeyServerAccessType &outAccessType )
							{ 
								outAccessType = mAccessType;
							}
	void					GetLDAP( PGPldapContextRef &outLDAP, PGPBoolean &outSecured )
							{
								outLDAP = mLDAP;
								outSecured = mSecured;
							}
	void					SetLDAP( PGPldapContextRef inLDAP, PGPBoolean inSecured )
							{
								mLDAP = inLDAP;
								mSecured = inSecured;
							}
								
protected:
	PGPContextRef			mContext;
	PGPKeyServerAccessType	mAccessType;
	PGPldapContextRef		mLDAP;
	char *					mBaseKeySpaceDN;
	PGPExportFormat			mExportFormat;
	
};



#endif /* ] Included_CLDAPPGPKeyServer_h */


/*__Editor_settings____

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

⌨️ 快捷键说明

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