summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjake <jake@jakes-mail.top>2022-01-31 02:15:57 -0500
committerjake <jake@jakes-mail.top>2022-01-31 02:15:57 -0500
commit80c373f688dc494f05fff492039b2574c2734b32 (patch)
treec614a39c2cb6b080f85e7ad19eaf21886f1f3279
parentd62344f6747f224f2019f15a034a609d15e14293 (diff)
remove used vars in peer_cert()
-rwxr-xr-xgmi.pl5
1 files changed, 0 insertions, 5 deletions
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;