Displaying 3 results from an estimated 3 matches for "getxdigit".
2009 Aug 03
2
[PATCH] New commands to list devices by UUID and label
...gt;dname);
+ free (h1);
+}
+
+/* Note that d->d_name can contain \x<X><X> sequences which
+ * we must replace with a character (eg. "\x2f" -> "/")
+ *
+ * How escaping really works in udev is very unclear, so this
+ * code is at best a guess.
+ */
+static int
+getxdigit (char c)
+{
+ switch (c) {
+ case '0'...'9': return c - '0';
+ case 'a'...'f': return c - 'a' + 10;
+ case 'A'...'F': return c - 'A' + 10;
+ default: abort ();
+ }
+}
+
+static char *
+unescape (const char *dname)
+{
+ i...
2015 Jul 28
0
[PATCH 08/10] builder: expose Sigchecker.verifying_signatures
...oad signed content or not.
---
builder/sigchecker.ml | 3 +++
builder/sigchecker.mli | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/builder/sigchecker.ml b/builder/sigchecker.ml
index 06c60ae..86e60ac 100644
--- a/builder/sigchecker.ml
+++ b/builder/sigchecker.ml
@@ -163,6 +163,9 @@ and getxdigit = function
| 'A'..'F' as c -> Some (Char.code c - Char.code 'A')
| _ -> None
+let verifying_signatures t =
+ t.check_signature
+
let rec verify t filename =
if t.check_signature then (
let args = quote filename in
diff --git a/builder/sigchecker.mli b...
2015 Jul 28
19
[PATCH 00/10] RFC: builder: first support for Simple Streams metadata
Hi,
this series adds a basic support for Simple Streams v1.0 metadata
files. This makes it possible to create a repository .conf files with
[cirros]
uri=http://download.cirros-cloud.net
format=simplestreams
to read the latest version of each CirrOS image.
TODO items:
- a bit more testing: listing and creating images works, so the
current metadata is correct
- handle revisions, so newer