md: use 'store-or-update' store certificate mode

This commit is contained in:
Viktor Tarasov 2015-05-10 11:48:45 +02:00
parent 7784d24ee1
commit 72b5d8fe9a
1 changed files with 1 additions and 0 deletions

View File

@ -2124,6 +2124,7 @@ md_pkcs15_store_certificate(PCARD_DATA pCardData, char *file_name, unsigned char
memset(&args, 0, sizeof(args));
args.der_encoded.value = blob;
args.der_encoded.len = len;
args.update = 1;
/* use container's ID as ID of certificate to store */
idx = -1;