Skip to content

Commit 3503617

Browse files
Merge pull request #1255 from OpenPrinting/oauth-web-ui
Integrate OAuth Web UI changes to master.
2 parents 3b4004f + 84ed8a4 commit 3503617

50 files changed

Lines changed: 2265 additions & 2093 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ paths-ignore:
22
- locale
33

44
query-filters:
5+
- exclude:
6+
id: cpp/guarded-free
57
- exclude:
68
id: cpp/cleartext-transmission
79
- exclude:

CHANGES.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ Changes in CUPS v2.5b1 (YYYY-MM-DD)
77
- Added multiple language support for IPP Everywhere.
88
- Added `cupsConcatString`, `cupsCopyString`, and `cupsFormatString` string
99
APIs.
10-
- Added new `cupsRasterInitHeader` API.
11-
- Added `httpConnectURI` API.
12-
- Added `httpGetSecurity` API.
10+
- Added `cupsRasterInitHeader` API.
11+
- Added `httpConnectURI`, `httpGetCookieValue`, and `httpGetSecurity` APIs.
1312
- Added `ippAddCredentialsString`, `ippGetFirstAttribute`,
1413
`ippGetNextAttribute`, `ippRestore`, and `ippSave` APIs.
1514
- Added new DNS-SD APIs.
@@ -33,8 +32,8 @@ Changes in CUPS v2.5b1 (YYYY-MM-DD)
3332
- Added a systemd slice to the systemd services included with the scheduler
3433
- Added localizations for deprecated IPP attributes/options (Issue #1020)
3534
- Added support for specifying permissions with the `cupsFileOpen` API.
36-
- Added new `cupsGetClock` API.
37-
- Added new `cupsParseOptions2` API with "end" argument.
35+
- Added `cupsGetClock` API.
36+
- Added `cupsParseOptions2` API with "end" argument.
3837
- Added `cups-oauth` and `cups-x509` utilities (Issue #1184)
3938
- Added `DNSSDComputerName` directive to "cupsd.conf" and updated cupsd to
4039
correctly update the mDNS hostname only if the `DNSSDHostName` directive is
@@ -77,6 +76,8 @@ Changes in CUPS v2.5b1 (YYYY-MM-DD)
7776
filtering options in client.conf (Issue #1180)
7877
- Updated the CUPS web interface to make administrative tasks more discoverable
7978
(Issue #1207)
79+
- Updated the `httpSetCookie` API to support multiple "Set-Cookie:" header
80+
values.
8081
- Deprecated the "page-border" Job Template attribute (Issue #1020)
8182
- Removed the `cups-config` utility (use `pkg-config` instead)
8283
- Fixed use-after-free in `cupsdAcceptClient()` when we log warning during error

cgi-bin/Dependencies

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ admin.o: admin.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \
5252
\
5353
\
5454
\
55-
\
56-
\
57-
\
58-
../cups/ppd-private.h ../cups/ppd.h ../cups/raster.h \
59-
../cups/pwg-private.h ../cups/adminutil.h
55+
../cups/ppd-private.h ../cups/ppd.h \
56+
../cups/raster.h ../cups/pwg-private.h ../cups/adminutil.h
6057
classes.o: classes.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \
6158
../cups/base.h ../cups/ipp.h ../cups/http.h ../cups/array.h \
6259
../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \
@@ -67,6 +64,11 @@ help.o: help.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \
6764
../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \
6865
../cups/language-private.h ../config.h ../cups/transcode.h \
6966
../cups/string-private.h ../cups/ipp-private.h
67+
home.o: home.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \
68+
../cups/base.h ../cups/ipp.h ../cups/http.h ../cups/array.h \
69+
../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \
70+
../cups/language-private.h ../config.h ../cups/transcode.h \
71+
../cups/string-private.h ../cups/ipp-private.h
7072
jobs.o: jobs.c cgi-private.h cgi.h ../cups/cups.h ../cups/file.h \
7173
../cups/base.h ../cups/ipp.h ../cups/http.h ../cups/array.h \
7274
../cups/language.h ../cups/pwg.h help-index.h ../cups/debug-private.h \

cgi-bin/Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# CGI makefile for CUPS.
33
#
4-
# Copyright © 2020-2024 by OpenPrinting.
4+
# Copyright © 2020-2025 by OpenPrinting.
55
# Copyright © 2007-2019 by Apple Inc.
66
# Copyright © 1997-2006 by Easy Software Products.
77
#
@@ -23,6 +23,7 @@ OBJS = \
2323
admin.o \
2424
classes.o \
2525
help.o \
26+
home.o \
2627
jobs.o \
2728
printers.o \
2829
testcgi.o \
@@ -32,6 +33,7 @@ CGIS = \
3233
admin.cgi \
3334
classes.cgi \
3435
help.cgi \
36+
home.cgi \
3537
jobs.cgi \
3638
printers.cgi
3739
LIBTARGETS = \
@@ -192,6 +194,16 @@ help.cgi: help.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a
192194
$(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
193195

194196

197+
#
198+
# home.cgi
199+
#
200+
201+
home.cgi: home.o ../Makedefs ../cups/$(LIBCUPS) libcupscgi.a
202+
echo Linking $@...
203+
$(LD_CC) $(ALL_LDFLAGS) -o $@ home.o libcupscgi.a $(LINKCUPS)
204+
$(CODE_SIGN) -s "$(CODE_SIGN_IDENTITY)" $@
205+
206+
195207
#
196208
# jobs.cgi
197209
#

cgi-bin/cgi.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* CGI support library definitions for CUPS.
33
*
4-
* Copyright © 2020-2024 by OpenPrinting.
4+
* Copyright © 2020-2025 by OpenPrinting.
55
* Copyright © 2007-2019 by Apple Inc.
66
* Copyright © 1997-2006 by Easy Software Products.
77
*
@@ -37,6 +37,14 @@
3737
extern "C" {
3838
# endif /* __cplusplus */
3939

40+
41+
/*
42+
* Constants...
43+
*/
44+
45+
# define CUPS_SID "org.cups.sid" /* Session ID cookie/variable */
46+
47+
4048
/*
4149
* Types...
4250
*/

0 commit comments

Comments
 (0)