NAME

xdssap.h - Definitions for the Strong Authentication Package

SYNOPSIS

#include <xom.h>
#include <xds.h>
#include <xdssap.h>

DESCRIPTION

The xdssap.h header defines the object identifiers of directory attribute types and object classes supported by the Strong Authentication Package. It also defines OM classes used to represent the values of the attribute types.

All application programs that include this header must first include the xom.h Object Management header and the xds.h header.

#ifndef XDSSAP_HEADER
#define XDSSAP_HEADER

/* Strong Authentication Package object identifier */
/* { iso(1) identified-organization(3) icd-ecma(12)
     member-company(2) dec(1011) xopen(28) sap(2) } */

#define OMP_O_DS_STRONG_AUTHENT_PKG \
 "\x2B\x0C\x02\x87\x73\x1c\x02"


/* Intermediate object identifier macros */

#ifndef dsP_attributeType     /* joint-iso-ccitt(2)         */
                                /* ds(5) attributeType(4) ... */
#define dsP_attributeType (X)   ("\x55\x04" #X)
#endif

#ifndef dsP_objectClass       /* joint-iso-ccitt(2)         */
                                /* ds(5) objectClass(6) ...   */
#define dsP_objectClass(X)      ("\x55\x06" #X)
#endif

#define dsP_sap_c(X) (OMP_O_DS_STRONG_AUTHENT_PKG #X)


/* OM class names (prefixed by DS_C_)                       */
/* Directory attribute types (prefixed by DS_A_)            */
/* Directory object classes (prefixed by DS_O_)             */

/* Every application program which makes use of a class or  */
/* other Object Identifier must explicitly import it into   */
/* every compilation unit (C source program) which uses it. */
/* Each such class or Object Identifier name must be        */
/* explicitly exported from just one compilation unit.      */

/* In the header file, OM class constants are prefixed with */
/* the OMP_O prefix to denote that they are OM classes.     */
/* However, when using the OM_IMPORT and OM_EXPORT macros,  */
/* the base names (without the OMP_O prefix) should be used.*/
/* For example:                                             */
/*         OM_IMPORT (DS_O_CERT_AUTHORITY)                  */


/* Directory attribute types */

#define OMP_O_DS_A_AUTHORITY_REVOC_LIST   dsP_attributeType(\x26)
#define OMP_O_DS_A_CA_CERT                dsP_attributeType(\x25)
#define OMP_O_DS_A_CERT_REVOC_LIST        dsP_attributeType(\x27)
#define OMP_O_DS_A_CROSS_CERT_PAIR        dsP_attributeType(\x28)
#define OMP_O_DS_A_USER_CERT              dsP_attributeType(\x24)


/* Directory object classes */

#define OMP_O_DS_O_CERT_AUTHORITY         dsP_objectClass(\x10)
#define OMP_O_DS_O_STRONG_AUTHENT_USER    dsP_objectClass(\x0F)


/* OM class names */

#define OMP_O_DS_C_ALGORITHM_IDENT        dsP_sap_c(\x6\x35)
#define OMP_O_DS_C_CERT                   dsP_sap_c(\x6\x36)
#define OMP_O_DS_C_CERT_LIST              dsP_sap_c(\x6\x37)
#define OMP_O_DS_C_CERT_PAIR              dsP_sap_c(\x6\x38)
#define OMP_O_DS_C_CERT_SUBLIST           dsP_sap_c(\x6\x39)
#define OMP_O_DS_C_SIGNATURE              dsP_sap_c(\x6\x3A)


/* OM attribute names */

#define DS_ALGORITHM            ((OM_type) 821)
#define DS_FORWARD              ((OM_type) 822)
#define DS_ISSUER               ((OM_type) 823)
#define DS_LAST_UPDATE          ((OM_type) 824)
#define DS_ALGORITHM_PARAMETERS ((OM_type) 825)
#define DS_REVERSE              ((OM_type) 826)
#define DS_REVOCATION_DATE      ((OM_type) 827)
#define DS_REVOKED_CERTS        ((OM_type) 828)
#define DS_SERIAL_NUMBER        ((OM_type) 829)
#define DS_SERIAL_NUMBERS       ((OM_type) 830)
#define DS_SIGNATURE            ((OM_type) 831)
#define DS_SIGNATURE_VALUE      ((OM_type) 832)
#define DS_SUBJECT              ((OM_type) 833)
#define DS_SUBJECT_ALGORITHM    ((OM_type) 834)
#define DS_SUBJECT_PUBLIC_KEY   ((OM_type) 835)
#define DS_VALIDITY_NOT_AFTER   ((OM_type) 836)
#define DS_VALIDITY_NOT_BEFORE  ((OM_type) 837)
#define DS_VERSION              ((OM_type) 838)


/* DS_Version */

#define DS_V1988                ((OM_enumeration) 1)

/* Upper bounds on string lengths and the number of repeated OM */
/* attribute values                                             */

#define DS_VL_LAST_UPDATE                  ((OM_value_length) 17)
#define DS_VL_REVOC_DATE                   ((OM_value_length) 17)
#define DS_VL_VALIDITY_NOT_AFTER           ((OM_value_length) 17)
#define DS_VL_VALIDITY_NOT_BEFORE          ((OM_value_length) 17)
#define DS_VN_REVOC_DATE                   ((OM_value_length) 2)

#endif  /* XDSSAP_HEADER */

"RELATED INFORMATION

Books: OSF DCE Application Development Guide.


© 1990-1996, Transarc Corporation