From patchwork Sun Jun 5 03:13:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas De Marchi X-Patchwork-Id: 9155063 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C6D0C6082E for ; Sun, 5 Jun 2016 03:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDA4C1FF45 for ; Sun, 5 Jun 2016 03:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2943206AC; Sun, 5 Jun 2016 03:14:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_HOME, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A816C2821F for ; Sun, 5 Jun 2016 03:14:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751409AbcFEDOS (ORCPT ); Sat, 4 Jun 2016 23:14:18 -0400 Received: from mail-qg0-f67.google.com ([209.85.192.67]:36107 "EHLO mail-qg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbcFEDOR (ORCPT ); Sat, 4 Jun 2016 23:14:17 -0400 Received: by mail-qg0-f67.google.com with SMTP id k43so3221217qgk.3 for ; Sat, 04 Jun 2016 20:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4LTBxyPqExpv3IHze8uZ5PUiuK7Nku67VHRESsgRuGw=; b=FAowCVyN989TmgqZvrpxls6pXZgR/6ceor0eY1lXSR4G+oKeAUnXljLWDmGxvk8cf2 FWmCIcl2cVqXGoxZTDMvzBvbKGoh62Hfo0+rp8/kaWrJHpy1VCiS+zlfgW+tEnD7qNof 9oujQYFqSpyropJSdh7A0xJygdCDEam/J5g60c/npo/DkLHgiTGRvoiBQ8AwI22/dBU6 eT6FI7qRB7izFEAeZdZF8KJstqANjmZUoYmDro6cPuA5guMZvx4I1TCPPnCuk1p/Ki9v BggeTzo3ddLGjQyGowBfivYyMbsGrWk3uMDTVUXz5hxG1e73ZP488uqpKlxHaezhFPj9 U+fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4LTBxyPqExpv3IHze8uZ5PUiuK7Nku67VHRESsgRuGw=; b=ZztSljvIHYFYAokSNZ+WxfPy1qwtJMfCcSRnU5lpxpuUqSvCFPr5O+NDW50IOigoWU kCe/Mtesi24iVTFJJtnbleLHuHvUM2axm3jTW/YxunJLm/ypSsyNEC6pdLHfb2LpUuwX QK13nvIVbOveO2Elh3UXvWXQ16iECs816gs069R5ml4rvxugIJ4RAg6tTkqA9XG5+luP FkRzC1H5bZA50nLsyRmTj6njIyp/BdX+pz/jRwHnjFMaL4sL4F/r46l+y1sbFIcYSm2S r12liDXMfEUdcMlzSAsgsE87XdBeRdBAlq/apg95qBxIdJ2UZrhd4XTHeTIVD3JGMOlG w7DQ== X-Gm-Message-State: ALyK8tJerwDGAUUdomE0mrgpKTLHdggZw0z3zruyQjAOUfakLwLr3y23fp15axqgVgrHYg== X-Received: by 10.140.229.148 with SMTP id z142mr10063690qhb.5.1465096456491; Sat, 04 Jun 2016 20:14:16 -0700 (PDT) Received: from ldmartin-mobl.home ([177.188.72.96]) by smtp.gmail.com with ESMTPSA id t65sm3658723qhe.23.2016.06.04.20.14.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jun 2016 20:14:15 -0700 (PDT) From: Lucas De Marchi To: linux-modules@vger.kernel.org Cc: Michal Marek , Wouter van Kesteren , Lucas De Marchi Subject: [PATCH 2/3] libkmod-signature: handle PKCS#7 Date: Sun, 5 Jun 2016 00:13:48 -0300 Message-Id: <1465096429-14024-2-git-send-email-lucas.de.marchi@gmail.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1465096429-14024-1-git-send-email-lucas.de.marchi@gmail.com> References: <1465096429-14024-1-git-send-email-lucas.de.marchi@gmail.com> Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Lucas De Marchi --- libkmod/libkmod-signature.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libkmod/libkmod-signature.c b/libkmod/libkmod-signature.c index 6fc06fc..ef5fe6e 100644 --- a/libkmod/libkmod-signature.c +++ b/libkmod/libkmod-signature.c @@ -69,12 +69,14 @@ const char *const pkey_hash_algo[PKEY_HASH__LAST] = { enum pkey_id_type { PKEY_ID_PGP, /* OpenPGP generated key ID */ PKEY_ID_X509, /* X.509 arbitrary subjectKeyIdentifier */ + PKEY_ID_PKCS7, /* Signature in PKCS#7 message */ PKEY_ID_TYPE__LAST }; const char *const pkey_id_type[PKEY_ID_TYPE__LAST] = { [PKEY_ID_PGP] = "PGP", [PKEY_ID_X509] = "X509", + [PKEY_ID_PKCS7] = "PKCS#7", }; /*