From: Michael R Sweet Date: Wed, 3 Dec 2025 12:08:04 +0000 (-0500) Subject: Update cert username field to match connection username field size (Issue #1441) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14bc0e7b56d82d7d59050211eea75bf70b54ab44;p=thirdparty%2Fcups.git Update cert username field to match connection username field size (Issue #1441) --- diff --git a/scheduler/cert.h b/scheduler/cert.h index 65c2176f32..0fac8ec652 100644 --- a/scheduler/cert.h +++ b/scheduler/cert.h @@ -1,11 +1,12 @@ /* * Authentication certificate definitions for the CUPS scheduler. * - * Copyright © 2020-2024 by OpenPrinting. - * Copyright 2007-2012 by Apple Inc. - * Copyright 1997-2005 by Easy Software Products. + * Copyright © 2020-2025 by OpenPrinting. + * Copyright © 2007-2012 by Apple Inc. + * Copyright © 1997-2005 by Easy Software Products. * - * Licensed under Apache License v2.0. See the file "LICENSE" for more information. + * Licensed under Apache License v2.0. See the file "LICENSE" for more + * information. */ /* @@ -17,7 +18,8 @@ typedef struct cupsd_cert_s struct cupsd_cert_s *next; /* Next certificate in list */ int pid; /* Process ID (0 for root certificate) */ char certificate[33]; /* 32 hex characters, or 128 bits */ - char username[33]; /* Authenticated username */ + char username[HTTP_MAX_VALUE]; + /* Authenticated username */ int type; /* AuthType for username */ } cupsd_cert_t;