Setting usage flags for the public key when storing a private key

This commit is contained in:
Robbert Müller 2012-01-08 13:47:58 +01:00
parent d505a55483
commit d97f239468
1 changed files with 1 additions and 0 deletions

View File

@ -997,6 +997,7 @@ do_store_public_key(struct sc_profile *profile, EVP_PKEY *pkey)
if (opt_objectid)
sc_pkcs15_format_id(opt_objectid, &args.id);
args.label = (opt_pubkey_label != 0 ? opt_pubkey_label : opt_label);
args.x509_usage = opt_x509_usage;
if (pkey == NULL)
r = do_read_public_key(opt_infile, opt_format, &pkey);