Lines Matching refs:bag
739 int dump_certs_pkeys_bag (BIO *out, PKCS12_SAFEBAG *bag, char *pass,
746 switch (M_PKCS12_bag_type(bag))
749 if (options & INFO) BIO_printf (bio_err, "Key bag\n");
751 print_attribs (out, bag->attrib, "Bag Attributes");
752 p8 = bag->value.keybag;
762 alg_print (bio_err, bag->value.shkeybag->algor);
765 print_attribs (out, bag->attrib, "Bag Attributes");
766 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen)))
779 if (options & INFO) BIO_printf (bio_err, "Certificate bag\n");
781 if (PKCS12_get_attr(bag, NID_localKeyID)) {
784 print_attribs (out, bag->attrib, "Bag Attributes");
785 if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate )
787 if (!(x509 = PKCS12_certbag2x509(bag))) return 0;
794 if (options & INFO) BIO_printf (bio_err, "Safe Contents bag\n");
795 print_attribs (out, bag->attrib, "Bag Attributes");
796 return dump_certs_pkeys_bags (out, bag->value.safes, pass,
800 BIO_printf (bio_err, "Warning unsupported bag type: ");
801 i2a_ASN1_OBJECT (bio_err, bag->type);
882 /* Generalised attribute print: handle PKCS#8 and bag attributes */