Permalink
Browse files

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

  • Loading branch information...
mjrider committed Jan 8, 2012
1 parent d505a55 commit d97f23946876c4e48186868f507c67907ec47c8d
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/tools/pkcs15-init.c
View
@@ -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);

0 comments on commit d97f239

Please sign in to comment.