From 80c373f688dc494f05fff492039b2574c2734b32 Mon Sep 17 00:00:00 2001 From: jake Date: Mon, 31 Jan 2022 02:15:57 -0500 Subject: remove used vars in peer_cert() --- gmi.pl | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gmi.pl') diff --git a/gmi.pl b/gmi.pl index 270fa3d..0df1f94 100755 --- a/gmi.pl +++ b/gmi.pl @@ -313,18 +313,13 @@ sub peer_cert { my $peer_fingerprint = $peer_cert->{fingerprint_sha256}; my $peer_not_before = $peer_cert->{not_before}; my $peer_not_after = $peer_cert->{not_after}; - my $peer_commonName = $peer_cert->{subject}->{commonName}; - my $peer_subjectAltNames = $peer_cert->{subjectAltNames}; my $verify_hostname = $cl->verify_hostname($hostname); ### $peer_cert ### $peer_fingerprint ### $peer_not_before ### $peer_not_after - ### $peer_commonName - ### $peer_subjectAltNames ### $verify_hostname - if (! $verify_hostname) { print $OUT "The server offers a cert that doesn't match their domain name.\n"; return 0; -- cgit v1.2.3