1libkrb5(3LIB) Interface Libraries libkrb5(3LIB)
2
3
4
6 libkrb5 - MIT Kerberos 5 library
7
9 cc -I/usr/include/kerberosv5 [ flag... ] file... -lkrb5 [ library...]
10 #include <krb5.h>
11 #include <com_err.h>
12
13
15 The functions in this library are the routines that comprise the MIT
16 Kerberos 5 library.
17
19 The shared object libkrb5.so provides the public interface defined
20 below.
21
22
23 The krb5 library is provided as a convenience to allow native krb5
24 applications to be built and to run. Compatability between Solaris
25 releases of the krb5 interface is not guaranteed. For new applications
26 that require these features, libgss(3LIB) is recomended.
27
28
29 For detailed documentation on the krb5 interface, see the MIT Kerberos
30 5 web site at http://web.mit.edu/kerberos.
31
32
33 The krb5_cc_gen_new routine, listed in krb5.h section, is flawed and
34 should be avoided. Until a new routine is available from MIT, the fol‐
35 lowing can be done:
36
37 char ccname[40];
38 int tmpfd;
39
40 snprintf(ccname,sizeof(ccname),"FILE:/tmp/krb5cc_%d_XXXXXX",
41 geteuid());
42
43 if ((tmpfd = mkstemp(ccname+strlen("FILE:")))==-1) {
44 log("mkstemp(): %.100s", strerror(errno));
45 problem = errno;
46 goto fail;
47 }
48 if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) {
49 log("fchmod(): %.100s", strerror(errno));
50 close(tmpfd);
51 problem = errno;
52 goto fail;
53 }
54 close(tmpfd);
55 problem = krb5_cc_resolve(authctxt->krb5_ctx, ccname, &ccache);
56 ...
57 fail:
58
59
60
61 The krb5_string_to_key and krb5_string_to_key routines, listed in
62 krb5.h section, are part of the old cryptosystem and should not be used
63 in new apps.
64
65 com_err.h
66 com_err
67 com_err_va
68 error_message
69
70 krb5.h
71 krb5_address_compare
72 krb5_address_order
73 krb5_address_search
74 krb5_aname_to_localname
75 krb5_appdefault_boolean
76 krb5_appdefault_string
77 krb5_auth_con_free
78 krb5_auth_con_genaddrs
79 krb5_auth_con_get_checksum_func
80 krb5_auth_con_getaddrs
81 krb5_auth_con_getauthenticator
82 krb5_auth_con_getflags
83 krb5_auth_con_getkey
84 krb5_auth_con_getlocalseqnumber
85 krb5_auth_con_getrcache
86 krb5_auth_con_getrecvsubkey
87 krb5_auth_con_getremoteseqnumber
88 krb5_auth_con_getsendsubkey
89 krb5_auth_con_init
90 krb5_auth_con_set_checksum_func
91 krb5_auth_con_setaddrs
92 krb5_auth_con_setflags
93 krb5_auth_con_setports
94 krb5_auth_con_setrcache
95 krb5_auth_con_setrecvsubkey
96 krb5_auth_con_setsendsubkey
97 krb5_auth_con_setuseruserkey
98 krb5_build_principal
99 krb5_build_principal_ext
100 krb5_c_block_size
101 krb5_c_checksum_length
102 krb5_c_decrypt
103 krb5_c_encrypt
104 krb5_c_encrypt_length
105 krb5_c_enctype_compare
106 krb5_c_free_state
107 krb5_c_init_state
108 krb5_c_is_coll_proof_cksum
109 krb5_c_is_keyed_cksum
110 krb5_c_keyed_checksum_types
111 krb5_c_make_checksum
112 krb5_c_make_random_key
113 krb5_c_random_make_octets
114 krb5_c_string_to_key
115 krb5_c_string_to_key_with_params
116 krb5_c_valid_cksumtype
117 krb5_c_valid_enctype
118 krb5_c_verify_checksum
119 krb5_cc_close
120 krb5_cc_copy_creds
121 krb5_cc_default
122 krb5_cc_default_name
123 krb5_cc_destroy
124 krb5_cc_end_seq_get
125 krb5_cc_gen_new
126 krb5_cc_get_name
127 krb5_cc_get_principal
128 krb5_cc_get_type
129 krb5_cc_initialize
130 krb5_cc_next_cred
131 krb5_cc_remove_cred
132 krb5_cc_resolve
133 krb5_cc_retrieve_cred
134 krb5_cc_set_default_name
135 krb5_cc_set_flags
136 krb5_cc_start_seq_get
137 krb5_cc_store_cred
138 krb5_change_password
139 krb5_cksumtype_to_string
140 krb5_copy_addresses
141 krb5_copy_authdata
142 krb5_copy_authenticator
143 krb5_copy_checksum
144 krb5_copy_creds
145 krb5_copy_data
146 krb5_copy_keyblock
147 krb5_copy_keyblock_contents
148 krb5_copy_principal
149 krb5_copy_ticket
150 krb5_decode_authdata_container
151 krb5_decode_ticket
152 krb5_deltat_to_string
153 krb5_encode_authdata_container
154 krb5_enctype_to_string
155 krb5_free_addresses
156 krb5_free_ap_rep_enc_part
157 krb5_free_authdata
158 krb5_free_authenticator
159 krb5_free_checksum
160 krb5_free_checksum_contents
161 krb5_free_cksumtypes
162 krb5_free_context
163 krb5_free_cred_contents
164 krb5_free_creds
165 krb5_free_data
166 krb5_free_data_contents
167 krb5_free_default_realm
168 krb5_free_error
169 krb5_free_host_realm
170 krb5_free_keyblock
171 krb5_free_keyblock_contents
172 krb5_free_keytab_entry_contents
173 krb5_free_principal
174 krb5_free_realm_string
175 krb5_free_tgt_creds
176 krb5_free_ticket
177 krb5_free_unparsed_name
178 krb5_fwd_tgt_creds
179 krb5_get_credentials
180 krb5_get_credentials_renew
181 krb5_get_credentials_validate
182 krb5_get_default_realm
183 krb5_get_host_realm
184 krb5_get_init_creds_keytab
185 krb5_get_init_creds_opt_init
186 krb5_get_init_creds_opt_set_address_list
187 krb5_get_init_creds_opt_set_etype_list
188 krb5_get_init_creds_opt_set_forwardable
189 krb5_get_init_creds_opt_set_preauth_list
190 krb5_get_init_creds_opt_set_proxiable
191 krb5_get_init_creds_opt_set_renew_life
192 krb5_get_init_creds_opt_set_salt
193 krb5_get_init_creds_opt_set_tkt_life
194 krb5_get_key_data
195 krb5_get_key_enctype
196 krb5_get_key_length
197 krb5_get_init_creds_password
198 krb5_get_permitted_enctypes
199 krb5_get_profile
200 krb5_get_prompt_types
201 krb5_get_renewed_creds
202 krb5_get_server_rcache
203 krb5_get_validated_creds
204 krb5_init_allocated_keyblock
205 krb5_init_context
206 krb5_init_keyblock
207 krb5_init_secure_context
208 krb5_is_thread_safe
209 krb5_kt_add_entry
210 krb5_kt_close
211 krb5_kt_default
212 krb5_kt_default_name
213 krb5_kt_end_seq_get
214 krb5_kt_get_entry
215 krb5_kt_get_name
216 krb5_kt_get_type
217 krb5_kt_next_entry
218 krb5_kt_read_service_key
219 krb5_kt_remove_entry
220 krb5_kt_resolve
221 krb5_kt_start_seq_get
222 krb5_kuserok
223 krb5_mk_error
224 krb5_mk_ncred
225 krb5_mk_priv
226 krb5_mk_rep
227 krb5_mk_req
228 krb5_mk_req_extended
229 krb5_mk_safe
230 krb5_mk_1cred
231 krb5_os_localaddr
232 krb5_pac_add_buffer
233 krb5_pac_free
234 krb5_pac_get_types
235 krb5_pac_get_buffer
236 krb5_pac_init
237 krb5_pac_parse
238 krb5_pac_verify
239 krb5_parse_name
240 krb5_principal_compare
241 krb5_principal2salt
242 krb5_prompter_posix
243 krb5_rd_cred
244 krb5_rd_error
245 krb5_rd_priv
246 krb5_rd_rep
247 krb5_rd_req
248 krb5_rd_safe
249 krb5_read_password
250 krb5_realm_compare
251 krb5_realm_iterator
252 krb5_realm_iterator_create
253 krb5_realm_iterator_free
254 krb5_recvauth
255 krb5_recvauth_version
256 krb5_salttype_to_string
257 krb5_sendauth
258 krb5_set_default_realm
259 krb5_set_default_tgs_enctypes
260 krb5_set_key_data
261 krb5_set_key_enctype
262 krb5_set_key_length
263 krb5_set_password
264 krb5_set_password_using_ccache
265 krb5_set_principal_realm
266 krb5_set_real_time
267 krb5_sname_to_principal
268 krb5_string_to_cksumtype
269 krb5_string_to_deltat
270 krb5_string_to_enctype
271 krb5_string_to_key
272 krb5_string_to_salttype
273 krb5_string_to_timestamp
274 krb5_timeofday
275 krb5_timestamp_to_sfstring
276 krb5_timestamp_to_string
277 krb5_unparse_name
278 krb5_unparse_name_ext
279 krb5_us_timeofday
280 krb5_use_enctype
281 krb5_verify_init_creds
282 krb5_verify_init_creds_opt_init
283 krb5_verify_init_creds_opt_set_ap_req_nofail
284 krb5_xfree
285 krb5_xfree_wrap
286
288 /usr/lib/libkrb5.so.1 shared object
289
290
291 /usr/lib/64/libkrb5.so.1 64-bit shared object
292
293
295 See attributes(5) for descriptions of the following attributes:
296
297
298
299
300 ┌─────────────────────────────┬─────────────────────────────┐
301 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
302 ├─────────────────────────────┼─────────────────────────────┤
303 │Availability │SUNWkrbu (32-bit and 64-bit) │
304 ├─────────────────────────────┼─────────────────────────────┤
305 │Interface Stability │Volatile │
306 ├─────────────────────────────┼─────────────────────────────┤
307 │MT-Level │Safe │
308 └─────────────────────────────┴─────────────────────────────┘
309
311 krb5-config(1), libgss(3LIB), attributes(5)
312
313
314
315SunOS 5.11 2 Sep 2009 libkrb5(3LIB)