Home | History | Annotate | Download | only in apps

Lines Matching refs:bag

765 int dump_certs_pkeys_bag (BIO *out, PKCS12_SAFEBAG *bag, char *pass,
772 switch (M_PKCS12_bag_type(bag))
775 if (options & INFO) BIO_printf (bio_err, "Key bag\n");
777 print_attribs (out, bag->attrib, "Bag Attributes");
778 p8 = bag->value.keybag;
788 alg_print (bio_err, bag->value.shkeybag->algor);
791 print_attribs (out, bag->attrib, "Bag Attributes");
792 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen)))
805 if (options & INFO) BIO_printf (bio_err, "Certificate bag\n");
807 if (PKCS12_get_attr(bag, NID_localKeyID)) {
810 print_attribs (out, bag->attrib, "Bag Attributes");
811 if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate )
813 if (!(x509 = PKCS12_certbag2x509(bag))) return 0;
820 if (options & INFO) BIO_printf (bio_err, "Safe Contents bag\n");
821 print_attribs (out, bag->attrib, "Bag Attributes");
822 return dump_certs_pkeys_bags (out, bag->value.safes, pass,
826 BIO_printf (bio_err, "Warning unsupported bag type: ");
827 i2a_ASN1_OBJECT (bio_err, bag->type);
908 /* Generalised attribute print: handle PKCS#8 and bag attributes */