]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add "WITH-VALUE !number" comparison for ipptool.
authorMichael R Sweet <msweet@msweet.org>
Thu, 23 Oct 2025 21:55:46 +0000 (17:55 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 23 Oct 2025 21:55:46 +0000 (17:55 -0400)
Clean up man pages.

doc/help/man-cups-x509.html
doc/help/man-ipptoolfile.html
man/cups-x509.1
man/ipptoolfile.5
tools/ipptool.c

index bf0e98755ef6eb78733f6798321ec3b8d23587de..36788dd95aa81d4a38e17e2a02a694273db7eb35 100644 (file)
@@ -7,7 +7,7 @@
   <body>
     <h1 id="cups-x509-1">cups-x509(1)</h1>
     <h2 id="cups-x509-1.name">Name</h2>
-<p>cups-x509 - description
+<p>cups-x509 - manage x.509 certificates and certificate requests
 </p>
     <h2 id="cups-x509-1.synopsis">Synopsis</h2>
 <p><strong>cups-x509</strong>
index 52395a3b2e371883b81f31c71c9b434a8931686f..b7fb910388f9918d2a91cba705c0bdca98a53a8b 100644 (file)
@@ -402,15 +402,17 @@ Requires that all URI values contain a matching scheme.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES &quot;</strong><em>literal string</em><strong>&quot;</strong><br>
 Requires that all values of the <strong>EXPECT</strong> attribute match the literal string. Comparisons are case-sensitive.
-</p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES &lt;</strong><em>number</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES =</strong><em>number</em><br>
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES !</strong><em>number</em><br>
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES &lt;</strong><em>number</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES ></strong><em>number</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES </strong><em>number</em>[<em>,...,number</em>]<br>
-Requires that all values of the <strong>EXPECT</strong> attribute match the number(s) or numeric comparison. When comparing rangeOfInteger values, the &quot;&lt;&quot; and &quot;>&quot; operators only check the upper bound of the range.
+Requires that all values of the <strong>EXPECT</strong> attribute match (&quot;=&quot;), do not match (&quot;!&quot;), are less than (&quot;&lt;&quot;), or are greater than (&quot;>&quot;) the number(s). When comparing rangeOfInteger values, the &quot;&lt;&quot; and &quot;>&quot; operators only check the upper bound of the range, &quot;=&quot; checks for inclusion in a range, and &quot;!&quot; checks for exclusion of a range.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-ALL-VALUES &quot;false&quot;</strong><br>
 </p>
@@ -447,15 +449,17 @@ Requires that at least one URI value contains a matching scheme.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE &quot;</strong><em>literal string</em><strong>&quot;</strong><br>
 Requires that at least one value of the <strong>EXPECT</strong> attribute matches the literal string. Comparisons are case-sensitive.
-</p>
-    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE &lt;</strong><em>number</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE =</strong><em>number</em><br>
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE !</strong><em>number</em><br>
+</p>
+    <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE &lt;</strong><em>number</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE ></strong><em>number</em><br>
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE </strong><em>number</em>[<em>,...,number</em>]<br>
-Requires that at least one value of the <strong>EXPECT</strong> attribute matches the number(s) or numeric comparison. When comparing rangeOfInteger values, the &quot;&lt;&quot; and &quot;>&quot; operators only check the upper bound of the range.
+Requires that at least one value of the <strong>EXPECT</strong> attribute matches (&quot;=&quot;), does not match (&quot;!&quot;), is less than (&quot;&lt;&quot;), or is greater than (&quot;>&quot;) the number(s). When comparing rangeOfInteger values, the &quot;&lt;&quot; and &quot;>&quot; operators only check the upper bound of the range, &quot;=&quot; checks for inclusion in a range, and &quot;!&quot; checks for exclusion of a range.
 </p>
     <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>WITH-VALUE &quot;false&quot;</strong><br>
 </p>
index 138f9be27c2e6d591bf74f3d6428a7da577c6561..83ac187e86573333107fb483b3ceaf9c03a66fcf 100644 (file)
@@ -6,9 +6,9 @@
 .\" Licensed under Apache License v2.0.  See the file "LICENSE" for more
 .\" information.
 .\"
-.TH cups-x509 1 "CUPS" "2025-10-21" "OpenPrinting"
+.TH cups-x509 1 "CUPS" "2025-10-23" "OpenPrinting"
 .SH NAME
-cups-x509 \- description
+cups-x509 \- manage x.509 certificates and certificate requests
 .SH SYNOPSIS
 .B cups-x509
 .B \-\-help
index 1bf9e018252558f0629f8a5ff338a435dbcc17ee..8ce68088bfe7e9d469a578b674dfb8bf8bee0c25 100644 (file)
@@ -7,7 +7,7 @@
 .\" Licensed under Apache License v2.0.  See the file "LICENSE" for more
 .\" information.
 .\"
-.TH ipptoolfile 5 "CUPS" "2024-09-12" "OpenPrinting"
+.TH ipptoolfile 5 "CUPS" "2024-10-23" "OpenPrinting"
 .SH NAME
 ipptoolfile \- ipptool file format
 .SH DESCRIPTION
@@ -391,14 +391,16 @@ Requires that all URI values contain a matching scheme.
 \fBWITH\-ALL\-VALUES "\fIliteral string\fB"\fR
 Requires that all values of the \fBEXPECT\fR attribute match the literal string. Comparisons are case-sensitive.
 .TP 5
-\fBWITH\-ALL\-VALUES <\fInumber\fR
-.TP 5
 \fBWITH\-ALL\-VALUES =\fInumber\fR
 .TP 5
+\fBWITH\-ALL\-VALUES !\fInumber\fR
+.TP 5
+\fBWITH\-ALL\-VALUES <\fInumber\fR
+.TP 5
 \fBWITH\-ALL\-VALUES >\fInumber\fR
 .TP 5
 \fBWITH\-ALL\-VALUES \fInumber\fR[\fI,...,number\fR]
-Requires that all values of the \fBEXPECT\fR attribute match the number(s) or numeric comparison. When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range.
+Requires that all values of the \fBEXPECT\fR attribute match ("="), do not match ("!"), are less than ("<"), or are greater than (">") the number(s). When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range, "=" checks for inclusion in a range, and "!" checks for exclusion of a range.
 .TP 5
 \fBWITH\-ALL\-VALUES "false"\fR
 .TP 5
@@ -436,14 +438,16 @@ Requires that at least one URI value contains a matching scheme.
 \fBWITH\-VALUE "\fIliteral string\fB"\fR
 Requires that at least one value of the \fBEXPECT\fR attribute matches the literal string. Comparisons are case-sensitive.
 .TP 5
-\fBWITH\-VALUE <\fInumber\fR
-.TP 5
 \fBWITH\-VALUE =\fInumber\fR
 .TP 5
+\fBWITH\-VALUE !\fInumber\fR
+.TP 5
+\fBWITH\-VALUE <\fInumber\fR
+.TP 5
 \fBWITH\-VALUE >\fInumber\fR
 .TP 5
 \fBWITH\-VALUE \fInumber\fR[\fI,...,number\fR]
-Requires that at least one value of the \fBEXPECT\fR attribute matches the number(s) or numeric comparison. When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range.
+Requires that at least one value of the \fBEXPECT\fR attribute matches ("="), does not match ("!"), is less than ("<"), or is greater than (">") the number(s). When comparing rangeOfInteger values, the "<" and ">" operators only check the upper bound of the range, "=" checks for inclusion in a range, and "!" checks for exclusion of a range.
 .TP 5
 \fBWITH\-VALUE "false"\fR
 .TP 5
index 3dd59ed73eb90432c520410e985c45b78bcfdb85..a63eb4a962d33ff3abd2b5a70f624a71c37ab574 100644 (file)
@@ -7205,12 +7205,12 @@ with_value(ipptool_test_t  *data,       // I - Test data
 
          while (isspace(*valptr & 255) || isdigit(*valptr & 255) ||
                 *valptr == '-' || *valptr == ',' || *valptr == '<' ||
-                *valptr == '=' || *valptr == '>')
+                *valptr == '=' || *valptr == '>' || *valptr == '!')
          {
            op = '=';
            while (*valptr && !isdigit(*valptr & 255) && *valptr != '-')
            {
-             if (*valptr == '<' || *valptr == '>' || *valptr == '=')
+             if (*valptr == '<' || *valptr == '>' || *valptr == '=' || *valptr == '!')
                op = *valptr;
              valptr ++;
            }
@@ -7224,6 +7224,7 @@ with_value(ipptool_test_t  *data, // I - Test data
            valptr = nextptr;
 
             if ((op == '=' && attrvalue == intvalue) ||
+                (op == '!' && attrvalue != intvalue) ||
                 (op == '<' && attrvalue < intvalue) ||
                 (op == '>' && attrvalue > intvalue))
            {
@@ -7271,13 +7272,13 @@ with_value(ipptool_test_t  *data,       // I - Test data
           valptr = value;
 
          while (isspace(*valptr & 255) || isdigit(*valptr & 255) ||
-                *valptr == '-' || *valptr == ',' || *valptr == '<' ||
+                *valptr == '-' || *valptr == ',' || *valptr == '!' || *valptr == '<' ||
                 *valptr == '=' || *valptr == '>')
          {
            op = '=';
            while (*valptr && !isdigit(*valptr & 255) && *valptr != '-')
            {
-             if (*valptr == '<' || *valptr == '>' || *valptr == '=')
+             if (*valptr == '<' || *valptr == '>' || *valptr == '=' || *valptr == '!')
                op = *valptr;
              valptr ++;
            }
@@ -7290,7 +7291,8 @@ with_value(ipptool_test_t  *data, // I - Test data
              break;
            valptr = nextptr;
 
-            if ((op == '=' && (lower == intvalue || upper == intvalue)) ||
+            if ((op == '=' && lower <= intvalue && upper >= intvalue) ||
+               (op == '!' && (lower > intvalue || upper < intvalue)) ||
                (op == '<' && upper < intvalue) ||
                (op == '>' && upper > intvalue))
            {