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.
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);