1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
/* ronote.h - Additions to properly support ABSTRACT-BIND */
/*
* $Header$
*
*
* $Log$
* Revision 1.1 1994/06/10 03:29:40 eichin
* autoconfed isode for kerberos work
*
* Revision 1.1 94/06/10 03:18:06 eichin
* autoconfed isode for kerberos work
*
* Revision 1.1 1994/05/31 20:38:20 eichin
* reduced-isode release from /mit/isode/isode-subset/src
*
* Revision 8.0 91/07/17 12:33:52 isode
* Release 7.0
*
*
*/
/*
* 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.
*
*/
#ifndef _RoNot_
#define _RoNot_
#ifndef _MANIFEST_
#include "manifest.h"
#endif
#ifndef _GENERAL_
#include "general.h"
#endif
#ifndef _AcSAP_
#include "acsap.h" /* definitions for AcS-USERs */
#endif
#ifndef _RoSAP_
#include "rosap.h" /* definitions for RoS-USERs */
#endif
#define BIND_RESULT 1 /* indicates a bind result occured */
#define BIND_ERROR 2 /* indicates a bind error occured */
struct RoNOTindication {
int rni_reason; /* reason for failure */
#define RBI_ACSE 1 /* ACSE provider failed */
#define RBI_SET_ROSE_PRES 2 /* Failed to set ROS-USER */
#define RBI_ENC_BIND_ARG 3 /* Failed encoding bind argument */
#define RBI_ENC_BIND_RES 4 /* Failed encoding bind result */
#define RBI_ENC_BIND_ERR 5 /* Failed encoding bind error */
#define RBI_ENC_UNBIND_ARG 6 /* Failed encoding unbind argument */
#define RBI_ENC_UNBIND_RES 7 /* Failed encoding unbind result */
#define RBI_ENC_UNBIND_ERR 8 /* Failed encoding unbind error */
#define RBI_DEC_BIND_ARG 9 /* Failed decoding bind argument */
#define RBI_DEC_BIND_RES 10 /* Failed decoding bind result */
#define RBI_DEC_BIND_ERR 11 /* Failed decoding bind error */
#define RBI_DEC_UNBIND_ARG 12 /* Failed decoding unbind argument */
#define RBI_DEC_UNBIND_RES 13 /* Failed decoding unbind result */
#define RBI_DEC_UNBIND_ERR 14 /* Failed decoding unbind error */
#define RBI_DEC_NINFO 15 /* Erroneous number of user infos */
/* diagnostics from provider */
#define RB_SIZE 512
int rni_cc; /* length */
char rni_data[RB_SIZE]; /* data */
};
#ifndef lint
#ifndef __STDC__
#define copyRoNOTdata(base,len,d) \
{ \
register int i = len; \
if ((d -> d/* */_cc = min (i, sizeof d -> d/* */_data)) > 0) \
bcopy (base, d -> d/* */_data, d -> d/* */_cc); \
}
#else
#define copyRoNOTdata(base,len,d) \
{ \
register int i = len; \
if ((d -> d##_cc = min (i, sizeof d -> d##_data)) > 0) \
bcopy (base, d -> d##_data, d -> d##_cc); \
}
#endif
#else
#define copyRoNOTdata(base,len,d) bcopy (base, (char *) d, len)
#endif
#endif
|