aboutsummaryrefslogtreecommitdiff
path: root/rcynic
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-06-22 20:46:13 +0000
committerRob Austein <sra@hactrn.net>2008-06-22 20:46:13 +0000
commit87bfc60e36435e9c8d465e0a7f4d5f5f530ef980 (patch)
tree4dcdf1663b0b1f79df245ce0ea96e1ad36058d40 /rcynic
parent606688d5749f725f2cf4882303698a61fcbb75e0 (diff)
Holy hand grenades, Batman, manifest hash checking actually works!
Not yet handling manifest entries other than certificates and the CRL that covers the EE certificate that covers the manifest. svn path=/rcynic/rcynic.c; revision=1923
Diffstat (limited to 'rcynic')
-rw-r--r--rcynic/rcynic.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rcynic/rcynic.c b/rcynic/rcynic.c
index 88d08f0e..06b902c0 100644
--- a/rcynic/rcynic.c
+++ b/rcynic/rcynic.c
@@ -1998,16 +1998,18 @@ static void walk_cert(rcynic_ctx_t *rc,
} else {
+#warning Still need to handle non-certificate manifest entries
+
logmsg(rc, log_debug, "Walking unauthenticated store");
while ((fah = next_uri(rc, parent->sia, rc->unauthenticated, uri, sizeof(uri), manifest, &iterator)) != NULL)
if (has_suffix(uri, ".cer"))
- walk_cert_1(rc, uri, certs, parent, &child, rc->unauthenticated, 0, NULL, 0); /* fah->hash->data, fah->hash->length */
+ walk_cert_1(rc, uri, certs, parent, &child, rc->unauthenticated, 0, fah->hash->data, fah->hash->length);
logmsg(rc, log_debug, "Done walking unauthenticated store");
logmsg(rc, log_debug, "Walking old authenticated store");
while ((fah = next_uri(rc, parent->sia, rc->old_authenticated, uri, sizeof(uri), manifest, &iterator)) != NULL)
if (has_suffix(uri, ".cer"))
- walk_cert_1(rc, uri, certs, parent, &child, rc->old_authenticated, 1, NULL, 0); /* fah->hash->data, fah->hash->length */
+ walk_cert_1(rc, uri, certs, parent, &child, rc->old_authenticated, 1, fah->hash->data, fah->hash->length);
logmsg(rc, log_debug, "Done walking old authenticated store");
Manifest_free(manifest);