Lines Matching +defs:security +defs:c
2 * Copyright (c) 1997-2007 Kenneth D. Merry
175 static const char scsicmd_opts[] = "a:c:dfi:o:r";
197 {"mmcsdcmd", CAM_CMD_MMCSD_CMD, CAM_ARG_NONE, "c:a:F:f:Wb:l:41S:I"},
218 {"sanitize", CAM_CMD_SANITIZE, CAM_ARG_NONE, "a:c:IP:qrUwy"},
226 {"security", CAM_CMD_SECURITY, CAM_ARG_NONE, "d:e:fh:k:l:qs:T:U:y"},
233 {"epc", CAM_CMD_EPC, CAM_ARG_NONE, "c:dDeHp:Pr:sS:T:"},
466 int c;
468 while ((c = getopt(argc, argv, combinedopt)) != -1) {
469 switch(c) {
846 int c;
854 while ((c = getopt(argc, argv, combinedopt)) != -1) {
855 switch (c) {
1080 int c;
1083 while ((c = getopt(argc, argv, combinedopt)) != -1) {
1084 switch(c) {
1731 printf("security %s %s\n",
2789 printf("security config frozen %s\n",
2793 printf("security level %s\n",
2821 warnx("-%c password is too long", opt);
2824 warnx("-%c password is missing", opt);
2827 warnx("-%c password starts with '-' (generic arg?)", opt);
2830 warnx("-%c password conflicts with existing password from -%c",
2890 int error, confirm, quiet, c, action, actions, persist;
2891 int security, is48bit, pwdsize;
2899 security = 0;
2907 while ((c = getopt(argc, argv, combinedopt)) != -1) {
2908 switch(c){
2916 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
2919 security = 1;
2925 security = 1;
2930 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
2933 security = 1;
2939 security = 1;
3004 if (security && !(ident_buf->support.command2 & ATA_SUPPORT_MAXSECURITY)) {
3098 int error, quiet, c, action, actions;
3108 while ((c = getopt(argc, argv, combinedopt)) != -1) {
3109 switch(c){
3218 int error, confirm, quiet, c, action, actions, setpwd;
3230 /* default action is to print security information */
3237 while ((c = getopt(argc, argv, combinedopt)) != -1) {
3238 switch(c){
3273 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
3280 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
3287 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
3294 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
3302 if (ata_getpwd(pwd.password, pwdsize, c) != 0)
3328 warnx("too many security actions specified");
3413 warnx("Can't unlock, security is disabled");
3438 warnx("Can't disable security (already disabled)");
3453 warnx("Can't secure erase (security is disabled)");
3477 "(security is disabled)");
3941 int c, error = 0;
3947 while ((c = getopt(argc, argv, combinedopt)) != -1) {
3948 switch(c){
4614 int c, page = -1, subpage = 0, pc = 0, llbaa = 0;
4617 while ((c = getopt(argc, argv, combinedopt)) != -1) {
4618 switch(c) {
4692 int c, data_bytes = 0, valid_bytes;
4710 while ((c = getopt(argc, argv, combinedopt)) != -1) {
4711 switch(c) {
4734 case 'c':
5040 int c, fd;
5050 while ((c = getopt(argc, argv, combinedopt)) != -1) {
5051 switch(c) {
5072 case 'c':
5159 int c;
5173 while ((c = getopt(argc, argv, combinedopt)) != -1) {
5174 switch(c) {
6096 int c;
6114 while ((c = getopt(argc, argv, combinedopt)) != -1) {
6115 switch(c){
6119 case 'c':
6428 int c;
6447 while ((c = getopt(argc, argv, combinedopt)) != -1) {
6448 switch(c) {
6906 int c;
6940 while ((c = getopt(argc, argv, combinedopt)) != -1) {
6941 switch(c) {
6958 case 'c':
7058 arg = "-c";
7279 int c, countonly, lunsonly;
7299 while ((c = getopt(argc, argv, combinedopt)) != -1) {
7300 switch (c) {
7301 case 'c':
7328 warnx("%s: you can only specify one of -c or -l", __func__);
7520 int c;
7538 while ((c = getopt(argc, argv, combinedopt)) != -1) {
7539 switch (c) {
7717 int c, error = 0;
7737 while ((c = getopt(argc, argv, combinedopt)) != -1) {
7738 switch (c) {
7910 int c, error = 0;
7942 while ((c = getopt(argc, argv, combinedopt)) != -1) {
7943 switch (c) {
7963 case 'c':
8273 int c, long_response = 0;
8286 while ((c = getopt(argc, argv, combinedopt)) != -1) {
8287 switch (c) {
8416 int c;
8428 while ((c = getopt(argc, argv, combinedopt)) != -1) {
8429 switch (c) {
8446 switch (c) {
8671 int c;
8683 while ((c = getopt(argc, argv, combinedopt)) != -1) {
8684 switch (c) {
9046 int i, c;
9076 while ((c = getopt(argc, argv, combinedopt)) != -1) {
9077 switch (c) {
9355 int c;
9366 while ((c = getopt(argc, argv, combinedopt)) != -1) {
9367 switch (c) {
9436 int c;
9446 while ((c = getopt(argc, argv, combinedopt)) != -1) {
9447 switch (c) {
9862 int c;
9871 while ((c = getopt(argc, argv, combinedopt)) != -1) {
9872 switch (c) {
9990 " camcontrol reportluns [dev_id][generic args] [-c] [-l] [-r report]\n"
10005 " <-a cmd [args] | -c cmd [args]>\n"
10017 " camcontrol debug [-I][-P][-T][-S][-X][-c]\n"
10020 " camcontrol negotiate [dev_id][generic args] [-a][-c]\n"
10027 " [-c passes][-I][-P pattern][-q][-U][-r][-w]\n"
10037 " camcontrol security [dev_id][generic args]\n"
10048 " [-a attr_num][-c][-e elem][-F form1,form1]\n"
10052 " camcontrol zone [dev_id][generic args]<-c cmd> [-a] [-l LBA]\n"
10054 " camcontrol epc [dev_id][generic_args]<-c cmd> [-d] [-D] [-e]\n"
10060 " camcontrol depop [dev_id] [-d | -l | -r] [-e element] [-c capacity]\n"
10061 " camcontrol mmcsdcmd [dev_id] [[-c mmc_opcode] [-a mmc_arg]\n"
10107 "security report or send ATA security commands to the named device\n"
10116 "mmcsdcmd send the given MMC command, needs -c and -a as well\n"
10149 "-c only report a count of available LUNs\n"
10160 "-c cdb [args] specify the SCSI CDB\n"
10189 "-c CAM_DEBUG_CDB -- print out SCSI CDBs only\n"
10196 "-c report/set current negotiation settings\n"
10213 "-c passes overwrite passes to perform (1 to 31)\n"
10229 "security arguments:\n"
10230 "-d pwd disable security using the given password for the selected\n"
10233 "-f freeze the security configuration of the specified device\n"
10238 "-l <high|maximum> specifies which security level to set: high or maximum\n"
10240 "-s pwd password the device (enable security) using the given\n"
10282 "-c get cached attributes\n"
10297 "-c cmd required: rz, open, close, finish, or rwp\n"
10304 "-c cmd required: restore, goto, timer, state, enable, disable,\n"
10333 "-c capacity requested new capacity\n"
10335 "-c mmc_cmd MMC command to send to the card\n"
10352 int c;
10495 while ((c = getopt(argc, argv, combinedopt))!= -1){
10496 switch(c) {