David Howells <dhowe...@redhat.com> wrote: > Does this addition help?
Rather, this. Seems I shouldn't pass PKCS7_STREAM. David --- commit 227ccb6a71bd9a04d1aaff08a52fcb5ae4149d1e Author: David Howells <dhowe...@redhat.com> Date: Thu Sep 24 12:15:06 2015 +0100 Further pkcs7 signing changes diff --git a/scripts/sign-file.c b/scripts/sign-file.c index f65120e2aa03..811a37a1c6e3 100755 --- a/scripts/sign-file.c +++ b/scripts/sign-file.c @@ -271,7 +271,7 @@ int main(int argc, char **argv) #else pkcs7 = PKCS7_sign(x509, private_key, NULL, bm, PKCS7_NOCERTS | PKCS7_BINARY | - PKCS7_DETACHED | PKCS7_STREAM | use_signed_attrs); + PKCS7_DETACHED | use_signed_attrs); ERR(!pkcs7, "PKCS7_sign"); #endif @@ -307,7 +307,7 @@ int main(int argc, char **argv) #ifndef USE_PKCS7 ERR(i2d_CMS_bio_stream(bd, cms, NULL, 0) < 0, "%s", dest_name); #else - ERR(i2d_PKCS7_bio_stream(bd, pkcs7, NULL, 0) < 0, "%s", dest_name); + ERR(i2d_PKCS7_bio(bd, pkcs7) < 0, "%s", dest_name); #endif sig_size = BIO_number_written(bd) - module_size; sig_info.sig_len = htonl(sig_size); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/