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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
memcache.h
Kerberos credential store in memory
Originally coded by Tim Miller / Brown University
Mods 1/92 By Peter Bosanko
Modified May-June 1994 by Julia Menapace and John Gilmore,
Cygnus Support.
*/
struct Session {
char name[ANAME_SZ];
char instance[INST_SZ];
char realm[REALM_SZ];
int numcreds;
CREDENTIALS **creds;
};
typedef struct Session Session;
OSErr GetNumSessions PROTOTYPE ((int *n));
OSErr GetNthSession PROTOTYPE ((const int n, char *name,
char *instance, char *realm));
OSErr DeleteSession PROTOTYPE ((const char *name,
const char *instance,
const char *realm));
OSErr GetCredentials PROTOTYPE ((const char *name,
const char *instance,
const char *realm,
CREDENTIALS *cr));
/* name, instance, and realm of service wanted should be
set in *cr before calling */
OSErr AddCredentials PROTOTYPE ((const char *name,
const char *instance,
const char *realm,
const CREDENTIALS *cr));
OSErr DeleteCredentials PROTOTYPE ((const char *uname,
const char *uinst,
const char *urealm,
const char *sname,
const char *sinst,
const char *srealm));
OSErr GetNumCredentials PROTOTYPE ((const char *name,
const char *instance,
const char *realm, int *n));
OSErr GetNthCredentials PROTOTYPE ((const char *uname,
const char *uinst,
const char *urealm, char *sname,
char *sinst, char *srealm,
const int n));
|