Extend username limit to 128-1

This commit is contained in:
Lauri Kasanen
2023-11-06 15:22:23 +02:00
parent 73c3bda8cd
commit fb7570709a
5 changed files with 8 additions and 6 deletions

View File

@@ -33,7 +33,6 @@
#include <openssl/sha.h> /* sha1 hash */
#include "websocket.h"
#include "jsonescape.h"
#include "kasmpasswd.h"
#include <network/Blacklist.h>
/*
@@ -1756,7 +1755,7 @@ ws_ctx_t *do_handshake(int sock, char * const ip) {
}
unsigned char owner = 0;
char inuser[32] = "-";
char inuser[USERNAME_LEN] = "-";
if (!settings.disablebasicauth) {
const char *hdr = strstr(handshake, "Authorization: Basic ");
if (!hdr) {