aboutsummaryrefslogtreecommitdiff
path: root/src/mac/MacOSX/Headers/cr_tkt.h
blob: 4a09c44e6eaac36f3ed38e94676a4b3e5ef3c647 (plain)
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
#include <Kerberos/krb5.h>
#include <Kerberos/krb.h>

int
krb_create_ticket(
    KTEXT   tkt,                /* Gets filled in by the ticket */
    unsigned char flags,        /* Various Kerberos flags */
    char    *pname,             /* Principal's name */
    char    *pinstance,         /* Principal's instance */
    char    *prealm,            /* Principal's authentication domain */
    long    paddress,           /* Net address of requesting entity */
    char    *session,           /* Session key inserted in ticket */
    short   life,               /* Lifetime of the ticket */
    long    time_sec,           /* Issue time and date */
    char    *sname,             /* Service Name */
    char    *sinstance,         /* Instance Name */
    C_Block key);                /* Service's secret key */

extern int
krb_cr_tkt_krb5(
    KTEXT   tkt,                /* Gets filled in by the ticket */
    unsigned char flags,        /* Various Kerberos flags */
    char    *pname,             /* Principal's name */
    char    *pinstance,         /* Principal's instance */
    char    *prealm,            /* Principal's authentication domain */
    long    paddress,           /* Net address of requesting entity */
    char    *session,           /* Session key inserted in ticket */
    short   life,               /* Lifetime of the ticket */
    long    time_sec,           /* Issue time and date */
    char    *sname,             /* Service Name */
    char    *sinstance,         /* Instance Name */
    krb5_keyblock *k5key);	/* NULL if not present */