From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753361AbbIXLVu (ORCPT ); Thu, 24 Sep 2015 07:21:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39684 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752165AbbIXLVt (ORCPT ); Thu, 24 Sep 2015 07:21:49 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <14070.1443093533@warthog.procyon.org.uk> References: <14070.1443093533@warthog.procyon.org.uk> <12398.1442324426@warthog.procyon.org.uk> <19089.1442357783@warthog.procyon.org.uk> <15243.1442443515@warthog.procyon.org.uk> Cc: dhowells@redhat.com, Vinson Lee , David Woodhouse , "Luis R. Rodriguez" , Mimi Zohar , Marcel Holtmann , LKML Subject: Re: Linux 4.3-rc1 build error on CentOS 5.11 "scripts/sign-file.c:23:25: fatal error: openssl/cms.h: No such file or directory" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21320.1443093705.1@warthog.procyon.org.uk> Date: Thu, 24 Sep 2015 12:21:45 +0100 Message-ID: <21321.1443093705@warthog.procyon.org.uk> To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells wrote: > Does this addition help? Rather, this. Seems I shouldn't pass PKCS7_STREAM. David --- commit 227ccb6a71bd9a04d1aaff08a52fcb5ae4149d1e Author: David Howells 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);