Lines Matching refs:out

182 	BIO *out;  in debug_dump_cert()  local
186 out = BIO_new(BIO_s_mem()); in debug_dump_cert()
187 if (!out) in debug_dump_cert()
190 X509_print_ex(out, cert, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in debug_dump_cert()
191 rlen = BIO_ctrl_pending(out); in debug_dump_cert()
194 int res = BIO_read(out, txt, rlen); in debug_dump_cert()
201 BIO_free(out); in debug_dump_cert()
584 static void i2r_HashAlgAndValue(HashAlgAndValue *hash, BIO *out, int indent) in i2r_HashAlgAndValue() argument
589 BIO_printf(out, "%*shashAlg: ", indent, ""); in i2r_HashAlgAndValue()
590 i2a_ASN1_OBJECT(out, hash->hashAlg->algorithm); in i2r_HashAlgAndValue()
591 BIO_printf(out, "\n"); in i2r_HashAlgAndValue()
593 BIO_printf(out, "%*shashValue: ", indent, ""); in i2r_HashAlgAndValue()
596 BIO_printf(out, "%s%02x", i > 0 ? ":" : "", data[i]); in i2r_HashAlgAndValue()
597 BIO_printf(out, "\n"); in i2r_HashAlgAndValue()
600 static void i2r_LogotypeDetails(LogotypeDetails *details, BIO *out, int indent) in i2r_LogotypeDetails() argument
604 BIO_printf(out, "%*sLogotypeDetails\n", indent, ""); in i2r_LogotypeDetails()
606 BIO_printf(out, "%*smediaType: ", indent, ""); in i2r_LogotypeDetails()
607 ASN1_STRING_print(out, details->mediaType); in i2r_LogotypeDetails()
608 BIO_printf(out, "\n"); in i2r_LogotypeDetails()
616 i2r_HashAlgAndValue(hash, out, indent); in i2r_LogotypeDetails()
624 BIO_printf(out, "%*slogotypeURI: ", indent, ""); in i2r_LogotypeDetails()
625 ASN1_STRING_print(out, uri); in i2r_LogotypeDetails()
626 BIO_printf(out, "\n"); in i2r_LogotypeDetails()
630 static void i2r_LogotypeImageInfo(LogotypeImageInfo *info, BIO *out, int indent) in i2r_LogotypeImageInfo() argument
634 BIO_printf(out, "%*sLogotypeImageInfo\n", indent, ""); in i2r_LogotypeImageInfo()
637 BIO_printf(out, "%*stype: %ld\n", indent, "", val); in i2r_LogotypeImageInfo()
639 BIO_printf(out, "%*stype: default (1)\n", indent, ""); in i2r_LogotypeImageInfo()
642 BIO_printf(out, "%*sfileSize: %ld\n", indent, "", val); in i2r_LogotypeImageInfo()
644 BIO_printf(out, "%*sxSize: %ld\n", indent, "", val); in i2r_LogotypeImageInfo()
646 BIO_printf(out, "%*sySize: %ld\n", indent, "", val); in i2r_LogotypeImageInfo()
648 BIO_printf(out, "%*sresolution [%d]\n", indent, "", in i2r_LogotypeImageInfo()
653 BIO_printf(out, "%*snumBits: %ld\n", indent, "", val); in i2r_LogotypeImageInfo()
657 BIO_printf(out, "%*stableSize: %ld\n", indent, "", val); in i2r_LogotypeImageInfo()
662 BIO_printf(out, "%*slanguage: ", indent, ""); in i2r_LogotypeImageInfo()
663 ASN1_STRING_print(out, info->language); in i2r_LogotypeImageInfo()
664 BIO_printf(out, "\n"); in i2r_LogotypeImageInfo()
668 static void i2r_LogotypeImage(LogotypeImage *image, BIO *out, int indent) in i2r_LogotypeImage() argument
670 BIO_printf(out, "%*sLogotypeImage\n", indent, ""); in i2r_LogotypeImage()
672 i2r_LogotypeDetails(image->imageDetails, out, indent + 4); in i2r_LogotypeImage()
675 i2r_LogotypeImageInfo(image->imageInfo, out, indent + 4); in i2r_LogotypeImage()
679 static void i2r_LogotypeData(LogotypeData *data, const char *title, BIO *out, in i2r_LogotypeData() argument
684 BIO_printf(out, "%*s%s - LogotypeData\n", indent, "", title); in i2r_LogotypeData()
689 i2r_LogotypeImage(image, out, indent + 4); in i2r_LogotypeData()
694 BIO_printf(out, "%*saudio: TODO\n", indent, ""); in i2r_LogotypeData()
699 BIO *out, int indent) in i2r_LogotypeReference() argument
703 BIO_printf(out, "%*s%s - LogotypeReference\n", indent, "", title); in i2r_LogotypeReference()
710 BIO_printf(out, "%*sUnexpected LogotypeReference array size difference %d != %d\n", in i2r_LogotypeReference()
720 i2r_HashAlgAndValue(hash, out, indent); in i2r_LogotypeReference()
723 BIO_printf(out, "%*srefStructURI: ", indent, ""); in i2r_LogotypeReference()
724 ASN1_STRING_print(out, uri); in i2r_LogotypeReference()
725 BIO_printf(out, "\n"); in i2r_LogotypeReference()
729 static void i2r_LogotypeInfo(LogotypeInfo *info, const char *title, BIO *out, in i2r_LogotypeInfo() argument
734 i2r_LogotypeData(info->d.direct, title, out, indent); in i2r_LogotypeInfo()
737 i2r_LogotypeReference(info->d.indirect, title, out, indent); in i2r_LogotypeInfo()
744 BIO *out; in debug_print_logotypeext() local
748 out = BIO_new_fp(stdout, BIO_NOCLOSE); in debug_print_logotypeext()
749 if (out == NULL) in debug_print_logotypeext()
757 i2r_LogotypeInfo(info, "communityLogo", out, indent); in debug_print_logotypeext()
762 i2r_LogotypeInfo(logo->issuerLogo, "issuerLogo", out, indent ); in debug_print_logotypeext()
766 i2r_LogotypeInfo(logo->subjectLogo, "subjectLogo", out, indent); in debug_print_logotypeext()
770 BIO_printf(out, "%*sotherLogos - TODO\n", indent, ""); in debug_print_logotypeext()
773 BIO_free(out); in debug_print_logotypeext()
897 BIO *out; in validate_server_cert() local
898 out = BIO_new_fp(stdout, BIO_NOCLOSE); in validate_server_cert()
899 X509_print_ex(out, cert, XN_FLAG_COMPAT, X509_FLAG_COMPAT); in validate_server_cert()
900 BIO_free(out); in validate_server_cert()
913 BIO *in, *out; in http_parse_x509_certificate() local
933 out = BIO_new_fp(stdout, BIO_NOCLOSE); in http_parse_x509_certificate()
934 if (out) { in http_parse_x509_certificate()
935 X509_print_ex(out, cert, XN_FLAG_COMPAT, in http_parse_x509_certificate()
937 BIO_free(out); in http_parse_x509_certificate()
1048 BIO *out; in ocsp_debug_print_resp() local
1053 out = BIO_new(BIO_s_mem()); in ocsp_debug_print_resp()
1054 if (!out) in ocsp_debug_print_resp()
1057 OCSP_RESPONSE_print(out, rsp, 0); in ocsp_debug_print_resp()
1058 rlen = BIO_ctrl_pending(out); in ocsp_debug_print_resp()
1061 BIO_free(out); in ocsp_debug_print_resp()
1065 res = BIO_read(out, txt, rlen); in ocsp_debug_print_resp()
1071 BIO_free(out); in ocsp_debug_print_resp()