Displaying 3 results from an estimated 3 matches for "4dc9dc0".
2015 Jul 28
0
[PATCH 03/10] builder: add SHA256 support in Checksums
...SHA256 c -> c
| SHA512 c -> c
let verify_checksum csum filename =
let prog, csum_ref =
match csum with
+ | SHA256 c -> "sha256sum", c
| SHA512 c -> "sha512sum", c
in
diff --git a/builder/checksums.mli b/builder/checksums.mli
index 6833879..4dc9dc0 100644
--- a/builder/checksums.mli
+++ b/builder/checksums.mli
@@ -17,6 +17,7 @@
*)
type csum_t =
+| SHA256 of string
| SHA512 of string
val verify_checksum : csum_t -> string -> unit
--
2.1.0
2015 Jul 28
0
[PATCH 04/10] builder: internally use a list of checksums for indexes
...\n - Check no one has tampered with the website or your network!")
(string_of_csum_t csum) csum_actual csum_ref
+
+let verify_checksums checksums filename =
+ List.iter (fun c -> verify_checksum c filename) checksums
diff --git a/builder/checksums.mli b/builder/checksums.mli
index 4dc9dc0..ef26634 100644
--- a/builder/checksums.mli
+++ b/builder/checksums.mli
@@ -23,6 +23,9 @@ type csum_t =
val verify_checksum : csum_t -> string -> unit
(** Verify the checksum of the file. *)
+val verify_checksums : csum_t list -> string -> unit
+(** Verify all the checksums of the f...
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