Added CGI args parser

This commit is contained in:
Jamie Cameron
2009-06-10 17:33:44 +00:00
parent 63b635715b
commit e083b2bcc0

17
sshd/cgi_args.pl Normal file
View File

@@ -0,0 +1,17 @@
do 'sshd-lib.pl';
sub cgi_args
{
my ($cgi) = @_;
if ($cgi eq 'edit_keys.cgi') {
# Allows no args
return undef;
}
elsif ($cgi eq 'edit_host.cgi') {
# First client host
my $hconf = &get_client_config();
return @$hconf ? 'idx=0' : 'new=1';
}
return undef;
}