File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / dsap / common / attrt_dec.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#include "quipu/util.h"
#include "quipu/name.h"

extern LLog * log_dsap;

#ifdef AttrT_decode
#undef AttrT_decode
#endif

AttrT_decode (x)
register AttributeType x;
{
	return OK;
}

AttributeType AttrT_decode_aux (oid)
OID oid;
{
register AttributeType x;

	if (oid == NULLOID) {
		LLOG (log_dsap,LLOG_EXCEPTIONS,("Null oid to decode"));
		return NULLTABLE_ATTR;
	}

	if ((x = oid2attr (oid)) == NULLTABLE_ATTR) {
		if ((x = AttrT_new (sprintoid(oid))) == NULLTABLE_ATTR) {
			LLOG (log_dsap,LLOG_EXCEPTIONS,("Unknown attribute type oid %s",sprintoid(oid)));
			return NULLTABLE_ATTR;
		}
	}

	return x;
}


unix.superglobalmegacorp.com

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