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

📄 pgpldap.h

📁 可以实现对邮件的加密解密以及签名
💻 H
📖 第 1 页 / 共 2 页
字号:
	PGPError 
PGPldapSimpleBindSync(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				password );

	/* ldap_simple_bind */
	PGPError
PGPldapSimpleBind(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				password,
	PGPldapMessageID *	messageID );

	/* ldap_bind_s */
	PGPError
PGPldapBindSync(
	PGPldapContextRef	pgpLDAP, 
	char *				dn,
	char *				password,
	PGPldapAuth			method );

	/* ldap_bind */
	PGPError
PGPldapBind(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				password,
	PGPldapAuth			method,
	PGPldapMessageID *	messageID );

	/* ldap_unbind */
	PGPError
PGPldapUnbind(
	PGPldapContextRef	pgpLDAP );


/* Searching functions */
	/* ldap_search_s */
	PGPError 
PGPldapSearchSync(
	PGPldapContextRef	pgpLDAP,
	char *				base,
	PGPldapScope		scope,
	char *				filter,
	char *				attrs[],
	PGPBoolean			attrsOnly,
	PGPldapMessageRef	resultMessage );

	/* ldap_search_st */
	PGPError
PGPldapSearchSyncTimeout(
	PGPldapContextRef		pgpLDAP,
	char *					base,
	PGPldapScope			scope,
	char *					filter,
	char *					attrs[],
	PGPBoolean				attrsOnly,
	PGPSocketsTimeValue *	tv,
	PGPldapMessageRef		resultMessage );

	/* ldap_search */
	PGPError 
PGPldapSearch(
	PGPldapContextRef	pgpLDAP,
	char *				base,
	PGPldapScope		scope,
	char *				filter,
	char *				attrs[],
	PGPBoolean			attrsOnly,
	PGPldapMessageID *	messageID );

	/* ldap_count_entries */
	PGPError
PGPldapCountEntries(
	PGPldapContextRef	pgpLDAP, 
	PGPldapMessageRef	result,
	PGPInt32 *			num );

	/* ldap_first_entry */
	PGPError
PGPldapFirstEntry(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	result,
	PGPldapMessageRef *	outMessage );

	/* ldap_next_entry */
	PGPError
PGPldapNextEntry(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	prevEntry,
	PGPldapMessageRef *	outMessage );

	/* ldap_get_dn */
	PGPError
PGPldapGetDN(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	entry,
	char **				dn );	/* Should be freed by PGPFreeData */

	/* ldap_first_attribute */
	PGPError
PGPldapFirstAttribute( 
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	entry,
	PGPberElementRef *	ber,
	char **				attr );	/* Should be freed by PGPFreeData */

	/* ldap_next_attribute */
	PGPError
PGPldapNextAttribute(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	entry,
	PGPberElementRef	ber,
	char **				attr );	/* Should be freed by PGPFreeData */

	/* ldap_get_values */
	PGPError
PGPldapGetValues(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	entry,
	char *				attr,
	char ***			values );	/* Should be freed by PGPFreeLDAPValues */

	/* ldap_get_values_len */
	PGPError
PGPldapGetValuesLen(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	entry,
	char *				attr,
	PGPberValue ***		values );	/* Should be freed by PGPFreeLDAPValuesLen */

	/* ldap_count_values */
	PGPError
PGPldapCountValues(
	PGPldapContextRef	pgpLDAP,
	char **				values,
	PGPSize *			num );

	/* ldap_count_values_len */
	PGPError
PGPldapCountValuesLen(
	PGPldapContextRef	pgpLDAP,
	PGPberValue **		values,
	PGPSize *			num );


/* Update functions */

	/* ldap_modify */
	PGPError
PGPldapModify(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	PGPldapMod *		mod[],
	PGPldapMessageID *	messageID );

	/* ldap_modify_s */
	PGPError
PGPldapModifySync(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	PGPldapMod *		mod[] );

	/* ldap_add */
	PGPError
PGPldapAdd(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	PGPldapMod *		mod[],
	PGPldapMessageID *	messageID );

	/* ldap_add_s */
	PGPError
PGPldapAddSync(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	PGPldapMod *		mod[] );

	/* ldap_delete */
	PGPError
PGPldapDelete(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	PGPldapMessageID *	messageID );

	/* ldap_delete_s */
	PGPError
PGPldapDeleteSync(
	PGPldapContextRef	pgpLDAP,
	char *				dn );

	/* ldap_modrdn2 */
	PGPError
PGPldapModifyRDN(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				newRDN,
	PGPBoolean			deleteOldRDN,
	PGPldapMessageID *	messageID );

	/* ldap_modrdn2_s */
	PGPError
PGPldapModifyRDNSync(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				newRDN,
	PGPBoolean			deleteOldRDN );

	/* ldap_compare */
	PGPError
PGPldapCompare(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				type,
	char *				value,
	PGPldapMessageID *	messageID );

	/* ldap_compare_s */
	PGPError
PGPldapCompareSync(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	char *				type,
	char *				value,
	PGPBoolean *		equal );

	PGPError
PGPldapGetCompareResult(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageID	messageID,
	PGPBoolean *		equal );


/* Other functions */
	/* ldap_result */
	PGPError
PGPldapGetResult(
	PGPldapContextRef		pgpLDAP,
	PGPldapMessageID		messageID,
	PGPBoolean				all,
	PGPSocketsTimeValue *	timeout,
	PGPldapMessageRef		result,
	PGPldapType *			messageType );

	/* ldap_abandon */
	PGPError
PGPldapAbandon(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageID	messageID );

	/* ldap_msgid */
	PGPError
PGPldapGetMessageID(
	PGPldapContextRef	pgpLDAP, 
	PGPldapMessageRef	result,
	PGPldapMessageID *	messageID );

	/* ldap_is_ldap_url */
	PGPError
PGPldapIsLDAPURL(
	PGPldapContextRef	pgpLDAP,
	char *				url,
	PGPBoolean *		isURL );

	/* ldap_url_parse */
	PGPError
PGPldapURLParse( 
	PGPldapContextRef	pgpLDAP,
	char *				url,
	PGPldapURLDesc **	outLDAPDesc );	/* Should be freed by PGPFreeLDAPURLDesc */

	/* ldap_url_search */
	PGPError
PGPldapURLSearch(
	PGPldapContextRef	pgpLDAP,
	char *				url,
	PGPBoolean			attrsOnly,
	PGPldapMessageID *	messageID );

	/* ldap_url_search */
	PGPError
PGPldapURLSearchSync(
	PGPldapContextRef	pgpLDAP,
	char *				url,
	PGPBoolean			attrsOnly,
	PGPldapMessageRef	resultMessage );

	/* ldap_url_search */
	PGPError
PGPldapURLSearchSyncTimeout(
	PGPldapContextRef		pgpLDAP,
	char *					url,
	PGPBoolean				attrsOnly,
	PGPSocketsTimeValue *	tv,
	PGPldapMessageRef		resultMessage );

	/* ldap_explode_dn */
	PGPError
PGPldapExplodeDN(
	PGPldapContextRef	pgpLDAP,
	char *				dn,
	PGPBoolean			noTypes,
	char ***			components );	/* Should be freed by PGPFreeLDAPValues */

	/* ldap_sort_entries */
	PGPError
PGPldapSortEntries(
	PGPldapContextRef	pgpLDAP,
	PGPldapMessageRef	chain,
	char *				attr,
	PGPInt32			(*compare)( char ** a, char ** b ),
	PGPldapMessageRef	sortedChain );

	/* ldap_sort_values */
	PGPError
PGPldapSortValues(
	PGPldapContextRef	pgpLDAP,
	char **				vals,
	PGPInt32			(*compare)( char ** a, char ** b ),
	char ***			sortedVals );

	/* ldap_sort_strcasecmp */
	PGPInt32
PGPldapCompareStringsIgnoreCase(
	char **				s1,
	char **				s2 );

PGP_END_C_DECLARATIONS

#endif /* ] Included_pgpLDAP_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 + -