File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / dsap / x500as / dserr_prn.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

/* dserr_prn.c - ds error printer */

/*
 *				  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.
 *
 */


#include "psap.h"
#include "quipu/util.h"
#include "quipu/common.h"

extern LLog	* log_dsap;

int             print_OPError(pe, type)
PE		pe;
int		type;
{
    int		success;

	switch(type)
	{
	case    DSE_NOERROR :
		success = NOTOK;
		break;
	case    DSE_ABANDON_FAILED :
		success = print_DAS_AbandonFailedParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_ATTRIBUTEERROR :
		success = print_DAS_AttributeErrorParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_NAMEERROR :
		success = print_DAS_NameErrorParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_REFERRAL :
		success = print_DAS_ReferralParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_SECURITYERROR :
		success = print_DAS_SecurityErrorParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_SERVICEERROR :
		success = print_DAS_ServiceErrorParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_UPDATEERROR :
		success = print_DAS_UpdateErrorParm(pe,1,NULLIP,NULLVP,NULLCP);
		break;
	case    DSE_ABANDONED :
		/* There is nothing to print for this. */
		success = ((pe == NULLPE) ? OK : NOTOK);
		break;
	case	DSE_DSAREFERRAL :
		success = print_DO_DSAReferralParm(pe, 1, NULLIP, NULLVP,NULLCP);
		break;
	default :
		success = NOTOK;
		LLOG(log_dsap, LLOG_EXCEPTIONS, ("print_OPError unknown Error %d", type));
		break;
	}

	return(success);
}


unix.superglobalmegacorp.com

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