pki: Replace BUILD_FROM_FD with passing a chunk via BUILD_BLOB

This allows more than one builder to try parsing the data read from STDIN.
This commit is contained in:
Tobias Brunner
2013-10-23 17:20:39 +02:00
parent 46cded2627
commit 71c9565a3a
11 changed files with 54 additions and 74 deletions
+5 -1
View File
@@ -271,8 +271,12 @@ static int self()
}
else
{
chunk_t chunk;
chunk = chunk_from_fd(0);
private = lib->creds->create(lib->creds, CRED_PRIVATE_KEY, type,
BUILD_FROM_FD, 0, BUILD_END);
BUILD_BLOB, chunk, BUILD_END);
free(chunk.ptr);
}
if (!private)
{