version 1.371, 2019/11/25 00:54:23 |
version 1.372, 2019/11/25 00:55:58 |
|
|
case 'x': |
case 'x': |
if (*optarg == '\0') |
if (*optarg == '\0') |
fatal("Missing security key flags"); |
fatal("Missing security key flags"); |
ull = strtoull(optarg, &ep, 0); |
if (strcasecmp(optarg, "no-touch-required") == 0) |
if (*ep != '\0') |
sk_flags &= ~SSH_SK_USER_PRESENCE_REQD; |
fatal("Security key flags \"%s\" is not a " |
else { |
"number", optarg); |
ull = strtoull(optarg, &ep, 0); |
if (ull > 0xff) |
if (*ep != '\0') |
fatal("Invalid security key flags 0x%llx", ull); |
fatal("Security key flags \"%s\" is " |
sk_flags = (uint8_t)ull; |
"not a number", optarg); |
|
if (ull > 0xff) { |
|
fatal("Invalid security key " |
|
"flags 0x%llx", ull); |
|
} |
|
sk_flags = (uint8_t)ull; |
|
} |
break; |
break; |
case 'z': |
case 'z': |
errno = 0; |
errno = 0; |