mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Merge branch 'master' into pu
This commit is contained in:
commit
be3bab2ce0
2 changed files with 2 additions and 5 deletions
|
@ -63,7 +63,7 @@ ECDSA = SHA256:L71Q91yHwmHPYYkJMDgj0xmUuw16qFOhJbBr1mzsiOI
|
|||
RSA = SHA256:Ju+yWiMb/2O+gKQ9RJCDqvRg7l+Q95KFAeqM5sr6l2s
|
||||
|
||||
[auth]
|
||||
valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519
|
||||
valid-keytypes = ssh-rsa ssh-dss ecdsa-sha2-nistp256 ecdsa-sha2-nistp384 ecdsa-sha2-nistp521 ssh-ed25519 sk-ssh-ecdsa@openssh.com sk-ssh-ed25519@openssh.com
|
||||
username-regex = [a-zA-Z0-9]+[.\-_]?[a-zA-Z0-9]+$
|
||||
git-serve-cmd = /usr/local/bin/aurweb-git-serve
|
||||
ssh-options = restrict
|
||||
|
|
|
@ -875,10 +875,7 @@ function valid_pgp_fingerprint($fingerprint) {
|
|||
* @return bool True if the SSH public key is valid, otherwise false
|
||||
*/
|
||||
function valid_ssh_pubkey($pubkey) {
|
||||
$valid_prefixes = array(
|
||||
"ssh-rsa", "ssh-dss", "ecdsa-sha2-nistp256",
|
||||
"ecdsa-sha2-nistp384", "ecdsa-sha2-nistp521", "ssh-ed25519"
|
||||
);
|
||||
$valid_prefixes = explode(' ', config_get('auth', 'valid-keytypes'));
|
||||
|
||||
$has_valid_prefix = false;
|
||||
foreach ($valid_prefixes as $prefix) {
|
||||
|
|
Loading…
Add table
Reference in a new issue