1gss_inquire_cred_Gbeyn_emreicch(S3eGcSuSr)ity Services API Libgrsasr_yinFquunicrtei_ocnrsed_by_mech(3GSS)
2
3
4

NAME

6       gss_inquire_cred_by_mech  -  obtain  per-mechanism  information about a
7       credential
8

SYNOPSIS

10       cc [ flag... ] file... -lgss  [ library... ]
11       #include <gssapi/gssapi.h>
12
13       OM_uint32 gss_inquire_cred_by_mech(OM_uint32 *minor_status,
14            const gss_cred_id_t cred_handle,const gss_OID mech_type,
15            gss_name_t *name, OM_uint32 *initiator_lifetime,
16            OM_uint32 *acceptor_lifetime, gss_cred_usage_t *cred_usage);
17
18

PARAMETERS

20       acceptor_lifetime     The number of  seconds  that  the  credential  is
21                             capable  of accepting security contexts under the
22                             specified mechanism. If  the  credential  can  no
23                             longer be used to accept contexts, or if the cre‐
24                             dential usage for this mechanism is  GSS_C_INITI‐
25                             ATE,  this  parameter  will  be set to 0. Specify
26                             NULL if this parameter is not required.
27
28
29       cred_handle           A handle that refers to  the  target  credential.
30                             Specify  GSS_C_NO_CREDENTIAL to inquire about the
31                             default initiator principal.
32
33
34       cred_usage            How the credential may be used with the specified
35                             mechanism.  The  cred_usage parameter may contain
36                             one  of  the  following  values:  GSS_C_INITIATE,
37                             GSS_C_ACCEPT, or GSS_C_BOTH. Specify NULL if this
38                             parameter is not required.
39
40
41       initiator_lifetime    The number of  seconds  that  the  credential  is
42                             capable of initiating security contexts under the
43                             specified mechanism. If  the  credential  can  no
44                             longer  be  used  to initiate contexts, or if the
45                             credential   usage   for   this   mechanism    is
46                             GSS_C_ACCEPT,  this  parameter  will be set to 0.
47                             Specify NULL if this parameter is not required.
48
49
50       mech_type             The mechanism for which the information should be
51                             returned.
52
53
54       minor_status          A mechanism specific status code.
55
56
57       name                  The  name  whose identity the credential asserts.
58                             Any storage associated with  this  name  must  be
59                             freed  by  the application after use by a call to
60                             gss_release_name(3GSS).
61
62

DESCRIPTION

64       The gss_inquire_cred_by_mech() function obtains per-mechanism  informa‐
65       tion about a credential.
66

ERRORS

68       The gss_inquire_cred_by_mech() function can return the following status
69       codes:
70
71       GSS_S_COMPLETE                Successful completion.
72
73
74       GSS_S_CREDENTIALS_EXPIRED     The credentials cannot be  added  because
75                                     they have expired.
76
77
78       GSS_S_DEFECTIVE_CREDENTIAL    The referenced credentials are invalid.
79
80
81       GSS_S_FAILURE                 The   underlying  mechanism  detected  an
82                                     error for which no  specific  GSS  status
83                                     code  is defined.  The mechanism-specific
84                                     status code  reported  by  means  of  the
85                                     minor_status  parameter details the error
86                                     condition.
87
88
89       GSS_S_NO_CRED                 The  referenced  credentials  cannot   be
90                                     accessed.
91
92
93       GSS_S_UNAVAILABLE             The  gss_inquire_cred_by_mech()  function
94                                     is not available for the specified mecha‐
95                                     nism type.
96
97

ATTRIBUTES

99       See attributes(5)  for descriptions of the following attributes:
100
101
102
103
104       ┌─────────────────────────────┬─────────────────────────────┐
105       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
106       ├─────────────────────────────┼─────────────────────────────┤
107       │Availability                 │SUNWgss (32-bit)             │
108       ├─────────────────────────────┼─────────────────────────────┤
109       │                             │SUNWgssx (64-bit)            │
110       ├─────────────────────────────┼─────────────────────────────┤
111       │MT-Level                     │Safe                         │
112       └─────────────────────────────┴─────────────────────────────┘
113

SEE ALSO

115       gss_release_name(3GSS), attributes(5)
116
117
118       Solaris Security for Developers Guide
119
120
121
122SunOS 5.11                        15 Aug 2007   gss_inquire_cred_by_mech(3GSS)
Impressum