Home | History | Annotate | Download | only in apps

Lines Matching refs:bag

753 int dump_certs_pkeys_bag (BIO *out, PKCS12_SAFEBAG *bag, char *pass,
760 switch (M_PKCS12_bag_type(bag))
763 if (options & INFO) BIO_printf (bio_err, "Key bag\n");
765 print_attribs (out, bag->attrib, "Bag Attributes");
766 p8 = bag->value.keybag;
776 alg_print (bio_err, bag->value.shkeybag->algor);
779 print_attribs (out, bag->attrib, "Bag Attributes");
780 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen)))
793 if (options & INFO) BIO_printf (bio_err, "Certificate bag\n");
795 if (PKCS12_get_attr(bag, NID_localKeyID)) {
798 print_attribs (out, bag->attrib, "Bag Attributes");
799 if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate )
801 if (!(x509 = PKCS12_certbag2x509(bag))) return 0;
808 if (options & INFO) BIO_printf (bio_err, "Safe Contents bag\n");
809 print_attribs (out, bag->attrib, "Bag Attributes");
810 return dump_certs_pkeys_bags (out, bag->value.safes, pass,
814 BIO_printf (bio_err, "Warning unsupported bag type: ");
815 i2a_ASN1_OBJECT (bio_err, bag->type);
896 /* Generalised attribute print: handle PKCS#8 and bag attributes */