File: gss_inquire_context.3

package info (click to toggle)
gss 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,232 kB
  • ctags: 2,436
  • sloc: sh: 13,069; ansic: 11,900; python: 2,873; perl: 623; makefile: 172; sed: 16
file content (140 lines) | stat: -rw-r--r-- 5,870 bytes parent folder | download | duplicates (4)
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
.TH "gss_inquire_context" 3 "1.0.3" "gss" "gss"
.SH NAME
gss_inquire_context \- API function
.SH SYNOPSIS
.B #include <gss.h>
.sp
.BI "OM_uint32 gss_inquire_context(OM_uint32 * " minor_status ", const gss_ctx_id_t " context_handle ", gss_name_t * " src_name ", gss_name_t * " targ_name ", OM_uint32 * " lifetime_rec ", gss_OID * " mech_type ", OM_uint32 * " ctx_flags ", int * " locally_initiated ", int * " open ");"
.SH ARGUMENTS
.IP "OM_uint32 * minor_status" 12
(Integer, modify) Mechanism specific status code.
.IP "const gss_ctx_id_t context_handle" 12
(gss_ctx_id_t, read) A handle that refers to the
  security context.
.IP "gss_name_t * src_name" 12
(gss_name_t, modify, optional) The name of the context
  initiator.  If the context was established using anonymous
  authentication, and if the application invoking
  gss_inquire_context is the context acceptor, an anonymous name
  will be returned.  Storage associated with this name must be
  freed by the application after use with a call to
  \fBgss_release_name()\fP.  Specify NULL if not required.
.IP "gss_name_t * targ_name" 12
(gss_name_t, modify, optional) The name of the context
  acceptor.  Storage associated with this name must be freed by the
  application after use with a call to \fBgss_release_name()\fP.  If the
  context acceptor did not authenticate itself, and if the
  initiator did not specify a target name in its call to
  \fBgss_init_sec_context()\fP, the value GSS_C_NO_NAME will be returned.
  Specify NULL if not required.
.IP "OM_uint32 * lifetime_rec" 12
(Integer, modify, optional) The number of seconds
  for which the context will remain valid.  If the context has
  expired, this parameter will be set to zero.  If the
  implementation does not support context expiration, the value
  GSS_C_INDEFINITE will be returned.  Specify NULL if not required.
.IP "gss_OID * mech_type" 12
(gss_OID, modify, optional) The security mechanism
  providing the context.  The returned OID will be a pointer to
  static storage that should be treated as read\-only by the
  application; in particular the application should not attempt to
  free it.  Specify NULL if not required.
.IP "OM_uint32 * ctx_flags" 12
(bit\-mask, modify, optional) Contains various
  independent flags, each of which indicates that the context
  supports (or is expected to support, if ctx_open is false) a
  specific service option.  If not needed, specify NULL.  Symbolic
  names are provided for each flag, and the symbolic names
  corresponding to the required flags should be logically\-ANDed
  with the ret_flags value to test whether a given option is
  supported by the context.  See below for the flags.
.IP "int * locally_initiated" 12
(Boolean, modify) Non\-zero if the invoking
  application is the context initiator.  Specify NULL if not
  required.
.IP "int * open" 12
(Boolean, modify) Non\-zero if the context is fully
  established; Zero if a context\-establishment token is expected
  from the peer application.  Specify NULL if not required.
.SH "DESCRIPTION"
Obtains information about a security context.  The caller must
already have obtained a handle that refers to the context, although
the context need not be fully established.

The `ctx_flags` values:

`GSS_C_DELEG_FLAG`::
\- True \- Credentials were delegated from the initiator to the
acceptor.
\- False \- No credentials were delegated.

`GSS_C_MUTUAL_FLAG`::
\- True \- The acceptor was authenticated to the initiator.
\- False \- The acceptor did not authenticate itself.

`GSS_C_REPLAY_FLAG`::
\- True \- replay of protected messages will be detected.
\- False \- replayed messages will not be detected.

`GSS_C_SEQUENCE_FLAG`::
\- True \- out\-of\-sequence protected messages will be detected.
\- False \- out\-of\-sequence messages will not be detected.

`GSS_C_CONF_FLAG`::
\- True \- Confidentiality service may be invoked by calling gss_wrap
routine.
\- False \- No confidentiality service (via gss_wrap)
available. gss_wrap will provide message encapsulation, data\-origin
authentication and integrity services only.

`GSS_C_INTEG_FLAG`::
\- True \- Integrity service may be invoked by calling either
gss_get_mic or gss_wrap routines.
\- False \- Per\-message integrity service unavailable.

`GSS_C_ANON_FLAG`::
\- True \- The initiator's identity will not be revealed to the
acceptor.  The src_name parameter (if requested) contains an
anonymous internal name.
\- False \- The initiator has been authenticated normally.

`GSS_C_PROT_READY_FLAG`::
\- True \- Protection services (as specified by the states of the
GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available for use.
\- False \- Protection services (as specified by the states of the
GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG) are available only if the
context is fully established (i.e. if the open parameter is
non\-zero).

`GSS_C_TRANS_FLAG`::
\- True \- The resultant security context may be transferred to other
processes via a call to \fBgss_export_sec_context()\fP.
\- False \- The security context is not transferable.
.SH "RETURN VALUE"

`GSS_S_COMPLETE`: Successful completion.

`GSS_S_NO_CONTEXT`: The referenced context could not be accessed.
.SH "REPORTING BUGS"
Report bugs to <bug-gss@gnu.org>.
GNU Generic Security Service home page: http://www.gnu.org/software/gss/
General help using GNU software: http://www.gnu.org/gethelp/
.SH COPYRIGHT
Copyright \(co 2003-2013 Simon Josefsson.
.br
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
.SH "SEE ALSO"
The full documentation for
.B gss
is maintained as a Texinfo manual.  If the
.B info
and
.B gss
programs are properly installed at your site, the command
.IP
.B info gss
.PP
should give you access to the complete manual.