|
|
Initial revision
/* commonarg.h - directory operation common arguments */
/*
* $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/h/quipu/commonarg.h,v 1.1 2018/04/24 16:12:56 root Exp $
*
*
* $Log: commonarg.h,v $
* Revision 1.1 2018/04/24 16:12:56 root
* Initial revision
*
* Revision 7.0 89/11/23 21:56:25 mrose
* Release 6.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"
struct security_parms {
struct certificate_list *sp_path;
DN sp_name;
char *sp_time;
struct random_number *sp_random;
char sp_target;
};
typedef struct extension
{
int ext_id;
int 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 */
} common_results, CommonResults;
typedef struct entrystruct { /* Represents EntryInformation */
DN ent_dn;
Attr_Sequence ent_attr;
int 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
time_t ent_age;
/* age of chaced info */
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 */
char eis_infotypes;
#define EIS_ATTRIBUTETYPESONLY 0
#define EIS_ATTRIBUTESANDVALUES 1
}entryinfoselection, EntryInfoSelection;
#endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.