Annotation of 43BSDReno/contrib/isode-beta/h/quipu/name.h, revision 1.1.1.1

1.1       root        1: /* name.h - */
                      2: 
                      3: /*
                      4:  * $Header: /f/osi/h/quipu/RCS/name.h,v 7.0 89/11/23 21:56:40 mrose Rel $
                      5:  *
                      6:  *
                      7:  * $Log:       name.h,v $
                      8:  * Revision 7.0  89/11/23  21:56:40  mrose
                      9:  * Release 6.0
                     10:  * 
                     11:  */
                     12: 
                     13: /*
                     14:  *                               NOTICE
                     15:  *
                     16:  *    Acquisition, use, and distribution of this module and related
                     17:  *    materials are subject to the restrictions of a license agreement.
                     18:  *    Consult the Preface in the User's Manual for the full terms of
                     19:  *    this agreement.
                     20:  *
                     21:  */
                     22: 
                     23: 
                     24: #ifndef QUIPUNAME
                     25: #define QUIPUNAME
                     26: 
                     27: #include "quipu/attr.h"
                     28: 
                     29: typedef struct ava {            /* represents AttributeValueAssertion */
                     30:     AttributeType ava_type;
                     31:     AttributeValue ava_value;
                     32: }ava, AVA;
                     33: 
                     34: typedef struct rdncomp {        /* RDN is sequence of attribute value   */
                     35:                                /* assertions                           */
                     36:                                /* represents RelativeDistinguishedName */
                     37:     attrType           rdn_at;
                     38:     attrVal            rdn_av;
                     39:     struct rdncomp      *rdn_next;
                     40: } rdncomp, *RDN;
                     41: 
                     42: #define NULLRDN ((RDN) 0)
                     43: #define rdn_comp_alloc()          (RDN) smalloc(sizeof(rdncomp))
                     44: RDN  rdn_comp_new ();
                     45: RDN  rdn_comp_cpy ();
                     46: RDN  str2rdn();
                     47: RDN  rdn_cpy ();
                     48: RDN  rdn_merge ();
                     49: 
                     50: typedef struct dncomp {         /* DN is sequence of RDNs.              */
                     51:                                /* represents RDNSequence which is      */
                     52:                                /* equivalent to DistinguishedName      */
                     53:     RDN                 dn_rdn;
                     54:     struct dncomp       *dn_parent;
                     55: } dncomp, *DN;
                     56: 
                     57: #define NULLDN ((DN) 0)
                     58: 
                     59: #define dn_comp_alloc()        (DN) smalloc(sizeof(dncomp))
                     60: #define dn_comp_print(x,y,z)   if (y!=NULLDN) rdn_print(x,y->dn_rdn,z)
                     61: #define dn_comp_fill(x,y)     x -> dn_rdn = y
                     62: #define dn_comp_cmp(x,y)      ((rdn_cmp (x->dn_rdn ,y->dn_rdn) == OK) ? OK : NOTOK )
                     63: 
                     64: DN  dn_comp_new ();
                     65: DN  dn_comp_cpy ();
                     66: DN  dn_cpy ();
                     67: DN  str2dn ();
                     68: 
                     69: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.