diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-18 16:00:55 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-18 16:00:55 +0100 |
commit | 6c574777f6ab5996a9ba3bea493e96e4ad53dc69 (patch) | |
tree | 8089079a8e47826e1e6fea81844ee17f48e20478 /trust/index.c | |
parent | a904e98b78b55e7a6213356225e45a04fdc457e1 (diff) |
trust: Better generation of nss objects and assertions for serial+issuer
In many cases certficates are distrusted by serial+issuer. Make sure
this works, and fix various cases where we weren't generating
compat NSS objects and compat trust assertions for these types
of input.
Diffstat (limited to 'trust/index.c')
-rw-r--r-- | trust/index.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trust/index.c b/trust/index.c index 786d840..17370bc 100644 --- a/trust/index.c +++ b/trust/index.c @@ -412,7 +412,8 @@ p11_index_replace (p11_index *index, CK_ATTRIBUTE *replace) { return_val_if_fail (index != NULL, CKR_GENERAL_ERROR); - return index_replacev (index, match, key, &replace, 1); + return index_replacev (index, match, key, &replace, + replace ? 1 : 0); } CK_RV |