Setting usage flags for the public key when storing a private key
This commit is contained in:
parent
d505a55483
commit
d97f239468
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue