1KRB5_CREDS(3)            BSD Library Functions Manual            KRB5_CREDS(3)
2

NAME

4     krb5_creds, krb5_copy_creds, krb5_copy_creds_contents, krb5_free_creds,
5     krb5_free_cred_contents — Kerberos 5 credential handling functions
6

LIBRARY

8     Kerberos 5 Library (libkrb5, -lkrb5)
9

SYNOPSIS

11     #include <krb5.h>
12
13     krb5_error_code
14     krb5_copy_creds(krb5_context context, const krb5_creds *incred,
15         krb5_creds **outcred);
16
17     krb5_error_code
18     krb5_copy_creds_contents(krb5_context context, const krb5_creds *incred,
19         krb5_creds *outcred);
20
21     krb5_error_code
22     krb5_free_creds(krb5_context context, krb5_creds *outcred);
23
24     krb5_error_code
25     krb5_free_cred_contents(krb5_context context, krb5_creds *cred);
26

DESCRIPTION

28     krb5_creds holds Kerberos credentials:
29
30     typedef struct krb5_creds {
31         krb5_principal      client;
32         krb5_principal      server;
33         krb5_keyblock       session;
34         krb5_times          times;
35         krb5_data           ticket;
36         krb5_data           second_ticket;
37         krb5_authdata       authdata;
38         krb5_addresses      addresses;
39         krb5_ticket_flags   flags;
40     } krb5_creds;
41
42     krb5_copy_creds() makes a copy of incred to outcred.  outcred should be
43     freed with krb5_free_creds() by the caller.
44
45     krb5_copy_creds_contents() makes a copy of the content of incred to
46     outcreds.  outcreds should be freed by the called with
47     krb5_free_creds_contents().
48
49     krb5_free_creds() frees the content of the cred structure and the struc‐
50     ture itself.
51
52     krb5_free_cred_contents() frees the content of the cred structure.
53

SEE ALSO

55     krb5(3), krb5_compare_creds(3), krb5_get_init_creds(3), kerberos(8)
56
57HEIMDAL                           May 1, 2006                          HEIMDAL
Impressum