Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipptool: Add support for arbitrary group tags and attribute syntaxes (value tags) #12

Open
michaelrsweet opened this issue May 17, 2022 · 2 comments
Labels
enhancement New feature or request priority-low
Milestone

Comments

@michaelrsweet
Copy link
Member

Currently libcups (and thus ipptool and ippserver) only supports the registered attribute syntaxes. However, section 3.5.2 of RFC 8010 allocates ranges of value tags for out of band (0x10 to 0x1f), integer (0x20 to 0x2f), octetString (0x30 to 0x3f), character-string (0x40 to 0x5f), and vendor extension values (0x40000000 to 0x7fffffff).

libcups should be extended to support these values, probably using a new ippAddOctetString2 function (with a value_tag argument, like we do for character strings and integers) for the octetString and vendor extension ranges. The _ippFile parsing code can then be extended to support these value tags accordingly.

Similarly, the tags from 0x00 to 0x0f are reserved for attribute group tags (in section 3.5.1 of RFC 8010) but should be supported as group_tag values.

@michaelrsweet michaelrsweet added enhancement New feature or request priority-low labels May 17, 2022
@michaelrsweet michaelrsweet added this to the Future milestone Mar 20, 2023
@michaelrsweet michaelrsweet changed the title Add support for arbitrary group tags and attribute syntaxes (value tags) ipptool: Add support for arbitrary group tags and attribute syntaxes (value tags) Sep 5, 2024
@gmuth
Copy link

gmuth commented Oct 10, 2024

What is the current behavior? Are attributes with out-of-band values just ignored?
From my experience it's quite common for IPP server/printer implementations to use out-of-band tags in situations where something goes wrong.

@michaelrsweet
Copy link
Member Author

@gmuth

What is the current behavior? Are attributes with out-of-band values just ignored?

Not at all. The current behavior is to support the registered group and out-of-band tag values. This bug tracks adding support for using non-registered values, both for experimentation and fuzzing/testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority-low
Projects
Development

No branches or pull requests

2 participants