aboutsummaryrefslogtreecommitdiff
path: root/src/mac/libraries/CCache API/include/CCacheUtil.h
blob: 23426fc67ef79cc55446aa48c9a6f25e5d5ae4d8 (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
#include "CCache.h"

#define kCredsMatch 1
#define kCredsDiffer 0

// ----- Prototypes for Private Functions ------------------
cred_union **	newCredBuffer(ccache_p *nc);
int credBufferInsert(ccache_p* nc,  cred_union creds);
int credBufferRemove(ccache_p* nc, const cred_union cred_to_remove);

char credcmp (cred_union a, cred_union b);

char isLockOurs(const ccache_p *nc);

int copyDataObj(cc_data *obj, cc_data src);
int copyV5Cred(cred_union src, cred_union **dest);
int copyV4Cred(cred_union src, cred_union **dest);
int dupNC(ccache_p* src, ccache_p** dest);
void copyDataArray(cc_data **src, cc_data ***dest);

void disposeDataArray(cc_data **base);
int cc_free_cred_internals(cred_union *creds);
int freeNCList(apiCB *cntrlBlock);
int disposeCredBuffer(apiCB *cc_ctx, ccache_p *nc);

Ptr NewSafePtr(long size);
Ptr NewSafePtrSys(long size);
void DisposeSafePtr(Ptr safeP);