components/krb5/Solaris/man/gss_inquire_cred_by_mech.3gss
changeset 5490 9bf0bc57423a
child 7820 a2b9a7de9e1a
equal deleted inserted replaced
5489:a5031bb8b66d 5490:9bf0bc57423a
       
     1 '\" te
       
     2 .\" Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
       
     3 .TH gss_inquire_cred_by_mech 3GSS "22 Aug 2011" "SunOS 5.12" "Generic Security Services API Library Functions"
       
     4 .SH NAME
       
     5 gss_inquire_cred_by_mech \- obtain per-mechanism information about a credential
       
     6 .SH SYNOPSIS
       
     7 .LP
       
     8 .nf
       
     9 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lgss\fR  [ \fIlibrary\fR... ] 
       
    10 #include <gssapi/gssapi.h>
       
    11 
       
    12 \fBOM_uint32\fR \fBgss_inquire_cred_by_mech\fR(\fBOM_uint32 *\fR\fIminor_status\fR,
       
    13      \fBconst gss_cred_id_t\fR \fIcred_handle\fR,\fBconst gss_OID\fR \fImech_type\fR,
       
    14      \fBgss_name_t *\fR\fIname\fR, \fBOM_uint32 *\fR\fIinitiator_lifetime\fR,
       
    15      \fBOM_uint32 *\fR\fIacceptor_lifetime\fR, \fBgss_cred_usage_t *\fR\fIcred_usage\fR);
       
    16 .fi
       
    17 
       
    18 .SH PARAMETERS
       
    19 .sp
       
    20 .ne 2
       
    21 .mk
       
    22 .na
       
    23 \fB\fIacceptor_lifetime\fR\fR
       
    24 .ad
       
    25 .RS 22n
       
    26 .rt  
       
    27 The number of seconds that the credential is capable of accepting security contexts under the specified mechanism. If the credential can no longer be used to accept contexts, or if the credential usage for this mechanism is \fBGSS_C_INITIATE\fR, this parameter will be set to \fB0\fR. Specify \fBNULL\fR if this parameter is not required.
       
    28 .RE
       
    29 
       
    30 .sp
       
    31 .ne 2
       
    32 .mk
       
    33 .na
       
    34 \fB\fIcred_handle\fR\fR
       
    35 .ad
       
    36 .RS 22n
       
    37 .rt  
       
    38 A handle that refers to the target credential. Specify \fBGSS_C_NO_CREDENTIAL\fR to inquire about the default initiator principal.
       
    39 .RE
       
    40 
       
    41 .sp
       
    42 .ne 2
       
    43 .mk
       
    44 .na
       
    45 \fB\fIcred_usage\fR\fR
       
    46 .ad
       
    47 .RS 22n
       
    48 .rt  
       
    49 How the credential may be used with the specified mechanism. The \fIcred_usage\fR parameter may contain one of the following values: \fBGSS_C_INITIATE\fR, \fBGSS_C_ACCEPT\fR, or \fBGSS_C_BOTH\fR. Specify \fBNULL\fR if this parameter is not required.
       
    50 .RE
       
    51 
       
    52 .sp
       
    53 .ne 2
       
    54 .mk
       
    55 .na
       
    56 \fB\fIinitiator_lifetime\fR\fR
       
    57 .ad
       
    58 .RS 22n
       
    59 .rt  
       
    60 The number of seconds that the credential is capable of initiating security contexts under the specified mechanism. If the credential can no longer be used to initiate contexts, or if the credential usage for this mechanism is \fBGSS_C_ACCEPT\fR, this parameter will be set to \fB0\fR. Specify \fBNULL\fR if this parameter is not required.
       
    61 .RE
       
    62 
       
    63 .sp
       
    64 .ne 2
       
    65 .mk
       
    66 .na
       
    67 \fB\fImech_type\fR\fR
       
    68 .ad
       
    69 .RS 22n
       
    70 .rt  
       
    71 The mechanism for which the information should be returned.
       
    72 .RE
       
    73 
       
    74 .sp
       
    75 .ne 2
       
    76 .mk
       
    77 .na
       
    78 \fB\fIminor_status\fR\fR
       
    79 .ad
       
    80 .RS 22n
       
    81 .rt  
       
    82 A mechanism specific status code.
       
    83 .RE
       
    84 
       
    85 .sp
       
    86 .ne 2
       
    87 .mk
       
    88 .na
       
    89 \fB\fIname\fR\fR
       
    90 .ad
       
    91 .RS 22n
       
    92 .rt  
       
    93 The name whose identity the credential asserts. Any storage associated with this \fIname\fR must be freed by the application after use by a call to \fBgss_release_name\fR(3GSS). 
       
    94 .RE
       
    95 
       
    96 .SH DESCRIPTION
       
    97 .sp
       
    98 .LP
       
    99 The \fBgss_inquire_cred_by_mech()\fR function obtains per-mechanism information about a credential.  
       
   100 .SH ERRORS
       
   101 .sp
       
   102 .LP
       
   103 The \fBgss_inquire_cred_by_mech()\fR function can return the following status codes:
       
   104 .sp
       
   105 .ne 2
       
   106 .mk
       
   107 .na
       
   108 \fB\fBGSS_S_COMPLETE\fR\fR
       
   109 .ad
       
   110 .RS 30n
       
   111 .rt  
       
   112 Successful completion.
       
   113 .RE
       
   114 
       
   115 .sp
       
   116 .ne 2
       
   117 .mk
       
   118 .na
       
   119 \fB\fBGSS_S_CREDENTIALS_EXPIRED\fR\fR
       
   120 .ad
       
   121 .RS 30n
       
   122 .rt  
       
   123 The credentials cannot be added because they have expired.
       
   124 .RE
       
   125 
       
   126 .sp
       
   127 .ne 2
       
   128 .mk
       
   129 .na
       
   130 \fB\fBGSS_S_DEFECTIVE_CREDENTIAL\fR\fR
       
   131 .ad
       
   132 .RS 30n
       
   133 .rt  
       
   134 The referenced credentials are invalid.
       
   135 .RE
       
   136 
       
   137 .sp
       
   138 .ne 2
       
   139 .mk
       
   140 .na
       
   141 \fB\fBGSS_S_FAILURE\fR\fR
       
   142 .ad
       
   143 .RS 30n
       
   144 .rt  
       
   145 The underlying mechanism detected an error for which no specific \fBGSS\fR status code is defined.  The mechanism-specific status code reported by means of the \fIminor_status\fR parameter details the error condition.
       
   146 .RE
       
   147 
       
   148 .sp
       
   149 .ne 2
       
   150 .mk
       
   151 .na
       
   152 \fB\fBGSS_S_NO_CRED\fR\fR
       
   153 .ad
       
   154 .RS 30n
       
   155 .rt  
       
   156 The referenced credentials cannot be accessed.
       
   157 .RE
       
   158 
       
   159 .sp
       
   160 .ne 2
       
   161 .mk
       
   162 .na
       
   163 \fB\fBGSS_S_UNAVAILABLE\fR\fR
       
   164 .ad
       
   165 .RS 30n
       
   166 .rt  
       
   167 The \fBgss_inquire_cred_by_mech()\fR function is not available for the specified mechanism type.
       
   168 .RE
       
   169 
       
   170 .SH ATTRIBUTES
       
   171 .sp
       
   172 .LP
       
   173 See \fBattributes\fR(5)  for descriptions of the following attributes:
       
   174 .sp
       
   175 
       
   176 .sp
       
   177 .TS
       
   178 tab() box;
       
   179 cw(2.75i) |cw(2.75i) 
       
   180 lw(2.75i) |lw(2.75i) 
       
   181 .
       
   182 ATTRIBUTE TYPEATTRIBUTE VALUE
       
   183 _
       
   184 MT-LevelSafe
       
   185 .TE
       
   186 
       
   187 .SH SEE ALSO
       
   188 .sp
       
   189 .LP
       
   190 \fBgss_release_name\fR(3GSS), \fBattributes\fR(5)
       
   191 .sp
       
   192 .LP
       
   193