Skip to content

Commit 14bc0e7

Browse files
committed
Update cert username field to match connection username field size (Issue #1441)
1 parent a071f2c commit 14bc0e7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

scheduler/cert.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
22
* Authentication certificate definitions for the CUPS scheduler.
33
*
4-
* Copyright © 2020-2024 by OpenPrinting.
5-
* Copyright 2007-2012 by Apple Inc.
6-
* Copyright 1997-2005 by Easy Software Products.
4+
* Copyright © 2020-2025 by OpenPrinting.
5+
* Copyright © 2007-2012 by Apple Inc.
6+
* Copyright © 1997-2005 by Easy Software Products.
77
*
8-
* Licensed under Apache License v2.0. See the file "LICENSE" for more information.
8+
* Licensed under Apache License v2.0. See the file "LICENSE" for more
9+
* information.
910
*/
1011

1112
/*
@@ -17,7 +18,8 @@ typedef struct cupsd_cert_s
1718
struct cupsd_cert_s *next; /* Next certificate in list */
1819
int pid; /* Process ID (0 for root certificate) */
1920
char certificate[33]; /* 32 hex characters, or 128 bits */
20-
char username[33]; /* Authenticated username */
21+
char username[HTTP_MAX_VALUE];
22+
/* Authenticated username */
2123
int type; /* AuthType for username */
2224
} cupsd_cert_t;
2325

0 commit comments

Comments
 (0)