diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-01-31 14:07:51 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-01-31 14:54:43 +0100 |
commit | 57697eda68a3343c2e54e5f8f3f4ce65a99383f5 (patch) | |
tree | 45aa3d0377cbacf6e9ecb07dd296c841469734b3 /trust/test-token.c | |
parent | 14853b1d8466d4e3b5aa23ff14f2abacd4e7e8ef (diff) |
trust: Filter out duplicate extensions
The trust policy module keeps all the objects in the database, while
PKIX doesn't allow multiple extensions identified by the same OID can
be attached to a certificate. Add a check to C_FindObjects to exclude
any duplicates and only return the first matching object.
It would be better if the module rejects such duplicates when loading,
but it would make startup slower.
https://bugzilla.redhat.com/show_bug.cgi?id=1141241
Diffstat (limited to 'trust/test-token.c')
-rw-r--r-- | trust/test-token.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/test-token.c b/trust/test-token.c index 3e7d735..0206bc1 100644 --- a/trust/test-token.c +++ b/trust/test-token.c @@ -102,7 +102,7 @@ test_token_load (void *path) int count; count = p11_token_load (test.token); - assert_num_eq (6, count); + assert_num_eq (8, count); /* A certificate and trust object for each parsed object */ index = p11_token_index (test.token); |