Skip to content
Browse files

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

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