From patchwork Wed Mar 4 19:51:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 5939851 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E58769F36A for ; Wed, 4 Mar 2015 19:52:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27D07202F8 for ; Wed, 4 Mar 2015 19:52:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 105A520254 for ; Wed, 4 Mar 2015 19:52:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759053AbbCDTwB (ORCPT ); Wed, 4 Mar 2015 14:52:01 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:39536 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758147AbbCDTwA (ORCPT ); Wed, 4 Mar 2015 14:52:00 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 567C834079D for ; Wed, 4 Mar 2015 19:51:59 +0000 (UTC) From: Mike Frysinger To: linux-wireless@vger.kernel.org Subject: [PATCH crda 3/4] fix openssl generation Date: Wed, 4 Mar 2015 14:51:53 -0500 Message-Id: <1425498714-8654-3-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.3.1 In-Reply-To: <1425498714-8654-1-git-send-email-vapier@gentoo.org> References: <1425498714-8654-1-git-send-email-vapier@gentoo.org> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mike Frysinger This file uses BN_ULONG but doesn't include the openssl headers leading to build failures: keys-ssl.c:2:8: error: unknown type name 'BN_ULONG' static BN_ULONG e_0[1] = { The large unqualified constants also break building: keys-ssl.c:8:2: warning: overflow in implicit constant conversion [-Woverflow] 0x63a2705416a0d8e1, 0xdc9fca11c8ba757b, ^ Signed-off-by: Mike Frysinger --- utils/key2pub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/key2pub.py b/utils/key2pub.py index 3e84cd2..c504aca 100755 --- a/utils/key2pub.py +++ b/utils/key2pub.py @@ -24,7 +24,7 @@ def print_ssl_64(output, name, val): for v1, v2, v3, v4, v5, v6, v7, v8 in vnew: if not idx: output.write('\t') - output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2x, ' % (ord(v1), ord(v2), ord(v3), ord(v4), ord(v5), ord(v6), ord(v7), ord(v8))) + output.write('0x%.2x%.2x%.2x%.2x%.2x%.2x%.2x%.2xULL, ' % (ord(v1), ord(v2), ord(v3), ord(v4), ord(v5), ord(v6), ord(v7), ord(v8))) idx += 1 if idx == 2: idx = 0 @@ -60,6 +60,7 @@ def print_ssl_32(output, name, val): def print_ssl(output, name, val): import struct output.write('#include \n') + output.write('#include \n') if len(struct.pack('@L', 0)) == 8: return print_ssl_64(output, name, val) else: