Start development on 386BSD 0.0
[unix-history] / .ref-BSD-4_3_Net_2 / usr / src / contrib / isode / h / ronot.h
CommitLineData
0cdd0310
C
1/* ronote.h - Additions to properly support ABSTRACT-BIND */
2
3/*
4 * $Header: /f/osi/h/RCS/ronot.h,v 7.1 91/02/22 09:24:58 mrose Interim $
5 *
6 *
7 * $Log: ronot.h,v $
8 * Revision 7.1 91/02/22 09:24:58 mrose
9 * Interim 6.8
10 *
11 * Revision 7.0 90/07/26 14:26:02 mrose
12 * *** empty log message ***
13 *
14 */
15
16/*
17 * NOTICE
18 *
19 * Acquisition, use, and distribution of this module and related
20 * materials are subject to the restrictions of a license agreement.
21 * Consult the Preface in the User's Manual for the full terms of
22 * this agreement.
23 *
24 */
25
26#ifndef _RoNot_
27#define _RoNot_
28
29#ifndef _MANIFEST_
30#include "manifest.h"
31#endif
32#ifndef _GENERAL_
33#include "general.h"
34#endif
35
36#ifndef _AcSAP_
37#include "acsap.h" /* definitions for AcS-USERs */
38#endif
39
40#ifndef _RoSAP_
41#include "rosap.h" /* definitions for RoS-USERs */
42#endif
43
44#define BIND_RESULT 1 /* indicates a bind result occured */
45#define BIND_ERROR 2 /* indicates a bind error occured */
46
47struct RoNOTindication {
48 int rni_reason; /* reason for failure */
49#define RBI_ACSE 1 /* ACSE provider failed */
50#define RBI_SET_ROSE_PRES 2 /* Failed to set ROS-USER */
51#define RBI_ENC_BIND_ARG 3 /* Failed encoding bind argument */
52#define RBI_ENC_BIND_RES 4 /* Failed encoding bind result */
53#define RBI_ENC_BIND_ERR 5 /* Failed encoding bind error */
54#define RBI_ENC_UNBIND_ARG 6 /* Failed encoding unbind argument */
55#define RBI_ENC_UNBIND_RES 7 /* Failed encoding unbind result */
56#define RBI_ENC_UNBIND_ERR 8 /* Failed encoding unbind error */
57#define RBI_DEC_BIND_ARG 9 /* Failed decoding bind argument */
58#define RBI_DEC_BIND_RES 10 /* Failed decoding bind result */
59#define RBI_DEC_BIND_ERR 11 /* Failed decoding bind error */
60#define RBI_DEC_UNBIND_ARG 12 /* Failed decoding unbind argument */
61#define RBI_DEC_UNBIND_RES 13 /* Failed decoding unbind result */
62#define RBI_DEC_UNBIND_ERR 14 /* Failed decoding unbind error */
63#define RBI_DEC_NINFO 15 /* Erroneous number of user infos */
64
65 /* diagnostics from provider */
66#define RB_SIZE 512
67 int rni_cc; /* length */
68 char rni_data[RB_SIZE]; /* data */
69};
70
71#ifndef lint
72#ifndef __STDC__
73#define copyRoNOTdata(base,len,d) \
74{ \
75 register int i = len; \
76 if ((d -> d/* */_cc = min (i, sizeof d -> d/* */_data)) > 0) \
77 bcopy (base, d -> d/* */_data, d -> d/* */_cc); \
78}
79#else
80#define copyRoNOTdata(base,len,d) \
81{ \
82 register int i = len; \
83 if ((d -> d##_cc = min (i, sizeof d -> d##_data)) > 0) \
84 bcopy (base, d -> d##_data, d -> d##_cc); \
85}
86#endif
87#else
88#define copyRoNOTdata(base,len,d) bcopy (base, (char *) d, len)
89#endif
90
91#endif