forked from pool/pesign
34 lines
875 B
Diff
34 lines
875 B
Diff
|
From 8376d873bf72c06b5efaa9dad812eb783cda5d41 Mon Sep 17 00:00:00 2001
|
||
|
From: Peter Jones <pjones@redhat.com>
|
||
|
Date: Fri, 25 Jan 2013 10:34:55 -0500
|
||
|
Subject: [PATCH] Fix up "-E", which apparently broke during some refactoring.
|
||
|
|
||
|
Signed-off-by: Peter Jones <pjones@redhat.com>
|
||
|
---
|
||
|
src/actions.c | 9 +++++++++
|
||
|
1 file changed, 9 insertions(+)
|
||
|
|
||
|
diff --git a/src/actions.c b/src/actions.c
|
||
|
index 6c32819..5c5dd89 100644
|
||
|
--- a/src/actions.c
|
||
|
+++ b/src/actions.c
|
||
|
@@ -373,6 +373,15 @@ generate_sattr_blob(pesign_context *ctx)
|
||
|
{
|
||
|
int rc;
|
||
|
SECItem sa;
|
||
|
+ SpcContentInfo ci;
|
||
|
+
|
||
|
+ memset(&ci, '\0', sizeof (ci));
|
||
|
+ rc = generate_spc_content_info(ctx->cms_ctx, &ci);
|
||
|
+ if (rc < 0) {
|
||
|
+ fprintf(stderr, "Could not generate content info: %s\n",
|
||
|
+ PORT_ErrorToString(PORT_GetError()));
|
||
|
+ exit(1);
|
||
|
+ }
|
||
|
|
||
|
rc = generate_signed_attributes(ctx->cms_ctx, &sa);
|
||
|
if (rc < 0) {
|
||
|
--
|
||
|
1.7.10.4
|
||
|
|