Coda Distributed File System
|
#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"
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) |
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 | ||
) |