version 1.55, 2014/05/20 01:25:23 |
version 1.56, 2015/01/16 06:40:11 |
|
|
* S/Key initialization and seed update |
* S/Key initialization and seed update |
*/ |
*/ |
|
|
#include <sys/param.h> |
|
#include <sys/file.h> |
#include <sys/file.h> |
#include <sys/resource.h> |
#include <sys/resource.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
|
|
#include <syslog.h> |
#include <syslog.h> |
#include <time.h> |
#include <time.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <limits.h> |
#include <utmp.h> |
#include <utmp.h> |
|
|
#include <skey.h> |
#include <skey.h> |
|
|
main(int argc, char **argv) |
main(int argc, char **argv) |
{ |
{ |
int rval, i, l, n, defaultsetup, rmkey, hexmode, enable, convert; |
int rval, i, l, n, defaultsetup, rmkey, hexmode, enable, convert; |
char hostname[MAXHOSTNAMELEN]; |
char hostname[HOST_NAME_MAX+1]; |
char seed[SKEY_MAX_SEED_LEN + 1]; |
char seed[SKEY_MAX_SEED_LEN + 1]; |
char buf[256], key[SKEY_BINKEY_SIZE], filename[PATH_MAX], *ht; |
char buf[256], key[SKEY_BINKEY_SIZE], filename[PATH_MAX], *ht; |
char lastc, me[UT_NAMESIZE + 1], *p, *auth_type; |
char lastc, me[UT_NAMESIZE + 1], *p, *auth_type; |