Coda Distributed File System
codatoken.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 2006 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15
16#*/
17
18#ifndef _CODATOKEN_H_
19#define _CODATOKEN_H_
20
21#include <stdint.h>
22#include "auth2.h"
23
24#define AUTH2KEYSIZE 48
25
26int getauth2key(uint8_t *token, size_t token_size,
27 uint8_t auth2key[AUTH2KEYSIZE]);
29 uint32_t lifetime, ClearToken *ctoken,
30 EncryptedSecretToken estoken);
32 EncryptedSecretToken estoken, uint32_t *viceid,
33 time_t *endtime, RPC2_EncryptionKey *sessionkey);
34
35#endif /* _CODATOKEN_H_ */
unsigned int uint32_t
Definition: coda.h:105
unsigned char uint8_t
Definition: coda.h:101
int getauth2key(uint8_t *token, size_t token_size, uint8_t auth2key[AUTH2KEYSIZE])
Definition: codatoken.c:128
int validate_CodaToken(uint8_t auth2key[AUTH2KEYSIZE], EncryptedSecretToken estoken, uint32_t *viceid, time_t *endtime, RPC2_EncryptionKey *sessionkey)
Definition: codatoken.c:182
int generate_CodaToken(uint8_t auth2key[AUTH2KEYSIZE], uint32_t viceid, uint32_t lifetime, ClearToken *ctoken, EncryptedSecretToken estoken)
Definition: codatoken.c:137
#define AUTH2KEYSIZE
Definition: codatoken.h:24
RPC2_Byte RPC2_EncryptionKey[RPC2_KEYSIZE]
Definition: rpc2.h:336