From 3e488d8b591a86a5b86d08c692f93947f8c2aaaa Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Thu, 27 Jan 2005 18:22:59 +0000 Subject: [PATCH] Add some sanity checks to smime_keys.pl. --- smime_keys.pl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/smime_keys.pl b/smime_keys.pl index 97f53e212..773eff958 100755 --- a/smime_keys.pl +++ b/smime_keys.pl @@ -58,8 +58,16 @@ my @cert_tmp_file = (); my $tmpdir; my $private_keys_path = mutt_Q 'smime_keys'; +die "smime_keys is not set in mutt's configuration file" + if length $private_keys_path == 0; + my $certificates_path = mutt_Q 'smime_certificates'; +die "smime_certificates is not set in mutt's configuration file" + if length $certificates_path == 0; my $root_certs_path = mutt_Q 'smime_ca_location'; +die "smime_ca_location is not set in mutt's configuration file" + if length $root_certs_path == 0; + my $root_certs_switch; if ( -d $root_certs_path) { $root_certs_switch = -CApath; -- 2.40.0