Lines Matching refs:bag
829 int dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bag, char *pass,
836 switch (M_PKCS12_bag_type(bag)) {
839 BIO_printf(bio_err, "Key bag\n");
842 print_attribs(out, bag->attrib, "Bag Attributes");
843 p8 = bag->value.keybag;
854 alg_print(bio_err, bag->value.shkeybag->algor);
858 print_attribs(out, bag->attrib, "Bag Attributes");
859 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen)))
873 BIO_printf(bio_err, "Certificate bag\n");
876 if (PKCS12_get_attr(bag, NID_localKeyID)) {
881 print_attribs(out, bag->attrib, "Bag Attributes");
882 if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate)
884 if (!(x509 = PKCS12_certbag2x509(bag)))
893 BIO_printf(bio_err, "Safe Contents bag\n");
894 print_attribs(out, bag->attrib, "Bag Attributes");
895 return dump_certs_pkeys_bags(out, bag->value.safes, pass,
899 BIO_printf(bio_err, "Warning unsupported bag type: ");
900 i2a_ASN1_OBJECT(bio_err, bag->type);
975 /* Generalised attribute print: handle PKCS#8 and bag attributes */