4 int debug=0; /* goddamn des library breakage */
5 char string[] = "sms\0\0Athena\0\1";
6 char srvtab[] = "/etc/srvtab";
8 "\7\7\7This program MUST be run on the console, for security reasons.\n";
16 char *tty, *ttyname();
18 if (!tty || strcmp(tty, "/dev/console")) {
19 fprintf(stderr, insecure);
22 fd = open(srvtab, O_WRONLY|O_APPEND, 0);
27 if (sizeof(string)-1 != 13) {
28 fprintf(stderr, "string size bad\n");
31 des_read_password(key, "Enter SMS update password: ", 0);
32 write(fd, string, sizeof(string)-1);
33 write(fd, key, sizeof(C_Block));
37 printf("\nKey written.\n");