|
|
1.1 root 1: /* dserr_dec.c - ds error decoder */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/dsap/x500as/RCS/dserr_dec.c,v 7.0 89/11/23 21:50:34 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/dsap/x500as/RCS/dserr_dec.c,v 7.0 89/11/23 21:50:34 mrose Rel $
9: *
10: *
11: * $Log: dserr_dec.c,v $
12: * Revision 7.0 89/11/23 21:50:34 mrose
13: * Release 6.0
14: *
15: */
16:
17: /*
18: * NOTICE
19: *
20: * Acquisition, use, and distribution of this module and related
21: * materials are subject to the restrictions of a license agreement.
22: * Consult the Preface in the User's Manual for the full terms of
23: * this agreement.
24: *
25: */
26:
27:
28: /* LINTLIBRARY */
29:
30: #include "psap.h"
31: #include "quipu/util.h"
32: #include "quipu/common.h"
33:
34: extern LLog * log_dsap;
35:
36: int decode_OPError(pe, type, err)
37: PE pe;
38: int type;
39: struct DSError *err;
40: {
41: int success;
42:
43: switch(err->dse_type = type)
44: {
45: case DSE_NOERROR :
46: success = NOTOK;
47: break;
48: case DSE_ABANDON_FAILED :
49: success = decode_DAS_AbandonFailedParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_abandon_fail));
50: break;
51: case DSE_ATTRIBUTEERROR :
52: success = decode_DAS_AttributeErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_attribute));
53: break;
54: case DSE_NAMEERROR :
55: success = decode_DAS_NameErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_name));
56: break;
57: case DSE_REFERRAL :
58: success = decode_DAS_ReferralParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_referral));
59: break;
60: case DSE_SECURITYERROR :
61: success = decode_DAS_SecurityErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_security));
62: break;
63: case DSE_SERVICEERROR :
64: success = decode_DAS_ServiceErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_service));
65: break;
66: case DSE_UPDATEERROR :
67: success = decode_DAS_UpdateErrorParm(pe,1,NULLIP,NULLVP,&(err->dse_un.dse_un_update));
68: break;
69: case DSE_ABANDONED :
70: success = ((pe == NULLPE) ? OK : NOTOK);
71: break;
72: case DSE_DSAREFERRAL :
73: success = decode_DO_DSAReferralParm(pe, 1, NULLIP, NULLVP, &(err->dse_un.dse_un_referral));
74: break;
75: default :
76: success = NOTOK;
77: LLOG(log_dsap, LLOG_EXCEPTIONS, ("decode_OPError unknown Error %d", type));
78: break;
79: }
80:
81: return(success);
82: }
83:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.