Annotation of 43BSDReno/contrib/isode-beta/dsap/common/attrt_dec.c, revision 1.1.1.1

1.1       root        1: #include "quipu/util.h"
                      2: #include "quipu/name.h"
                      3: 
                      4: extern LLog * log_dsap;
                      5: 
                      6: #ifdef AttrT_decode
                      7: #undef AttrT_decode
                      8: #endif
                      9: 
                     10: AttrT_decode (x)
                     11: register AttributeType x;
                     12: {
                     13:        return OK;
                     14: }
                     15: 
                     16: AttributeType AttrT_decode_aux (oid)
                     17: OID oid;
                     18: {
                     19: register AttributeType x;
                     20: 
                     21:        if (oid == NULLOID) {
                     22:                LLOG (log_dsap,LLOG_EXCEPTIONS,("Null oid to decode"));
                     23:                return NULLTABLE_ATTR;
                     24:        }
                     25: 
                     26:        if ((x = oid2attr (oid)) == NULLTABLE_ATTR) {
                     27:                if ((x = AttrT_new (sprintoid(oid))) == NULLTABLE_ATTR) {
                     28:                        LLOG (log_dsap,LLOG_EXCEPTIONS,("Unknown attribute type oid %s",sprintoid(oid)));
                     29:                        return NULLTABLE_ATTR;
                     30:                }
                     31:        }
                     32: 
                     33:        return x;
                     34: }
                     35: 

unix.superglobalmegacorp.com

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