From 78b18705a655ee1a68aca48e95ff4dedba1b98a1 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 18 Jan 2015 12:45:50 +0200 Subject: [PATCH] [PATCH 0/3] smime with some refactoring --- 9a/8aed793462e3c95f813673622ba5e895c2d642 | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 9a/8aed793462e3c95f813673622ba5e895c2d642 diff --git a/9a/8aed793462e3c95f813673622ba5e895c2d642 b/9a/8aed793462e3c95f813673622ba5e895c2d642 new file mode 100644 index 000000000..96ab33ec1 --- /dev/null +++ b/9a/8aed793462e3c95f813673622ba5e895c2d642 @@ -0,0 +1,93 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 591DC431FC2 + for ; Sun, 18 Jan 2015 02:45:46 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.738 +X-Spam-Level: * +X-Spam-Status: No, score=1.738 tagged_above=-999 required=5 + tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id yIJryT1jEIpO for ; + Sun, 18 Jan 2015 02:45:43 -0800 (PST) +Received: from mail-we0-f171.google.com (mail-we0-f171.google.com + [74.125.82.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E6AA5431FAF + for ; Sun, 18 Jan 2015 02:45:42 -0800 (PST) +Received: by mail-we0-f171.google.com with SMTP id u56so26853794wes.2 + for ; Sun, 18 Jan 2015 02:45:41 -0800 (PST) +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=L0VwelHP5pXh8S0404KlpZyhtOV445O2DVyuvM7iuls=; + b=cDWwkO9wqDTrvTjC/pJ1euyir/CmnKtDAUIl+MFScqujsvAeaCJRhKT4j2oyYW3UzP + eXQ6Z5fsEiGPAU/UBfQia5LKqLpW18d2RtcMqPz5DGrT/WwIozUDjJGsV3mzec7xHgpG + yq09rFQ1a2gF3HMEhCQnysuNG/UdQSp59RjCzMQ7bmCvg90zYJBeAq06UJCTDzr8zcXb + ZsPpk+27ShU/75yq/l8oZpDWRPhjukcZRhWQmiKm5tkXb31ZS1nHyNQ2o6fAV1bRFRjD + gl+4jE4R8OJWFQcWrnJ/6PusOGoD6/PLxK6ISJaby8sGHqIjKiqHCFOfgQv+QIHTBV++ + t06w== +X-Gm-Message-State: + ALoCoQmDcmXlJjAX6rvFsiMNsnB43zWqS4NXMdVWVwNyZmgRJQXxPq6rLtn6nnb421bDBqf1MBkn +X-Received: by 10.194.142.234 with SMTP id + rz10mr47999116wjb.118.1421577941822; Sun, 18 Jan 2015 02:45:41 -0800 (PST) +Received: from localhost (mobile-internet-bcee14-89.dhcp.inet.fi. + [188.238.20.89]) + by mx.google.com with ESMTPSA id ej10sm9888918wib.2.2015.01.18.02.45.40 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sun, 18 Jan 2015 02:45:41 -0800 (PST) +From: Jani Nikula +To: david@tethera.net, + notmuch@notmuchmail.org +Subject: [PATCH 0/3] smime with some refactoring +Date: Sun, 18 Jan 2015 12:45:50 +0200 +Message-Id: +X-Mailer: git-send-email 2.1.4 +In-Reply-To: <1421568167-18683-3-git-send-email-david@tethera.net> +References: <1421568167-18683-3-git-send-email-david@tethera.net> +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 18 Jan 2015 10:45:46 -0000 + +On Sun, 18 Jan 2015, David Bremner wrote: +> The notmuch-show flags --decrypt and --verify will now also process +> S/MIME multiparts if encountered. Requires gmime-2.6 and gpgsm. + +Hi David - + +I've had some S/MIME patches laying around since 2013, almost +forgotten... functionally it's the same but I have a couple of +refactoring prep patches that I think makes it a bit nicer. + +BR, +Jani. + + +Jani Nikula (3): + crypto: refactor context creation to facilitate further work + crypto: make crypto ctx initialization an array + cli: crypto: S/MIME verification/decryption support + + crypto.c | 103 ++++++++++++++++++++++++++++++++++++++++++++++--------- + notmuch-client.h | 7 ++-- + 2 files changed, 91 insertions(+), 19 deletions(-) + +-- +2.1.4 + -- 2.26.2