293 |
return buf; |
return buf; |
294 |
} |
} |
295 |
if (!strcmp (key, "keygen.valid")) { |
if (!strcmp (key, "keygen.valid")) { |
296 |
_snprintf (buf, sizeof (buf)-1, "%d", ctx->valid); |
_snprintf (buf, sizeof (buf)-1, "%d", ctx->getValidDays ()); |
297 |
return buf; |
return buf; |
298 |
} |
} |
299 |
if (!strcmp (key, "keyedit.prompt")) { |
if (!strcmp (key, "keyedit.prompt")) { |
410 |
} |
} |
411 |
if( step == 2 && !strcmp ( key, "keygen.valid" ) ) { |
if( step == 2 && !strcmp ( key, "keygen.valid" ) ) { |
412 |
*r_step = step = 3; |
*r_step = step = 3; |
413 |
sprintf (buf, "%d", ctx->valid); |
sprintf (buf, "%d", ctx->getValidDays ()); |
414 |
return buf; |
return buf; |
415 |
} |
} |
416 |
if (step == 3 && !strcmp (key, "passphrase.enter")) { |
if (step == 3 && !strcmp (key, "passphrase.enter")) { |