From: Michael Sweet
NULL to lookupAF_UNSPEC for anyDecoded string
The caller must initialize "outlen" to the maximum size of the decoded
-string before calling @httpDecode64_2@. On return "outlen" contains the
+string before calling httpDecode64_2. On return "outlen" contains the
decoded length of the string.
Field index
Flush data from a HTTP connection.
+Flush data read from a HTTP connection.
void httpFlush(http_t *http);
Flush data in write buffer.
+Flush data written to a HTTP connection.
int httpFlushWrite(http_t *http);
Time of last read or write
The return value is the UNIX time of the last read or write. +
The return value is the time in seconds of the last read or write.
Connected address or NULL
Returns NULL if the socket is currently unconnected.
+
For connections created with httpConnect2, the address is for the
+server. For connections created with httpAccept, the address is for
+the client.
+
+Returns NULL if the socket is currently unconnected.
Authorization string
The authorization string is set by cupsDoAuthentication() and -httpSetAuthString(). Use httpGetAuthString() to retrieve the -string to use with httpSetField() for the HTTP_FIELD_AUTHORIZATION -value. +
The authorization string is set by cupsDoAuthentication and
+httpSetAuthString. Use httpGetAuthString to retrieve the
+string to use with httpSetField for the
+HTTP_FIELD_AUTHORIZATION value.
Cookie data or NULL
+Cookie data or NULL
Get a formatted date/time string from a time value.
@@ -3003,7 +3004,7 @@ const char *httpGetDateString2(time_t t, char *s, int slen);
| t | -UNIX time | Time in seconds |
|---|---|
| s | String buffer |
| slen | @@ -3021,7 +3022,7 @@ time_t httpGetDateTime(const char *s);Date/time string |
UNIX time
+Time in seconds
Get the current encryption mode of a connection.
@@ -3079,18 +3080,6 @@ const char *httpGetField(http_t *http, Return Value
Field value Lookup a hostname or IPv4 address, and return
-address records for the specified name.
-struct hostent *httpGetHostByName(const char *name); DEPRECATED httpGetHostByName
- Parameters
-
| name | -Hostname or IP address |
|---|
Host entry
Get the FQDN for the connection or local system.
@@ -3221,7 +3210,7 @@ char *httpGetSubField2(http_t *http, Size of value buffer
Value or NULL Value or Get the HTTP version at the other end.
@@ -3247,7 +3236,7 @@ char *httpGets(char *line, int length, http_t *http);Return Value
- NULLhttpGetVersion
Line or NULL
+Line or NULL
Send a HEAD request to the server.
@@ -3343,7 +3332,7 @@ ssize_t httpPeek(http_t *http, char *buffer, size_t length
This function copies available data from the given HTTP connection, reading
a buffer as needed. The data is still available for reading using
-httpRead or httpRead2.
+httpRead2.
For non-blocking connections the usual timeouts apply.
@@ -3498,9 +3487,10 @@ void httpSetAuthString(http_t *http, const char *scheme, c
This function just stores a copy of the current authorization string in
-the HTTP connection object. You must still call httpSetField() to set
-HTTP_FIELD_AUTHORIZATION prior to issuing a HTTP request using httpGet(),
-httpHead(), httpOptions(), httpPost, or httpPut().
+the HTTP connection object. You must still call httpSetField to set
+HTTP_FIELD_AUTHORIZATION prior to issuing a HTTP request using
+httpGet, httpHead, httpOptions, httpPost, or
+httpPut.
NULLLocalized status string
The returned string is localized to the current POSIX locale and is based -on the status strings defined in RFC 2616.
-Send an TRACE request to the server.
--int httpTrace(http_t *http, const char *uri);
-| http | -HTTP connection |
|---|---|
| uri | -URI for trace |
Status of call (0 = success)
+on the status strings defined in RFC 7231.Return a string describing a URI status code.
@@ -3842,7 +3819,7 @@ event notification (IPP_TAG_EVENT_NOTIFICATION), operation
Add a date attribute to an IPP message.
+Add a dateTime attribute to an IPP message.
ipp_attribute_t *ippAddDate(ipp_t *ipp, ipp_tag_t group, const char *name, const ipp_uchar_t *value);
1 on a match, 0 on no match
Returns non-zero when the attribute contains a matching charset, keyword, -language, mimeMediaType, name, text, URI, or URI scheme value. +naturalLanguage, mimeMediaType, name, text, uri, or uriScheme value.
cupsArrayDelete function.
Convert from RFC 1903 Date/Time format to UNIX time -in seconds.
+Convert from RFC 2579 Date/Time format to time in +seconds.
time_t ippDateToTime(const ipp_uchar_t *date);
| date | -RFC 1903 date info | RFC 2579 date info |
|---|
UNIX time value
@@ -4625,7 +4602,7 @@ int ippGetBoolean(ipp_attribute_t *attr, int elemBoolean value or 0 on error
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Collection value or NULL on error
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Number of values or 0 on error
Get a date value for an attribute.
+Get a dateTime value for an attribute.
const ipp_uchar_t *ippGetDate(ipp_attribute_t *attr, int element);
Date value or NULL
dateTime value or NULL
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Value or 0 on error
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Pointer to octetString data
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Lower value of range or 0
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Horizontal/cross feed resolution or 0
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
Get the string and optionally the language code for an attribute.
The element parameter specifies which value to get from 0 to
-ippGetCount(attr) - 1.
+ippGetCount(attr) - 1.
NULLNULL for don't careMajor version number or 0 on error
@@ -4893,9 +4870,9 @@ size_t ippLength(ipp_t *ipp);IPP request message
The new request message is initialized with the attributes-charset and -attributes-natural-language attributes added. The -attributes-natural-language value is derived from the current locale. +
The new request message is initialized with the "attributes-charset" and +"attributes-natural-language" attributes added. The +"attributes-natural-language" value is derived from the current locale.
IPP response message
The new response message is initialized with the same version-number, -request-id, attributes-charset, and attributes-natural-language as the -provided request message. If the attributes-charset or -attributes-natural-language attributes are missing from the request, -"utf-8" and a value derived from the current locale are substituted, +
The new response message is initialized with the same "version-number", +"request-id", "attributes-charset", and "attributes-natural-language" as the +provided request message. If the "attributes-charset" or +"attributes-natural-language" attributes are missing from the request, +'utf-8' and a value derived from the current locale are substituted, respectively.
@@ -5026,7 +5003,7 @@ theippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetCollection
@@ -5053,11 +5030,11 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetDate
- Set a date value in an attribute.
+ Set a dateTime value in an attribute.
int ippSetDate(ipp_t *ipp, ipp_attribute_t **attr, int element, const ipp_uchar_t *datevalue);
Parameters
@@ -5069,7 +5046,7 @@ int ippSetDate(ipp_t *ipp, ipp_a
element
Value number (0-based)
datevalue
- Date value
+ dateTime value
Return Value
1 on success, 0 on failure
@@ -5080,7 +5057,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetGroupTag
@@ -5135,7 +5112,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetName
@@ -5186,7 +5163,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetOperation
@@ -5242,7 +5219,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetRequestId
@@ -5293,7 +5270,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.6/macOS 10.8 ippSetState
@@ -5351,7 +5328,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
CUPS 1.7/macOS 10.9 ippSetStringf
@@ -5380,7 +5357,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
The format parameter uses formatting characters compatible with the
printf family of standard functions. Additional arguments follow it as
@@ -5414,7 +5391,7 @@ the ippNew, ip
The attr parameter may be modified as a result of setting the value.
The element parameter specifies which value to set from 0 to
-ippGetCount(attr).
+ippGetCount(attr).
The format parameter uses formatting characters compatible with the
printf family of standard functions. Additional arguments follow it as
@@ -5501,7 +5478,7 @@ const char *ippTagString(ipp_tag_t tag);
Return Value
Tag name
Discussion
- The returned names are defined in RFC 2911 and 3382.
+
The returned names are defined in RFC 8011 and the IANA IPP Registry.
CUPS 1.4/macOS 10.6 ippTagValue
@@ -5516,20 +5493,20 @@ ipp_tag_t ippTagValue(const char *name);
Return Value
Tag value
Discussion
- The tag names are defined in RFC 2911 and 3382.
+
The tag names are defined in RFC 8011 and the IANA IPP Registry.
ippTimeToDate
- Convert from UNIX time to RFC 1903 format.
+ Convert from time in seconds to RFC 2579 format.
const ipp_uchar_t *ippTimeToDate(time_t t);
Parameters
t
- UNIX time value
+ Time in seconds
Return Value
- RFC-1903 date/time data
+ RFC-2579 date/time data
CUPS 1.7/macOS 10.9 ippValidateAttribute
Validate the contents of an attribute.
@@ -5544,7 +5521,7 @@ int ippValidateAttribute(ipp_attribute_t *attr);<
Discussion
This function validates the contents of an attribute based on the name and
value tag. 1 is returned if the attribute is valid, 0 otherwise. On
-failure, cupsLastErrorString() is set to a human-readable message.
+failure, cupsLastErrorString is set to a human-readable message.
CUPS 1.7/macOS 10.9 ippValidateAttributes
@@ -5560,8 +5537,8 @@ int ippValidateAttributes(ipp_t *ipp);
1 if valid, 0 otherwise
Discussion
This function validates the contents of the IPP message, including each
-attribute. Like ippValidateAttribute, cupsLastErrorString() is set
-to a human-readable message on failure.
+attribute. Like ippValidateAttribute, cupsLastErrorString is
+set to a human-readable message on failure.
ippWrite
@@ -5729,15 +5706,13 @@ typedef enum http_uri_status_e http_uri_status_
typedef struct _ipp_attribute_s ipp_attribute_t;
- ipp_copycb_t
- The following structures are PRIVATE starting with CUPS 1.6/macOS 10.8.
-Please use the new accessor functions available in CUPS 1.6 and later, as
-these definitions will be moved to a private header file in a future release.
+ CUPS 1.6/macOS 10.8 ipp_copycb_t
+ ippCopyAttributes callback function
typedef int(*)(void *context, ipp_t *dst, ipp_attribute_t *attr)ipp_copycb_t;
CUPS 1.2/macOS 10.5 ipp_iocb_t
- IPP IO Callback Function
+ ippReadIO/ippWriteIO callback function
typedef ssize_t(*)(void *context, ipp_uchar_t *buffer, size_t bytes) ipp_iocb_t;
@@ -5747,12 +5722,12 @@ typedef ssize_t(*)(void *context, ipp_uchar_t *buffer, size_t bytes) ipp_iocb_t;
typedef enum ipp_orient_e ipp_orient_t;
ipp_pstate_t
- Printer states
+ Printer state values
typedef enum ipp_pstate_e ipp_pstate_t;
ipp_quality_t
- Qualities
+ Print quality values
typedef enum ipp_quality_e ipp_quality_t;
@@ -5762,7 +5737,7 @@ typedef enum ipp_quality_e ipp_quality_t;
typedef enum ipp_res_e ipp_res_t;
ipp_state_t
- IPP states
+ ipp_t state values
typedef enum ipp_state_e ipp_state_t;
@@ -6221,7 +6196,7 @@ are server-oriented...
IPP_ORIENT_REVERSE_PORTRAIT 180 degrees
ipp_pstate_e
- Printer states
+ Printer state values
Constants
IPP_PSTATE_IDLE Printer is idle
@@ -6229,7 +6204,7 @@ are server-oriented...
IPP_PSTATE_STOPPED Printer is stopped
ipp_quality_e
- Qualities
+ Print quality values
Constants
IPP_QUALITY_DRAFT Draft quality
@@ -6244,7 +6219,7 @@ are server-oriented...
IPP_RES_PER_INCH Pixels per inch
ipp_state_e
- IPP states
+ ipp_t state values
Constants
IPP_STATE_ATTRIBUTE One or more attributes need to be sent/received
@@ -6254,7 +6229,7 @@ are server-oriented...
IPP_STATE_IDLE Nothing is happening/request completed
ipp_status_e
- IPP status codes
+ IPP status code values
Constants
IPP_STATUS_CUPS_INVALID Invalid status name for ippErrorValue
@@ -6317,7 +6292,7 @@ are server-oriented...
IPP_STATUS_OK_TOO_MANY_EVENTS successful-ok-too-many-events
ipp_tag_e
- Format tags for attributes
+ Value and group tag values for attributes
Constants
IPP_TAG_ADMINDEFINE Admin-defined value
diff --git a/xcode/CUPS.xcodeproj/project.pbxproj b/xcode/CUPS.xcodeproj/project.pbxproj
index 6629a73c34..2edef83435 100644
--- a/xcode/CUPS.xcodeproj/project.pbxproj
+++ b/xcode/CUPS.xcodeproj/project.pbxproj
@@ -4897,8 +4897,8 @@
72220EDE133305BB00FCA411 /* http-addr.c */,
72220EDF133305BB00FCA411 /* http-addrlist.c */,
72220EE1133305BB00FCA411 /* http-support.c */,
- 72220EE5133305BB00FCA411 /* ipp-support.c */,
72220EE6133305BB00FCA411 /* ipp.c */,
+ 72220EE5133305BB00FCA411 /* ipp-support.c */,
72220EE8133305BB00FCA411 /* langprintf.c */,
72220EEA133305BB00FCA411 /* language.c */,
72220EEF133305BB00FCA411 /* md5.c */,