30 lines
836 B
Diff
30 lines
836 B
Diff
|
|
From 5e6a92b67ddade14a54769b05cc717043bc56b78 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Daiki Ueno <dueno@redhat.com>
|
||
|
|
Date: Tue, 25 Dec 2018 08:32:19 +0100
|
||
|
|
Subject: [PATCH 27/36] trust: Continue parsing if the file cannot be read as
|
||
|
|
persist format
|
||
|
|
|
||
|
|
A corrupted file that contains "[p11-kit-object-v1]" can be a valid
|
||
|
|
PEM certs file. Continue with the next format if it cannot be read as
|
||
|
|
a persistent format.
|
||
|
|
---
|
||
|
|
trust/parser.c | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/trust/parser.c b/trust/parser.c
|
||
|
|
index e912c3a..e84e47c 100644
|
||
|
|
--- a/trust/parser.c
|
||
|
|
+++ b/trust/parser.c
|
||
|
|
@@ -639,7 +639,7 @@ p11_parser_format_persist (p11_parser *parser,
|
||
|
|
}
|
||
|
|
|
||
|
|
p11_array_free (objects);
|
||
|
|
- return ret ? P11_PARSE_SUCCESS : P11_PARSE_FAILURE;
|
||
|
|
+ return ret ? P11_PARSE_SUCCESS : P11_PARSE_UNRECOGNIZED;
|
||
|
|
}
|
||
|
|
|
||
|
|
p11_parser *
|
||
|
|
--
|
||
|
|
2.19.1
|
||
|
|
|