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

Open
#12 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c

Research direction

Start with the RFC 8010 sections linked in the issue, then inspect libcups' _ippFile parsing code and the existing character-string and integer helpers. Extend handling for the listed group and value-tag ranges, including the proposed octet-string path, and verify that ipptool and ippserver accept and preserve those syntaxes.

Written by the indexing model from the issue text.

Description

enhancement priority-low

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.

Dominant language
C
Stars
81
Forks
48
Avg merge
23h 58m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/libcups

All issues in OpenPrinting/libcups

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.