|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T o
Length: 3114 (0xc2a)
Types: TextFile
Names: »oid.h«
└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
└─⟦eba4602b1⟧ »./isode-5.0.tar.Z«
└─⟦d3ac74d73⟧
└─⟦this⟧ »isode-5.0/h/quipu/oid.h«
/* oid.h - object identifier stuff */
/*
* $Header: /f/osi/h/quipu/RCS/oid.h,v 6.0 89/03/18 23:33:01 mrose Rel $
*
*
* $Log: oid.h,v $
* Revision 6.0 89/03/18 23:33:01 mrose
* Release 5.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 QUIPUOID
#define QUIPUOID
#include "psap.h"
/* Definitions of OID's the DSA needs to know */
/* X500 defined attributes */
#define OBJECTCLASS_OID "2.5.4.0"
#define ALIAS_OID "2.5.4.1"
#define CN_OID "2.5.4.3"
#define DSAADDRESS_OID "2.5.4.29"
#define PASSWORD_OID "2.5.4.35"
/* QUIPU defined attributes */
#define SCHEMA_OID "0.9.2342.19200300.99.1.1"
#define ACL_OID "0.9.2342.19200300.99.1.2"
#define EDBINFO_OID "0.9.2342.19200300.99.1.3"
#define MASTERDSA_OID "0.9.2342.19200300.99.1.4"
#define SLAVEDSA_OID "0.9.2342.19200300.99.1.5"
#define CONTROL_OID "0.9.2342.19200300.99.1.15"
#define VERSION_OID "0.9.2342.19200300.99.1.16"
/* THORN defined attribute */
#define MANAGER_OID "0.9.2342.19200300.100.1.10"
/* NON leaf object class */
#define NONLEAFOBJECT "0.9.2342.19200300.99.3.6"
/* X500 defined protocol oids */
#ifdef USE_BUILTIN_OIDS
#define DIR_ACCESS_AC oid_cpy(str2oid("2.5.3.1"))
#define DIR_SYSTEM_AC oid_cpy(str2oid("2.5.3.2"))
#define DIR_ACCESS_AS oid_cpy(str2oid("2.5.9.1"))
#define DIR_SYSTEM_AS oid_cpy(str2oid("2.5.9.2"))
#define DIR_ACSE oid_cpy(str2oid("2.5.9.3"))
#else /* use isobjects */
#define DIR_ACCESS_AC oid_cpy(ode2oid("directory directoryAccessAC"))
#define DIR_SYSTEM_AC oid_cpy(ode2oid("directory directorySystemAC"))
#define DIR_ACCESS_AS oid_cpy(ode2oid("directory directoryAccessAS"))
#define DIR_SYSTEM_AS oid_cpy(ode2oid("directory directorySystemAS"))
#define DIR_ACSE oid_cpy(ode2oid("directory directoryACSE"))
#endif
/* oid table lookup definitions */
#define SEPERATOR ':'
#define DOT '.'
#define COMMA ','
#define COMMENT '#'
#define BUFSIZE 40
#define TABLESIZE 300
#define OIDPART 1
#define OIDFULL 2
#define OIDNUM 3
typedef struct {
char ot_name [BUFSIZE];
char ot_stroid [BUFSIZE];
OID ot_oid;
} oid_table;
#define NULLTABLE ((oid_table * )0)
typedef struct {
oid_table oa_ot;
int oa_syntax;
} oid_table_attr;
#define NULLTABLE_ATTR ((oid_table_attr *)0)
typedef struct seq_tab {
oid_table_attr * ts_oa;
struct seq_tab * ts_next;
} * table_seq;
#define NULLTABLE_SEQ ((table_seq)0)
typedef struct {
oid_table oc_ot;
struct oid_seq * oc_hierachy;
table_seq oc_must;
table_seq oc_may;
} objectclass;
#define NULLOBJECTCLASS ((objectclass * )0)
oid_table_attr * oid2attr();
oid_table_attr * name2attr();
char * attr2name();
objectclass * oid2oc();
objectclass * name2oc();
char * oc2name();
char * oid2name(); /* find oid wherever it is hiding !!! */
OID name2oid();
OID grab_oid();
char * SkipSpace ();
void StripSpace ();
#endif