]> granicus.if.org Git - mutt/commitdiff
Remove purpose checks in smime_keys.pl verify step.
authorKevin McCarthy <kevin@8t8.us>
Fri, 14 Sep 2018 21:23:04 +0000 (14:23 -0700)
committerKevin McCarthy <kevin@8t8.us>
Fri, 14 Sep 2018 21:23:04 +0000 (14:23 -0700)
The purpose checks are subsequently performed, and added as a field to
the .index.  In any case, it turns out passing multiple '-purpose'
arguments isn't even correct: openssl appears to just use the last
one.

Thanks to David J. Weller-Fahy for reporting the problem, and for
including a possible patch.

smime_keys.pl

index fdab3856fcaefd479d8c3137e621b8aa7aa50b0e..f9b9ec573d7b9d7e847bcdbddd7a6d0e815549f5 100755 (executable)
@@ -425,8 +425,7 @@ sub openssl_verify ($$) {
   my ($issuer_path, $cert_path) = @_;
 
   my @args = ("verify", $root_certs_switch, $root_certs_path,
-              "-purpose", "smimesign", "-purpose", "smimeencrypt", "-untrusted",
-              $issuer_path, $cert_path);
+              "-untrusted", $issuer_path, $cert_path);
   my $output = join("", openssl_exec(@args));
 
   chomp($output);