version 1.14, 2001/07/26 21:05:15 |
version 1.15, 2001/07/26 22:12:56 |
|
|
continue; |
continue; |
|
|
/* Format name */ |
/* Format name */ |
sectok_fmt_fid(fname, f0, f1); |
sectok_fmt_fid(fname, &buf[4]); |
|
|
/* Format size */ |
/* Format size */ |
fsize = (buf[2] << 8) | buf[3]; |
fsize = (buf[2] << 8) | buf[3]; |
|
|
int cont_size = 1152, inst_size = 1024; |
int cont_size = 1152, inst_size = 1024; |
des_cblock tmp; |
des_cblock tmp; |
des_key_schedule schedule; |
des_key_schedule schedule; |
|
static unsigned char acl[] = {0x5, 0, 0, 0xff, 0, 0, 0, 0}; |
|
|
optind = optreset = 1; |
optind = optreset = 1; |
|
|
|
|
if (!aut0_vfyd) |
if (!aut0_vfyd) |
jaut(0, NULL); |
jaut(0, NULL); |
|
|
sectok_fmt_fid(progname, progID[0], progID[1]); |
sectok_fmt_fid(progname, progID); |
sectok_fmt_fid(contname, contID[0], contID[1]); |
sectok_fmt_fid(contname, contID); |
|
|
if (vflag) { |
if (vflag) { |
printf ("applet file \"%s\"\n", filename); |
printf ("applet file \"%s\"\n", filename); |
|
|
return -1; |
return -1; |
|
|
/* create program file */ |
/* create program file */ |
if (cyberflex_create_file(fd, cla, progID, size, 3, &sw) < 0) { |
if (cyberflex_create_file_acl(fd, cla, progID, size, 3, acl, &sw) < 0) { |
/* error */ |
/* error */ |
printf("can't create %s: %s\n", progname, sectok_get_sw(sw)); |
printf("can't create %s: %s\n", progname, sectok_get_sw(sw)); |
return -1; |
return -1; |
|
|
if (!aut0_vfyd) |
if (!aut0_vfyd) |
jaut(0, NULL); |
jaut(0, NULL); |
|
|
sectok_fmt_fid(progname, progID[0], progID[1]); |
sectok_fmt_fid(progname, progID); |
sectok_fmt_fid(contname, contID[0], contID[1]); |
sectok_fmt_fid(contname, contID); |
|
|
if (vflag) { |
if (vflag) { |
printf ("program ID %s\n", progname); |
printf ("program ID %s\n", progname); |