summaryrefslogtreecommitdiff
path: root/scheduler/client.c
Commit message (Collapse)AuthorAgeFilesLines
* Update CGI documentation and add testable examples for CGI support (Issue #5940)Michael R Sweet2021-09-091-3/+2
|
* Fix bug that removes language instead of country codeAlfonso Gregory2021-08-301-3/+4
|
* Import all of the bug fixes from the OpenPrinting CUPS repository.Michael R Sweet2021-04-051-28/+22
| | | | | | Import the improvements to ippeveprinter from OpenPrinting/ippsample. Import the improvements to ippfind and ipptool from OpenPrinting/ippsample.
* Fix handling of printer resource files (Issue #5652)Michael R Sweet2019-10-021-10/+23
|
* Multiple security/disclosure issues:Michael R Sweet2019-08-151-11/+12
| | | | | | | - CVE-2019-8696 and CVE-2019-8675: Fixed SNMP buffer overflows (rdar://51685251) - Fixed IPP buffer overflow (rdar://50035411) - Fixed memory disclosure issue in the scheduler (rdar://51373853) - Fixed DoS issues in the scheduler (rdar://51373929)
* Explain the "forbidden" error better (Issue #5547)Michael R Sweet2019-05-151-1/+10
|
* Stop advertising the HTTP methods that are supported (Issue #5540)Michael R Sweet2019-03-111-2/+0
|
* Fix online help through web interface...Michael R Sweet2019-01-241-1/+9
|
* Update usage and localized message about the URL to use for secure access.Michael R Sweet2019-01-241-12/+3
|
* Authentication in the web interface did not work on macOS (rdar://41444473)Michael R Sweet2018-06-291-4/+3
| | | | | | | | | cups/auth.c: - cups_local_auth(): Don't check for AuthRef twice, log fopen errors for the root cert as well. scheduler/client.c: - Also allow local auth with AuthRef's.
* Always use Negotiate or PeerCred for Kerberized printing.Michael R Sweet2018-05-101-3/+5
|
* - Added a workaround for certain web browsers that do not support multipleMichael R Sweet2018-04-161-5/+17
| | | | authentication schemes in a single response header (Issue #5289)
* Generate strings files for localizing PPD options (Issue #5194)Michael R Sweet2017-12-191-377/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | cups/language-private.h: - New _cupsMessageAdd and _cupsMessageSave private APIs. cups/language.c: - Implement new _cupsMessageAdd and _cupsMessageSave private APIs. cups/ppd-cache.c: - Generate strings array when loading cache from PPD. - Remove strings_uri (just pulling strings from PPD now). cups/ppd-private.h: - Remove strings_uri and add strings array to cache. scheduler/client.c: - Add support for /strings/NAME.strings - Cleanup implementation of GET/HEAD/POST to files. scheduler/ipp.c: - Return local strings file URI. - Clean up copy_printer_attrs implementation. scheduler/printers.c: - Save strings array to cache file, drop support for strings_uri. scheduler/printers.h: - Add strings filename to cupsd_printer_t structure.
* Fix authentication issues.Michael R Sweet2017-12-151-1/+3
|
* License change: Apache License, Version 2.0.Michael R Sweet2017-11-071-5/+1
|
* Support the latest HTTP Digest authentication specification (Issue #4862)Michael R Sweet2017-11-061-7/+20
| | | | | | | | | | | | | | | | | | | | | | | Also deprecates all httpMD5* functions. - cgi-bin/var.c: Use cupsHashData to compute SID hash. - cups/auth.c: Rewrite WWW-Authenticate parser to support multiple auth schemes and the new RFC 7616 version of HTTP Digest. - cups/cups.h: Add cupsHashString function to get a hex version of a hash. - cups/hash.c: Add MD5 support. - cups/http.c: Track WWW-Authenticate in a long string, concatenate new set values. - cups/http.h: Deprecate httpMD5* and recommend cupsDoAuth and cupsHash*. - cups/http-private.h: Pull MD5 stuff, nonce_count is unsigned, track WWW-Authenticate header as a potentially long string. - cups/http-support.c: Use cupsHashData to compute UUID hash. - cups/md5.c: Comment everything out if we have an OS-supplied MD5 hash function. - cups/md5passwd.c: Use cupsHash* functions. - cups/tls-*.c: Use cupsHash* functions. - cups/versioning.h: Add CUPS_API_2_3 definition. - scheduler/client.c: Update WWW-Authenticate header to include AuthRef, Local, and PeerCred schemes with parameters as needed.
* Drop hard-coded CGI scripting language support (Issue #5124)Michael R Sweet2017-11-011-111/+0
|
* The scheduler did not run with a high enough priority, causing problems onMichael Sweet2017-10-021-4/+6
| | | | | | | | busy systems (rdar://33789342) - Change ProcessType to Adaptive for both cupsd and cups-lpd - Add "working" parameter to cupsdSetBusyState - Call cupsdSetBusyState on startup to boost the priority on startup.
* The web interface did not support newer language identifiers used by MicrosoftMichael Sweet2017-08-281-34/+4
| | | | | | | web browsers (Issue #5803) Make sure cupsLangGet supports region codes and that the scheduler uses cupsLangGet when mapping IPP naturalLanguage values to POSIX locales.
* Allow "Negotiate" as an AuthType/DefaultAuthType, even on systems that don'tMichael Sweet2017-03-091-4/+2
| | | | | have Kerberos support compiled in. The result will be a run-time access failure that gets logged instead of stopping cupsd (Issue #4947)
* Fix source file header text duplication text duplication.Michael R Sweet2017-01-161-1/+1
| | | | Bump copyright to 2017 in web interface and README files.
* Add reporting of HTTP state (as well as status) in cupsdReadClient, in hopes ofMichael R Sweet2017-01-041-2/+2
| | | | | identifying why two users are experiencing continuous 100-continues after a client disconnects after an authentication challenge.
* Don't treat "localhost.localdomain" as an allowed replacement for localhost, ↵Michael R Sweet2017-01-031-3/+0
| | | | since it isn't.
* Update all references to OS X to macOS.Michael R Sweet2016-06-201-1/+1
|
* Remove all of the Subversion keywords from various source files.Michael R Sweet2016-04-111-7/+0
|
* The scheduler did not return non-shared printers to local clients unlessmsweet2016-03-091-1/+6
| | | | | | | | they connected to the domain socket (<rdar://problem/24566996>) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13128 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix access to resource files when the web interface was disabled (STR #4755)msweet2016-01-261-37/+21
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13060 a1ca3aef-8c08-0410-bb20-df032aa958be
* Scheduler logging change (STR #4728)msweet2015-11-171-1/+1
| | | | | | | Just log "connection now encrypted" as a debug message now. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12974 a1ca3aef-8c08-0410-bb20-df032aa958be
* Make sure to delete temporary file on failed install of cupsd.confmsweet2015-11-111-4/+15
| | | | | | | (<rdar://problem/23135207>) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12962 a1ca3aef-8c08-0410-bb20-df032aa958be
* Cleanup some DEBUG2 log messages (<rdar://problem/23135122>)msweet2015-10-261-74/+18
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12944 a1ca3aef-8c08-0410-bb20-df032aa958be
* Make sure /icons/printer.png and /ppds/printer.ppd point to real queues.msweet2015-10-261-2/+35
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12936 a1ca3aef-8c08-0410-bb20-df032aa958be
* Really fix it.msweet2015-10-231-2/+5
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12918 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix infinite loop on bad PUT (<rdar://problem/23132803>)msweet2015-10-231-0/+2
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12917 a1ca3aef-8c08-0410-bb20-df032aa958be
* Limit size of chunked requests (<rdar://problem/23132353>)msweet2015-10-231-0/+28
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12915 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix redirection in the web interface (STR #4538)msweet2015-06-241-0/+7
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12751 a1ca3aef-8c08-0410-bb20-df032aa958be
* Security: Fix CERT VU #810572 exploiting the dynamic linker (STR #4609)msweet2015-06-081-2/+7
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12700 a1ca3aef-8c08-0410-bb20-df032aa958be
* The scheduler could get caught in a busy loop (STR #4605)msweet2015-05-061-6/+11
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12613 a1ca3aef-8c08-0410-bb20-df032aa958be
* Eliminate usage of sprintf.msweet2015-02-181-1/+1
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12523 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix Linux builds without normal prerequisite libraries installed.msweet2014-08-281-3/+3
| | | | | | | Also correct GCC 4.8 compiler warnings. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12124 a1ca3aef-8c08-0410-bb20-df032aa958be
* Allow access to cupsd-created files with non-world-readable permissions via themsweet2014-08-251-4/+17
| | | | | | | | | | web interface (STR #4461). Use cupsdCreateConfFile API to create PPD files, and use the ConfigFilePerm for PPD files. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12113 a1ca3aef-8c08-0410-bb20-df032aa958be
* Also add the world-readable check.msweet2014-07-221-0/+11
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12056 a1ca3aef-8c08-0410-bb20-df032aa958be
* Security: Addressed some more situations where symlinked files would be servedmsweet2014-07-221-7/+17
| | | | | | | | by the web interface (STR #4455) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12055 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix CGI scripts (STR #4454)msweet2014-07-181-6/+1
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12051 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix authorization (and other error) text from CGIs.msweet2014-07-161-3/+14
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12037 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix cookie handling for web interface.msweet2014-07-161-6/+6
| | | | | | | | | Allow access to auth certificates in the state directory. Remove client connection from select when all data has been read from client. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12034 a1ca3aef-8c08-0410-bb20-df032aa958be
* Make sure we send a 0-length chunk for CGI output, even for things like ↵msweet2014-07-031-1/+5
| | | | | | "Status". git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11999 a1ca3aef-8c08-0410-bb20-df032aa958be
* Don't serve symlinked or non-world-readable files (STR #4450)msweet2014-07-031-3/+24
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11993 a1ca3aef-8c08-0410-bb20-df032aa958be
* Fix IPP read error messages (STR #4440)msweet2014-06-241-0/+3
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11947 a1ca3aef-8c08-0410-bb20-df032aa958be
* Drop lppasswd and (server-side) Digest authentication (STR #4321)msweet2014-03-281-4/+1
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11776 a1ca3aef-8c08-0410-bb20-df032aa958be
* Add systemd support to cupsd (STR #3282)msweet2014-03-211-1/+1
| | | | git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11717 a1ca3aef-8c08-0410-bb20-df032aa958be