Home | History | Annotate | Download | only in apps

Lines Matching defs:out

49  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
83 int dump_certs_keys_p12(BIO *out, PKCS12 *p12, char *pass, int passlen, int options, char *pempass);
84 int dump_certs_pkeys_bags(BIO *out, STACK_OF(PKCS12_SAFEBAG) *bags, char *pass,
86 int dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bags, char *pass, int passlen, int options, char *pempass);
87 int print_attribs(BIO *out, STACK_OF(X509_ATTRIBUTE) *attrlst,const char *name);
88 void hex_prin(BIO *out, unsigned char *buf, int len);
100 BIO *in=NULL, *out = NULL;
240 } else if (!strcmp (*args, "-out")) {
296 BIO_printf (bio_err, "-out outfile output filename\n");
400 out = BIO_new_fp(stdout, BIO_NOCLOSE);
404 out = BIO_push(tmpbio, out);
407 } else out = BIO_new_file(outfile, "wb");
408 if (!out) {
617 i2d_PKCS12_bio(out, p12);
680 if (!dump_certs_keys_p12 (out, p12, cpass, -1, options, passout)) {
696 BIO_free_all(out);
704 int dump_certs_keys_p12 (BIO *out, PKCS12 *p12, char *pass,
729 if (!dump_certs_pkeys_bags (out, bags, pass, passlen,
746 int dump_certs_pkeys_bags (BIO *out, STACK_OF(PKCS12_SAFEBAG) *bags,
751 if (!dump_certs_pkeys_bag (out,
760 int dump_certs_pkeys_bag (BIO *out, PKCS12_SAFEBAG *bag, char *pass,
772 print_attribs (out, bag->attrib, "Bag Attributes");
775 print_attribs (out, p8->attributes, "Key Attributes");
776 PEM_write_bio_PrivateKey (out, pkey, enc, NULL, 0, NULL, pempass);
786 print_attribs (out, bag->attrib, "Bag Attributes");
793 print_attribs (out, p8->attributes, "Key Attributes");
795 PEM_write_bio_PrivateKey (out, pkey, enc, NULL, 0, NULL, pempass);
805 print_attribs (out, bag->attrib, "Bag Attributes");
809 dump_cert_text (out, x509);
810 PEM_write_bio_X509 (out, x509);
816 print_attribs (out, bag->attrib, "Bag Attributes");
817 return dump_certs_pkeys_bags (out, bag->value.safes, pass,
905 int print_attribs (BIO *out, STACK_OF(X509_ATTRIBUTE) *attrlst,const char *name)
912 BIO_printf(out, "%s: <No Attributes>\n", name);
916 BIO_printf(out, "%s: <Empty Attributes>\n", name);
919 BIO_printf(out, "%s\n", name);
923 BIO_printf(out, " ");
925 i2a_ASN1_OBJECT (out, attr->object);
926 BIO_printf(out, ": ");
927 } else BIO_printf(out, "%s: ", OBJ_nid2ln(attr_nid));
935 BIO_printf(out, "%s\n", value);
940 hex_prin(out, av->value.octet_string->data,
942 BIO_printf(out, "\n");
946 hex_prin(out, av->value.bit_string->data,
948 BIO_printf(out, "\n");
952 BIO_printf(out, "<Unsupported tag %d>\n", av->type);
955 } else BIO_printf(out, "<No Values>\n");
960 void hex_prin(BIO *out, unsigned char *buf, int len)
963 for (i = 0; i < len; i++) BIO_printf (out, "%02X ", buf[i]);