From 2446ba54628ae5bf75cfd68d6e9ac9d1e0dc7186 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 28 Jan 2019 23:43:54 -0700 Subject: [PATCH] User.pm: bump up maximum key list length Increase the maximum size of the ssh public key list from 4096 to 9216 bytes. At 9216 bytes that's long enough to include three of the maximum bit length public keys. Signed-off-by: Kyle J. McKay --- Girocco/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Girocco/User.pm b/Girocco/User.pm index c2d88fe..064f6a2 100644 --- a/Girocco/User.pm +++ b/Girocco/User.pm @@ -272,8 +272,8 @@ sub keys_fill { my $cgi = $gcgi->cgi; $self->{keys} = _trimkeys($cgi->param('keys')); - length($self->{keys}) <= 4096 - or $gcgi->err("The list of keys is more than 4kb. Do you really need that much?"); + length($self->{keys}) <= 9216 + or $gcgi->err("The list of keys is more than 9kb. Do you really need that much?"); foreach my $key (split /\r?\n/, $self->{keys}) { my ($type, $bits, $fingerprint, $comment); ($type, $bits, $fingerprint, $comment) = sshpub_validate($key) -- 2.11.4.GIT