Lines Matching defs:out
173 BIO *out;
177 out = BIO_new(BIO_s_mem());
178 if (!out)
181 X509_print_ex(out, cert, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
182 rlen = BIO_ctrl_pending(out);
185 int res = BIO_read(out, txt, rlen);
192 BIO_free(out);
590 static void i2r_HashAlgAndValue(HashAlgAndValue *hash, BIO *out, int indent)
595 BIO_printf(out, "%*shashAlg: ", indent, "");
596 i2a_ASN1_OBJECT(out, hash->hashAlg->algorithm);
597 BIO_printf(out, "\n");
599 BIO_printf(out, "%*shashValue: ", indent, "");
602 BIO_printf(out, "%s%02x", i > 0 ? ":" : "", data[i]);
603 BIO_printf(out, "\n");
606 static void i2r_LogotypeDetails(LogotypeDetails *details, BIO *out, int indent)
610 BIO_printf(out, "%*sLogotypeDetails\n", indent, "");
612 BIO_printf(out, "%*smediaType: ", indent, "");
613 ASN1_STRING_print(out, details->mediaType);
614 BIO_printf(out, "\n");
622 i2r_HashAlgAndValue(hash, out, indent);
630 BIO_printf(out, "%*slogotypeURI: ", indent, "");
631 ASN1_STRING_print(out, uri);
632 BIO_printf(out, "\n");
636 static void i2r_LogotypeImageInfo(LogotypeImageInfo *info, BIO *out, int indent)
640 BIO_printf(out, "%*sLogotypeImageInfo\n", indent, "");
643 BIO_printf(out, "%*stype: %ld\n", indent, "", val);
645 BIO_printf(out, "%*stype: default (1)\n", indent, "");
648 BIO_printf(out, "%*sfileSize: %ld\n", indent, "", val);
650 BIO_printf(out, "%*sxSize: %ld\n", indent, "", val);
652 BIO_printf(out, "%*sySize: %ld\n", indent, "", val);
654 BIO_printf(out, "%*sresolution [%d]\n", indent, "",
659 BIO_printf(out, "%*snumBits: %ld\n", indent, "", val);
663 BIO_printf(out, "%*stableSize: %ld\n", indent, "", val);
668 BIO_printf(out, "%*slanguage: ", indent, "");
669 ASN1_STRING_print(out, info->language);
670 BIO_printf(out, "\n");
674 static void i2r_LogotypeImage(LogotypeImage *image, BIO *out, int indent)
676 BIO_printf(out, "%*sLogotypeImage\n", indent, "");
678 i2r_LogotypeDetails(image->imageDetails, out, indent + 4);
681 i2r_LogotypeImageInfo(image->imageInfo, out, indent + 4);
685 static void i2r_LogotypeData(LogotypeData *data, const char *title, BIO *out,
690 BIO_printf(out, "%*s%s - LogotypeData\n", indent, "", title);
695 i2r_LogotypeImage(image, out, indent + 4);
700 BIO_printf(out, "%*saudio: TODO\n", indent, "");
705 BIO *out, int indent)
709 BIO_printf(out, "%*s%s - LogotypeReference\n", indent, "", title);
716 BIO_printf(out, "%*sUnexpected LogotypeReference array size difference %d != %d\n",
726 i2r_HashAlgAndValue(hash, out, indent);
729 BIO_printf(out, "%*srefStructURI: ", indent, "");
730 ASN1_STRING_print(out, uri);
731 BIO_printf(out, "\n");
735 static void i2r_LogotypeInfo(LogotypeInfo *info, const char *title, BIO *out,
740 i2r_LogotypeData(info->d.direct, title, out, indent);
743 i2r_LogotypeReference(info->d.indirect, title, out, indent);
750 BIO *out;
754 out = BIO_new_fp(stdout, BIO_NOCLOSE);
755 if (out == NULL)
763 i2r_LogotypeInfo(info, "communityLogo", out, indent);
768 i2r_LogotypeInfo(logo->issuerLogo, "issuerLogo", out, indent );
772 i2r_LogotypeInfo(logo->subjectLogo, "subjectLogo", out, indent);
776 BIO_printf(out, "%*sotherLogos - TODO\n", indent, "");
779 BIO_free(out);
904 BIO *out;
905 out = BIO_new_fp(stdout, BIO_NOCLOSE);
906 X509_print_ex(out, cert, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
907 BIO_free(out);
920 BIO *in, *out;
940 out = BIO_new_fp(stdout, BIO_NOCLOSE);
941 if (out) {
942 X509_print_ex(out, cert, XN_FLAG_COMPAT,
944 BIO_free(out);
1055 BIO *out;
1060 out = BIO_new(BIO_s_mem());
1061 if (!out)
1064 OCSP_RESPONSE_print(out, rsp, 0);
1065 rlen = BIO_ctrl_pending(out);
1068 BIO_free(out);
1072 res = BIO_read(out, txt, rlen);
1078 BIO_free(out);