added support for %prompt-ing private key passhprases in strokes "ipsec secrets"

This commit is contained in:
Martin Willi
2009-08-26 11:23:50 +02:00
parent 7c2d883af7
commit 750bbcf9a8
4 changed files with 96 additions and 17 deletions
+2 -2
View File
@@ -333,7 +333,7 @@ static void stroke_list(private_stroke_socket_t *this, stroke_msg_t *msg, FILE *
static void stroke_reread(private_stroke_socket_t *this,
stroke_msg_t *msg, FILE *out)
{
this->cred->reread(this->cred, msg);
this->cred->reread(this->cred, msg, out);
}
/**
@@ -467,7 +467,7 @@ static job_requeue_t process(stroke_job_context_t *ctx)
return JOB_REQUEUE_NONE;
}
out = fdopen(strokefd, "w");
out = fdopen(strokefd, "w+");
if (out == NULL)
{
DBG1(DBG_CFG, "opening stroke output channel failed: %s", strerror(errno));