2010-09-26 21:54:31 -06:00
|
|
|
#ifndef __TOKEN_H__
|
|
|
|
#define __TOKEN_H__
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2010-10-05 11:55:32 -06:00
|
|
|
#define TOKEN_MAX 80
|
|
|
|
|
2010-09-26 21:54:31 -06:00
|
|
|
/* ARC4 functions, in case anybody wants 'em */
|
|
|
|
|
2010-10-05 11:55:32 -06:00
|
|
|
ssize_t read_token_fd(int fd,
|
|
|
|
uint8_t const *key, size_t keylen,
|
|
|
|
char *buf, size_t buflen);
|
|
|
|
|
|
|
|
ssize_t read_token(char const *name,
|
2010-09-26 21:54:31 -06:00
|
|
|
uint8_t const *key, size_t keylen,
|
|
|
|
char *buf, size_t buflen);
|
|
|
|
|
|
|
|
#endif
|