aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2016-01-20 09:57:40 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2016-01-20 09:57:40 +0530
commitbd5f64b8953f70b6e4c7f1683c1b0d8302ba861b (patch)
tree282d43ca2ac82a39e30dec5c6d7aa3f1a8ab4e51
parentukm: use new ssh fingerprint functions. (diff)
downloadgitolite-gentoo-bd5f64b8953f70b6e4c7f1683c1b0d8302ba861b.tar.gz
gitolite-gentoo-bd5f64b8953f70b6e4c7f1683c1b0d8302ba861b.tar.bz2
gitolite-gentoo-bd5f64b8953f70b6e4c7f1683c1b0d8302ba861b.zip
sshkeys-lint: remove a couple of subs...
a couple of subs are now re-defined following 285c4b5 ("sshkeys-lint: use new ssh fingerprint functions") because that commit pulls in Common.pm. One (dbg) was subtly different but was not being used anyway, while the other (usage) was genuinely redundant. Got rid of both.
-rwxr-xr-xsrc/commands/sshkeys-lint14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/commands/sshkeys-lint b/src/commands/sshkeys-lint
index a46e379..3f07b13 100755
--- a/src/commands/sshkeys-lint
+++ b/src/commands/sshkeys-lint
@@ -21,13 +21,6 @@ my $in_gl_section = 0;
my $warnings = 0;
my $KEYTYPE_REGEX = qr/\b(?:ssh-(?:rsa|dss|ed25519)|ecdsa-sha2-nistp(?:256|384|521))\b/;
-sub dbg {
- use Data::Dumper;
- for my $i (@_) {
- print STDERR "DBG: " . Dumper($i);
- }
-}
-
sub msg {
my $warning = shift;
return if $quiet and not $warning;
@@ -161,8 +154,7 @@ sub fprint {
}
# ------------------------------------------------------------------------
-sub usage {
- print <<EOF;
+=for usage
Usage: gitolite sshkeys-lint [-q] [optional list of pubkey filenames]
(optionally, STDIN can be a pipe or redirected from a file; see below)
@@ -181,6 +173,4 @@ Note that this runs ssh-keygen -l for each line in the authkeys file and each
pubkey in the argument list, so be wary of running it on something huge. This
is meant for troubleshooting.
-EOF
- exit 1;
-}
+=cut