blob: 9d5afed1d533a67cefff4dd982cc01760b136b79 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
SSSD
KCM Server - the KCM ccache operations - private structures
Should be accessed only from the ccache layer.
Copyright (C) Red Hat, 2016
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _KCMSRV_CCACHE_PVT_H
#define _KCMSRV_CCACHE_PVT_H
#include "responder/kcm/kcmsrv_ccache.h"
#include "responder/kcm/kcmsrv_ccache_be.h"
struct kcm_ccache_owner {
uid_t uid;
gid_t gid;
};
struct kcm_cred {
struct sss_iobuf *cred_blob;
/* Randomly generated 16 bytes */
uuid_t uuid;
struct kcm_cred *next;
struct kcm_cred *prev;
};
struct kcm_ccdb {
struct tevent_context *ev;
void *db_handle;
const struct kcm_ccdb_ops *ops;
};
struct kcm_ccache {
const char *name;
struct kcm_ccache_owner owner;
uuid_t uuid;
krb5_principal client;
int32_t kdc_offset;
struct kcm_cred *creds;
};
#endif /* _KCMSRV_CCACHE_PVT_H */
|