Coda Distributed File System
Functions
codatoken.c File Reference
#include <sys/time.h>
#include <sys/stat.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <time.h>
#include <assert.h>
#include <rpc2/secure.h>
#include <rpc2/rpc2.h>
#include "codatoken.h"
#include "auth2.h"
Include dependency graph for codatoken.c:

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)
 

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 
)