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

📄 commonarg.h

📁 SecuDe是一个由安全应用程序接口组成,对验证机制、证件处理、PEM、X.400报文处理和密钥管理提供支持。SecuDe提供DES、 RSA杂凑函数、密钥生成以及数字签名的生成和核实等多种密码机制。
💻 H
字号:
/* commonarg.h - directory operation common arguments *//* * $Header: /xtel/isode/isode/h/quipu/RCS/commonarg.h,v 9.0 1992/06/16 12:23:11 isode Rel $ * * * $Log: commonarg.h,v $ * Revision 9.0  1992/06/16  12:23:11  isode * Release 8.0 * *//* *				  NOTICE * *    Acquisition, use, and distribution of this module and related *    materials are subject to the restrictions of a license agreement. *    Consult the Preface in the User's Manual for the full terms of *    this agreement. * */#ifndef COMMONARG#define COMMONARG#include "quipu/attrvalue.h"#include "quipu/dsp.h"#include "quipu/authen.h"#define OP_READ 1#define OP_COMPARE 2#define OP_ABANDON 3#define OP_LIST 4#define OP_SEARCH 5#define OP_ADDENTRY 6#define OP_REMOVEENTRY 7#define OP_MODIFYENTRY 8#define OP_MODIFYRDN 9#define OP_GETEDB 10struct security_parms {	struct certificate_list *sp_path;	DN		sp_name;	char		*sp_time;	struct random_number *sp_random;	int		sp_target;};typedef struct extension    {	int		  ext_id;	char		  ext_critical;	PE		  ext_item;	struct extension	* ext_next;    } *Extension;#define NULLEXT		((Extension) 0)#define ext_alloc()	(Extension) smalloc(sizeof(struct extension))typedef struct common_args {    /* Common arguments for operations      */    ServiceControl      ca_servicecontrol;    DN                  ca_requestor;    struct op_progress  ca_progress;    int                 ca_aliased_rdns;#define CA_NO_ALIASDEREFERENCED -1    struct security_parms * ca_security;    struct signature    * ca_sig;    struct extension	* ca_extensions;} common_args, CommonArgs;#define NULL_COMMONARG ((struct common_args *) NULL)typedef struct common_results {    DN          cr_requestor;				/* Secuity stuff to go here.  The       */				/* is not relevant until this is added  */    char        cr_aliasdereferenced;				/* set to TRUE or FALSE                 */    	/* essentially for pepsy, but may be used for real later */    struct security_parms * cr_security;    struct signature    * cr_sig;  /* NEW NEW NEW NEW, modified by JL, 19.02.1993 */    struct alg_id * cr_alg;    char * 	cr_tmp;    int 	cr_len;} common_results, CommonResults;typedef struct entrystruct {   /* Represents EntryInformation           */    DN                  ent_dn;    Attr_Sequence       ent_attr;    char                ent_iscopy;#define INFO_MASTER 0x001#define INFO_COPY   0x002				/* This is the only info derivable by   */				/* protocol                             */				/* INCA also distingusihes local cached */#define INFO_CACHE 0x003    char                ent_pepsycopy;    time_t              ent_age;				/* age of chaced info                   */    struct entry	*ent_eptr;				/* for search acl purposes... yuck!	*/    struct entrystruct  *ent_next;} entrystruct, EntryInfo;#define NULLENTRYINFO ((EntryInfo *) 0)#define entryinfo_alloc()          (EntryInfo *) smalloc(sizeof(EntryInfo))#define entryinfo_cmp(x,y)          (((dn_cmp (x.ent_dn ,y.ent_dn) == OK) && (as_cmp (x.ent_attr ,y.ent_attr) == OK)) ? OK : NOTOK)typedef struct entryinfoselection {				/* Rerpesents EntryInformationSelection */    char        eis_allattributes;				/* if set to TRUE, all attributes       */				/* returned, if not as per next arg     */    Attr_Sequence eis_select;				/* Sequence of attributes used to show  */				/* which TYPES are wanted               */    int        eis_infotypes;#define EIS_ATTRIBUTETYPESONLY 0#define EIS_ATTRIBUTESANDVALUES 1}entryinfoselection, EntryInfoSelection;#define LSR_NOLIMITPROBLEM      -1#define LSR_TIMELIMITEXCEEDED   0#define LSR_SIZELIMITEXCEEDED   1#define LSR_ADMINSIZEEXCEEDED   2typedef struct part_outcome	{	int             poq_limitproblem;	ContinuationRef poq_cref;	char		poq_no_ext;	} POQ;#endif

⌨️ 快捷键说明

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