Coda Distributed File System
Macros | Functions
codatoken.h File Reference
#include <stdint.h>
#include "auth2.h"
Include dependency graph for codatoken.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AUTH2KEYSIZE   48
 

Functions

int getauth2key (uint8_t *token, size_t token_size, uint8_t auth2key[AUTH2KEYSIZE])
 
int generate_CodaToken (uint8_t auth2key[AUTH2KEYSIZE], uint32_t viceid, uint32_t lifetime, ClearToken *ctoken, EncryptedSecretToken estoken)
 
int validate_CodaToken (uint8_t auth2key[AUTH2KEYSIZE], EncryptedSecretToken estoken, uint32_t *viceid, time_t *endtime, RPC2_EncryptionKey *sessionkey)
 

Macro Definition Documentation

◆ AUTH2KEYSIZE

#define AUTH2KEYSIZE   48

Function Documentation

◆ generate_CodaToken()

int generate_CodaToken ( uint8_t  auth2key[AUTH2KEYSIZE],
uint32_t  viceid,
uint32_t  lifetime,
ClearToken *  ctoken,
EncryptedSecretToken  estoken 
)

◆ getauth2key()

int getauth2key ( uint8_t token,
size_t  token_size,
uint8_t  auth2key[AUTH2KEYSIZE] 
)

◆ validate_CodaToken()

int validate_CodaToken ( uint8_t  auth2key[AUTH2KEYSIZE],
EncryptedSecretToken  estoken,
uint32_t viceid,
time_t *  endtime,
RPC2_EncryptionKey sessionkey 
)