]> git.ipfire.org Git - thirdparty/cups.git/log
thirdparty/cups.git
12 years agoThe scheduler did not delete job control backup files (STR #4244)
mike [Wed, 12 Dec 2012 20:19:43 +0000 (20:19 +0000)] 
The scheduler did not delete job control backup files (STR #4244)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10753 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoMore changes for STR #4223:
mike [Wed, 12 Dec 2012 18:02:06 +0000 (18:02 +0000)] 
More changes for STR #4223:

- Fix cupsctl man page
- Generate and install cups-files.conf online help.
- Fix "-t" operation that shows correct filename.
- Use syslog for startup errors.
- Fix installation of cupsd.conf - need to use ConfigurationFile and not ServerRoot/cupsd.conf.
- Check permissions of ConfigurationFile and CupsFilesFile - should be ConfigFilePerm.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10751 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix logic error in cupsGetPPD3 - was not checking the hostname of the connection.
mike [Wed, 12 Dec 2012 17:31:48 +0000 (17:31 +0000)] 
Fix logic error in cupsGetPPD3 - was not checking the hostname of the connection.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10750 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't set auth-info-required all of the time (STR #4205)
mike [Wed, 12 Dec 2012 12:27:27 +0000 (12:27 +0000)] 
Don't set auth-info-required all of the time (STR #4205)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10749 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoGenerate full 1284 device ID as needed (STR #3702)
mike [Tue, 11 Dec 2012 20:01:35 +0000 (20:01 +0000)] 
Generate full 1284 device ID as needed (STR #3702)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10748 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoStrip trailing slash from regex paths to prevent sandboxing issues.
mike [Tue, 11 Dec 2012 19:24:22 +0000 (19:24 +0000)] 
Strip trailing slash from regex paths to prevent sandboxing issues.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10747 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoCheck all support files at the start of a job.
mike [Tue, 11 Dec 2012 16:41:45 +0000 (16:41 +0000)] 
Check all support files at the start of a job.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10746 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix section references to RFC 2911.
mike [Tue, 11 Dec 2012 15:46:25 +0000 (15:46 +0000)] 
Fix section references to RFC 2911.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10745 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't put specific length checks in ippReadIO, instead leave them to the callers
mike [Tue, 11 Dec 2012 01:24:34 +0000 (01:24 +0000)] 
Don't put specific length checks in ippReadIO, instead leave them to the callers
to decide what to validate.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10744 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix some more issues with cupstestppd, and remove prc_5_110x220mm from the PWG
mike [Mon, 10 Dec 2012 23:31:29 +0000 (23:31 +0000)] 
Fix some more issues with cupstestppd, and remove prc_5_110x220mm from the PWG
media list since it is a duplicate of iso_dl_110x220mm.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10743 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix an edge case for cupstestppd.
mike [Mon, 10 Dec 2012 23:18:19 +0000 (23:18 +0000)] 
Fix an edge case for cupstestppd.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10742 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix httpFlush() when in the "waiting" state.
mike [Mon, 10 Dec 2012 23:17:27 +0000 (23:17 +0000)] 
Fix httpFlush() when in the "waiting" state.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10741 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix allocation check for SSL connections.
mike [Mon, 10 Dec 2012 16:19:55 +0000 (16:19 +0000)] 
Fix allocation check for SSL connections.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10740 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSave some testing code.
mike [Mon, 10 Dec 2012 16:13:53 +0000 (16:13 +0000)] 
Save some testing code.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10739 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix typo.
mike [Mon, 10 Dec 2012 16:07:00 +0000 (16:07 +0000)] 
Fix typo.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10738 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoClean up clang detection to include feature, in case anyone is using an old
mike [Mon, 10 Dec 2012 15:07:04 +0000 (15:07 +0000)] 
Clean up clang detection to include feature, in case anyone is using an old
version of clang...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10737 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't copy libbackend.a to SYMROOT.
mike [Fri, 7 Dec 2012 21:45:35 +0000 (21:45 +0000)] 
Don't copy libbackend.a to SYMROOT.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10736 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix AC_MSG call.
mike [Fri, 7 Dec 2012 21:40:34 +0000 (21:40 +0000)] 
Fix AC_MSG call.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10735 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix some clang errors.
mike [Fri, 7 Dec 2012 21:33:22 +0000 (21:33 +0000)] 
Fix some clang errors.

Switch over to the newer style SSL functions on OS X and stop supporting the old
stuff.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10734 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd new httpSetDefaultField API to set the default values for a few fields.
mike [Fri, 7 Dec 2012 19:49:44 +0000 (19:49 +0000)] 
Add new httpSetDefaultField API to set the default values for a few fields.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10733 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't set Accept-Encoding header by default since some printers are broken.
mike [Fri, 7 Dec 2012 13:07:12 +0000 (13:07 +0000)] 
Don't set Accept-Encoding header by default since some printers are broken.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10732 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoNeed <sys/fcntl.h>.
mike [Thu, 6 Dec 2012 21:43:35 +0000 (21:43 +0000)] 
Need <sys/fcntl.h>.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10731 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix logging about FileDevice.
mike [Thu, 6 Dec 2012 12:31:48 +0000 (12:31 +0000)] 
Fix logging about FileDevice.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10729 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't map "." in non-size names.
mike [Tue, 4 Dec 2012 20:00:55 +0000 (20:00 +0000)] 
Don't map "." in non-size names.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10727 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoRun dsymutil if we are installing symbol-rich binaries to SYMROOT.
mike [Tue, 4 Dec 2012 18:38:31 +0000 (18:38 +0000)] 
Run dsymutil if we are installing symbol-rich binaries to SYMROOT.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10726 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd old private APIs back as placeholders to prevent OS X 10.8 and earlier
mike [Tue, 4 Dec 2012 14:21:48 +0000 (14:21 +0000)] 
Add old private APIs back as placeholders to prevent OS X 10.8 and earlier
from failing after a software update...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10725 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoImplement httpPeek for compressed streams.
mike [Tue, 4 Dec 2012 14:08:33 +0000 (14:08 +0000)] 
Implement httpPeek for compressed streams.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10724 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix interop with older CUPS servers by falling back to IPP/1.1 (STR #4231)
mike [Mon, 3 Dec 2012 13:30:07 +0000 (13:30 +0000)] 
Fix interop with older CUPS servers by falling back to IPP/1.1 (STR #4231)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10722 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoChangelog.
mike [Mon, 3 Dec 2012 13:08:20 +0000 (13:08 +0000)] 
Changelog.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10720 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDocumentation fixes.
mike [Mon, 3 Dec 2012 13:05:49 +0000 (13:05 +0000)] 
Documentation fixes.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10718 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoMake sure we include stdarg.h for va_list definition.
mike [Mon, 3 Dec 2012 12:47:11 +0000 (12:47 +0000)] 
Make sure we include stdarg.h for va_list definition.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10717 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd some more chars that need to be escaped in a hostname.
mike [Mon, 3 Dec 2012 12:41:21 +0000 (12:41 +0000)] 
Add some more chars that need to be escaped in a hostname.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10715 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoMore fixes for STR #4223...
mike [Fri, 30 Nov 2012 22:16:49 +0000 (22:16 +0000)] 
More fixes for STR #4223...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10714 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoMissed this file for some reason (STR #4223)
mike [Mon, 26 Nov 2012 21:54:30 +0000 (21:54 +0000)] 
Missed this file for some reason (STR #4223)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10712 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoOne more fix for STR #4223 - default cups-files.conf location and warn about
mike [Mon, 26 Nov 2012 21:53:53 +0000 (21:53 +0000)] 
One more fix for STR #4223 - default cups-files.conf location and warn about
directives that have moved.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10711 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoMove file, directory, user, and group configuration to a separate file
mike [Mon, 26 Nov 2012 18:25:58 +0000 (18:25 +0000)] 
Move file, directory, user, and group configuration to a separate file
(STR #4223)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10709 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoRemove old private API.
mike [Fri, 16 Nov 2012 19:33:55 +0000 (19:33 +0000)] 
Remove old private API.

Make sure we enable compression for Print-Job, too.

Update doco file.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10708 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd support for compressing document data from ipptool.
mike [Fri, 16 Nov 2012 15:28:23 +0000 (15:28 +0000)] 
Add support for compressing document data from ipptool.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10707 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix HTTP PUT issues preventing cupsctl from working.
mike [Fri, 16 Nov 2012 15:14:03 +0000 (15:14 +0000)] 
Fix HTTP PUT issues preventing cupsctl from working.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10706 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix typos.
mike [Fri, 16 Nov 2012 01:33:08 +0000 (01:33 +0000)] 
Fix typos.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10705 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoNew documentation.
mike [Fri, 16 Nov 2012 00:55:20 +0000 (00:55 +0000)] 
New documentation.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10704 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoChangelog.
mike [Fri, 16 Nov 2012 00:54:02 +0000 (00:54 +0000)] 
Changelog.

Prefer deflate over gzip.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10703 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't send compression attribute in Validate-Job request.
mike [Fri, 16 Nov 2012 00:31:20 +0000 (00:31 +0000)] 
Don't send compression attribute in Validate-Job request.

Don't automatically start compressing in cupsSendRequest - require the app to
call httpSetField (needs documentation).

Make sure we have a document-format attribute to report when problems happen.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10702 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoBack out unintended change.
mike [Thu, 15 Nov 2012 21:01:56 +0000 (21:01 +0000)] 
Back out unintended change.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10701 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSave work.
mike [Thu, 15 Nov 2012 21:01:21 +0000 (21:01 +0000)] 
Save work.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10700 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd range checking to ippSetValueTag and ippSetGroupTag.
mike [Thu, 15 Nov 2012 18:20:29 +0000 (18:20 +0000)] 
Add range checking to ippSetValueTag and ippSetGroupTag.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10699 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoYay, fixed the make check failure - needed to still limit reads for chunked
mike [Thu, 15 Nov 2012 14:59:07 +0000 (14:59 +0000)] 
Yay, fixed the make check failure - needed to still limit reads for chunked
transfers when we aren't using compression.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10698 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSave work: more fixes for decompression support, add IPP compression support to
mike [Wed, 14 Nov 2012 21:48:51 +0000 (21:48 +0000)] 
Save work: more fixes for decompression support, add IPP compression support to
both cupsSendRequest and ippserver.  "make check" is not passing (yet), probably
a side-effect of some of the changes...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10697 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix some issues with the new compression support WRT state management.
mike [Tue, 13 Nov 2012 20:50:20 +0000 (20:50 +0000)] 
Fix some issues with the new compression support WRT state management.

Update ippserver to check for EPIPE on input.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10696 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoChangelog.
mike [Tue, 13 Nov 2012 19:23:51 +0000 (19:23 +0000)] 
Changelog.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10695 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd new httpGetContentEncoding API.
mike [Tue, 13 Nov 2012 19:22:57 +0000 (19:22 +0000)] 
Add new httpGetContentEncoding API.

Support Accept-Encoding in ippserver.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10694 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoMore cleanup on deprecation messages (now with messages if the compiler
mike [Tue, 13 Nov 2012 15:43:53 +0000 (15:43 +0000)] 
More cleanup on deprecation messages (now with messages if the compiler
supports it and we have a replacement function).

Switch ippserver to use httpConnect2 instead of httpConnectEncrypt.

Rename IPP_TAG_CUPS_COPY to IPP_TAG_CUPS_CONST since it is more for const
data than copied/retained data.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10693 7a7537e8-13f0-0310-91df-b6672ffda945

12 years ago"Unable to find printer" is a temporary message, so "INFO" instead of "ERROR".
mike [Tue, 13 Nov 2012 12:57:31 +0000 (12:57 +0000)] 
"Unable to find printer" is a temporary message, so "INFO" instead of "ERROR".

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10692 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoippserver now builds without using any deprecated constants/enums.
mike [Mon, 12 Nov 2012 17:05:51 +0000 (17:05 +0000)] 
ippserver now builds without using any deprecated constants/enums.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10691 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix up http_t state stuff now that we are tracking state changes properly.
mike [Sat, 10 Nov 2012 21:39:05 +0000 (21:39 +0000)] 
Fix up http_t state stuff now that we are tracking state changes properly.

Fix cupsGetResponse() to the the right thing when looping.

Update ippserver to support printer-icons.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10690 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix up IPP enumerations and types to use consistent naming, and provide legacy
mike [Fri, 9 Nov 2012 16:41:25 +0000 (16:41 +0000)] 
Fix up IPP enumerations and types to use consistent naming, and provide legacy
definitions as needed.

Update ippserver code to not require private HTTP stuff.

Add a few missing APIs needed to support HTTP/IPP servers.

Add implementation of httpAddrListen.

Add some error checking for Content-Length values that was missing.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10689 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix build.
mike [Thu, 8 Nov 2012 22:41:25 +0000 (22:41 +0000)] 
Fix build.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10687 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSave work.
mike [Thu, 8 Nov 2012 22:33:45 +0000 (22:33 +0000)] 
Save work.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10686 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoActually map print-color-mode to output-mode.
mike [Thu, 8 Nov 2012 17:24:13 +0000 (17:24 +0000)] 
Actually map print-color-mode to output-mode.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10685 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSave work: now using httpAcceptConnection, httpReadRequest, and httpWriteResponse.
mike [Thu, 8 Nov 2012 17:19:22 +0000 (17:19 +0000)] 
Save work: now using httpAcceptConnection, httpReadRequest, and httpWriteResponse.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10684 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoUse print-color-mode or output-mode (deprecated) as needed.
mike [Thu, 8 Nov 2012 17:18:46 +0000 (17:18 +0000)] 
Use print-color-mode or output-mode (deprecated) as needed.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10683 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoOnly resolve IPP USB printers locally.
mike [Wed, 7 Nov 2012 21:19:02 +0000 (21:19 +0000)] 
Only resolve IPP USB printers locally.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10682 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSave work on ippserver.
mike [Wed, 7 Nov 2012 14:31:27 +0000 (14:31 +0000)] 
Save work on ippserver.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10681 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoUse _CUPS_NO_DEPRECATED instead of CUPS_NO_DEPRECATED.
mike [Tue, 6 Nov 2012 18:40:17 +0000 (18:40 +0000)] 
Use _CUPS_NO_DEPRECATED instead of CUPS_NO_DEPRECATED.

Allow programs to define _IPP_PRIVATE_STRUCTURES to 0 to disable the private
structures.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10680 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoEliminate warning from unused vars...
mike [Tue, 6 Nov 2012 16:33:50 +0000 (16:33 +0000)] 
Eliminate warning from unused vars...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10679 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't wait for 5 seconds.
mike [Tue, 6 Nov 2012 13:03:57 +0000 (13:03 +0000)] 
Don't wait for 5 seconds.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10678 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix check for ippusb:
mike [Tue, 6 Nov 2012 12:57:31 +0000 (12:57 +0000)] 
Fix check for ippusb:

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10677 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoImplement httpReadRequest and httpWriteResponse.
mike [Fri, 2 Nov 2012 14:20:27 +0000 (14:20 +0000)] 
Implement httpReadRequest and httpWriteResponse.

Add ippAddStringf/fv.

Fix Upgrade: headers from scheduler.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10676 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix EXPECT WITH-VALUE with quoted strings.
mike [Fri, 2 Nov 2012 13:33:19 +0000 (13:33 +0000)] 
Fix EXPECT WITH-VALUE with quoted strings.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10675 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix error reporting.
mike [Fri, 2 Nov 2012 12:16:24 +0000 (12:16 +0000)] 
Fix error reporting.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10674 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSupport gzip/deflate on HTTP connections.
mike [Thu, 1 Nov 2012 00:57:55 +0000 (00:57 +0000)] 
Support gzip/deflate on HTTP connections.

Add httpConnect2, httpAddrCopyList, and several other new (stub, for now) APIs
to better support network connections and server implementations on top of
public API.

Update _httpCreate to support client/server mode and blocking behavior.

Deprecate httpConnect, httpConnectEncrypt, and httpReconnect.

Promote _httpAddrPort and _httpPeek to public API.

Add HTTP_FIELD_ACCEPT_ENCODING, HTTP_FIELD_ALLOW, and HTTP_FIELD_SERVER fields.

Add HTTP_STATE_ERROR and HTTP_STATE_UNKNOWN http_t states.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10672 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't retry Send-Document when printing from stdin, reprocess the whole job.
mike [Mon, 29 Oct 2012 16:39:01 +0000 (16:39 +0000)] 
Don't retry Send-Document when printing from stdin, reprocess the whole job.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10671 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't limit octetString values to 1023 octets internally, just in the test tool.
mike [Mon, 29 Oct 2012 16:15:58 +0000 (16:15 +0000)] 
Don't limit octetString values to 1023 octets internally, just in the test tool.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10670 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoOnly ignore server-error-internal-error 5 times.
mike [Mon, 29 Oct 2012 15:56:43 +0000 (15:56 +0000)] 
Only ignore server-error-internal-error 5 times.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10669 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't abort monitoring on an internal error error...
mike [Mon, 29 Oct 2012 15:51:29 +0000 (15:51 +0000)] 
Don't abort monitoring on an internal error error...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10668 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAllow ipptool to add octetString's to collections, too.
mike [Mon, 29 Oct 2012 11:39:59 +0000 (11:39 +0000)] 
Allow ipptool to add octetString's to collections, too.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10667 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoSupport "\," to prevent sending attributes with multiple values.
mike [Thu, 25 Oct 2012 14:26:47 +0000 (14:26 +0000)] 
Support "\," to prevent sending attributes with multiple values.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10666 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd logging of the requests we send...
mike [Thu, 25 Oct 2012 13:38:28 +0000 (13:38 +0000)] 
Add logging of the requests we send...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10665 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAlso need to pass job-password-encryption...
mike [Thu, 25 Oct 2012 11:55:41 +0000 (11:55 +0000)] 
Also need to pass job-password-encryption...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10664 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoTrack the operations each attribute/option goes in, and then make sure we send
mike [Wed, 24 Oct 2012 15:19:42 +0000 (15:19 +0000)] 
Track the operations each attribute/option goes in, and then make sure we send
operation attributes in CreateJob and SendDocument calls.

Also include a new private API for checking the options array.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10663 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd some more tests just for completeness.
mike [Tue, 23 Oct 2012 18:45:08 +0000 (18:45 +0000)] 
Add some more tests just for completeness.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10660 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix _cupsArrayAdd/NewStrings implementation with spaces. Also add unit test
mike [Tue, 23 Oct 2012 18:28:49 +0000 (18:28 +0000)] 
Fix _cupsArrayAdd/NewStrings implementation with spaces.  Also add unit test
for these functions.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10659 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd new 5101.1 media size names.
mike [Mon, 22 Oct 2012 17:21:20 +0000 (17:21 +0000)] 
Add new 5101.1 media size names.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10658 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdvertise correct TLS versions in Upgrade header.
mike [Mon, 22 Oct 2012 15:21:56 +0000 (15:21 +0000)] 
Advertise correct TLS versions in Upgrade header.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10657 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoClean up messages from the IPP backend - too much information about IPP
mike [Mon, 22 Oct 2012 15:10:50 +0000 (15:10 +0000)] 
Clean up messages from the IPP backend - too much information about IPP
versions.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10656 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoEliminate compiler warnings.
mike [Mon, 22 Oct 2012 00:27:38 +0000 (00:27 +0000)] 
Eliminate compiler warnings.

Get Xcode project building again.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10655 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't cancel a job after pausing the print queue.
mike [Fri, 19 Oct 2012 18:22:18 +0000 (18:22 +0000)] 
Don't cancel a job after pausing the print queue.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10654 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoUse /printers/foo for the resource instead of /.
mike [Fri, 19 Oct 2012 18:20:33 +0000 (18:20 +0000)] 
Use /printers/foo for the resource instead of /.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10653 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoRemove Unicode char from header.
mike [Fri, 19 Oct 2012 17:44:02 +0000 (17:44 +0000)] 
Remove Unicode char from header.

Don't error out on empty print files.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10652 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix another Avahi-caused crash (STR #4213)
mike [Wed, 17 Oct 2012 16:24:31 +0000 (16:24 +0000)] 
Fix another Avahi-caused crash (STR #4213)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10649 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoUSB is both usb: and ippusb: now...
mike [Wed, 17 Oct 2012 15:53:50 +0000 (15:53 +0000)] 
USB is both usb: and ippusb: now...

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10648 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFinal bits of changes to support paid printing, release printing, etc.
mike [Tue, 16 Oct 2012 00:47:35 +0000 (00:47 +0000)] 
Final bits of changes to support paid printing, release printing, etc.
(STR #4169)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10647 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoNext part of paid printing support - job-authorization-uri support, report
mike [Mon, 15 Oct 2012 22:41:12 +0000 (22:41 +0000)] 
Next part of paid printing support - job-authorization-uri support, report
printer-charge-info-uri when cupsChargeInfoURI is present in the PPD, add
CUPS extensions for finishings punch values.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10646 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoAdd status codes for paid printing.
mike [Mon, 15 Oct 2012 21:58:11 +0000 (21:58 +0000)] 
Add status codes for paid printing.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10645 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoUpdate USB backend to use new API.
mike [Mon, 15 Oct 2012 21:11:29 +0000 (21:11 +0000)] 
Update USB backend to use new API.

Fix indentation in cupstestppd.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10644 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoWork around broken 1284 device IDs that use a newline instead of a semicolon.
mike [Tue, 9 Oct 2012 03:01:31 +0000 (03:01 +0000)] 
Work around broken 1284 device IDs that use a newline instead of a semicolon.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10642 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix another spot where Avahi crashes cupsd because it does not handle NULL
mike [Wed, 3 Oct 2012 14:17:04 +0000 (14:17 +0000)] 
Fix another spot where Avahi crashes cupsd because it does not handle NULL
values returned by its own APIs (STR #4200)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10640 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoThe IPP backend did not send a cancel request to printers when a job was
mike [Tue, 2 Oct 2012 16:30:35 +0000 (16:30 +0000)] 
The IPP backend did not send a cancel request to printers when a job was
canceled and the printer did not support Create-Job.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10638 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoFix EPM packaging file (STR #4199)
mike [Mon, 1 Oct 2012 13:24:08 +0000 (13:24 +0000)] 
Fix EPM packaging file (STR #4199)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10636 7a7537e8-13f0-0310-91df-b6672ffda945

12 years agoDon't use userland pthread hack on newer versions of OpenBSD (STR #4197)
mike [Mon, 1 Oct 2012 12:35:07 +0000 (12:35 +0000)] 
Don't use userland pthread hack on newer versions of OpenBSD (STR #4197)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10634 7a7537e8-13f0-0310-91df-b6672ffda945