version 1.218, 2012/10/02 07:07:45 |
version 1.219, 2012/11/14 02:32:15 |
|
|
{ |
{ |
char dotsshdir[MAXPATHLEN], comment[1024], *passphrase1, *passphrase2; |
char dotsshdir[MAXPATHLEN], comment[1024], *passphrase1, *passphrase2; |
char *checkpoint = NULL; |
char *checkpoint = NULL; |
char out_file[MAXPATHLEN], *rr_hostname = NULL; |
char out_file[MAXPATHLEN], *rr_hostname = NULL, *ep; |
Key *private, *public; |
Key *private, *public; |
struct passwd *pw; |
struct passwd *pw; |
struct stat st; |
struct stat st; |
|
|
parse_cert_times(optarg); |
parse_cert_times(optarg); |
break; |
break; |
case 'z': |
case 'z': |
cert_serial = strtonum(optarg, 0, LLONG_MAX, &errstr); |
errno = 0; |
if (errstr) |
cert_serial = strtoull(optarg, &ep, 10); |
fatal("Invalid serial number: %s", errstr); |
if (*optarg < '0' || *optarg > '9' || *ep != '\0' || |
|
(errno == ERANGE && cert_serial == ULLONG_MAX)) |
|
fatal("Invalid serial number \"%s\"", optarg); |
break; |
break; |
case '?': |
case '?': |
default: |
default: |