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
@@ -87,8 +87,12 @@ static int keyid()
}
else
{
chunk_t chunk;
chunk = chunk_from_fd(0);
cred = lib->creds->create(lib->creds, type, subtype,
BUILD_FROM_FD, 0, BUILD_END);
BUILD_BLOB, chunk, BUILD_END);
free(chunk.ptr);
}
if (!cred)
{