- FILE *out_content = NULL;
- FILE *out_signature = NULL;
- if (ContentFile != -1)
- {
- out_content = fdopen(ContentFile, "w");
- if (out_content == NULL)
- {
- fclose(in);
- return _error->Errno("fdopen", "Failed to open file to write content to from %s", InFile.c_str());
- }
- }
- if (SignatureFile != -1)
- {
- out_signature = fdopen(SignatureFile, "w");
- if (out_signature == NULL)
- {
- fclose(in);
- if (out_content != NULL)
- fclose(out_content);
- return _error->Errno("fdopen", "Failed to open file to write signature to from %s", InFile.c_str());
- }
- }
-