Lines Matching defs:out

40 int dump_certs_keys_p12(BIO *out, const PKCS12 *p12,
43 int dump_certs_pkeys_bags(BIO *out, const STACK_OF(PKCS12_SAFEBAG) *bags,
46 int dump_certs_pkeys_bag(BIO *out, const PKCS12_SAFEBAG *bags,
49 void print_attribute(BIO *out, const ASN1_TYPE *av);
50 int print_attribs(BIO *out, const STACK_OF(X509_ATTRIBUTE) *attrlst,
52 void hex_prin(BIO *out, unsigned char *buf, int len);
80 {"out", OPT_OUT, '>', "Output file"},
178 BIO *in = NULL, *out = NULL;
691 out = bio_open_owner(outfile, FORMAT_PKCS12, private);
692 if (out == NULL)
695 i2d_PKCS12_bio(out, p12);
715 out = bio_open_owner(outfile, FORMAT_PEM, private);
716 if (out == NULL)
817 if (!dump_certs_keys_p12(out, p12, cpass, -1, options, passout, enc)) {
827 BIO_free_all(out);
836 int dump_certs_keys_p12(BIO *out, const PKCS12 *p12, const char *pass,
870 if (!dump_certs_pkeys_bags(out, bags, pass, passlen,
885 int dump_certs_pkeys_bags(BIO *out, const STACK_OF(PKCS12_SAFEBAG) *bags,
891 if (!dump_certs_pkeys_bag(out,
899 int dump_certs_pkeys_bag(BIO *out, const PKCS12_SAFEBAG *bag,
918 print_attribs(out, attrs, "Bag Attributes");
922 print_attribs(out, PKCS8_pkey_get0_attrs(p8c), "Key Attributes");
923 ret = PEM_write_bio_PrivateKey(out, pkey, enc, NULL, 0, NULL, pempass);
939 print_attribs(out, attrs, "Bag Attributes");
946 print_attribs(out, PKCS8_pkey_get0_attrs(p8), "Key Attributes");
948 ret = PEM_write_bio_PrivateKey(out, pkey, enc, NULL, 0, NULL, pempass);
962 print_attribs(out, attrs, "Bag Attributes");
967 dump_cert_text(out, x509);
968 ret = PEM_write_bio_X509(out, x509);
975 print_attribs(out, attrs, "Bag Attributes");
979 print_attribute(out, PKCS12_SAFEBAG_get0_bag_obj(bag));
985 print_attribs(out, attrs, "Bag Attributes");
986 return dump_certs_pkeys_bags(out, PKCS12_SAFEBAG_get0_safes(bag),
1136 void print_attribute(BIO *out, const ASN1_TYPE *av)
1144 BIO_printf(out, "%s\n", value);
1149 BIO_printf(out, "%.*s\n", av->value.utf8string->length,
1154 hex_prin(out, av->value.octet_string->data,
1156 BIO_printf(out, "\n");
1160 hex_prin(out, av->value.bit_string->data,
1162 BIO_printf(out, "\n");
1166 BIO_printf(out, "<Unsupported tag %d>\n", av->type);
1173 int print_attribs(BIO *out, const STACK_OF(X509_ATTRIBUTE) *attrlst,
1180 BIO_printf(out, "%s: <No Attributes>\n", name);
1184 BIO_printf(out, "%s: <Empty Attributes>\n", name);
1187 BIO_printf(out, "%s\n", name);
1193 BIO_printf(out, " ");
1195 i2a_ASN1_OBJECT(out, attr_obj);
1196 BIO_printf(out, ": ");
1198 BIO_printf(out, "%s: ", OBJ_nid2ln(attr_nid));
1205 print_attribute(out, av);
1208 BIO_printf(out, "<No Values>\n");
1214 void hex_prin(BIO *out, unsigned char *buf, int len)
1218 BIO_printf(out, "%02X ", buf[i]);