Home | History | Annotate | Download | only in utils

Lines Matching defs:out

170 	BIO *out;
174 out = BIO_new(BIO_s_mem());
175 if (!out)
178 X509_print_ex(out, cert, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
179 rlen = BIO_ctrl_pending(out);
182 int res = BIO_read(out, txt, rlen);
189 BIO_free(out);
564 static void i2r_HashAlgAndValue(HashAlgAndValue *hash, BIO *out, int indent)
569 BIO_printf(out, "%*shashAlg: ", indent, "");
570 i2a_ASN1_OBJECT(out, hash->hashAlg->algorithm);
571 BIO_printf(out, "\n");
573 BIO_printf(out, "%*shashValue: ", indent, "");
576 BIO_printf(out, "%s%02x", i > 0 ? ":" : "", data[i]);
577 BIO_printf(out, "\n");
580 static void i2r_LogotypeDetails(LogotypeDetails *details, BIO *out, int indent)
584 BIO_printf(out, "%*sLogotypeDetails\n", indent, "");
586 BIO_printf(out, "%*smediaType: ", indent, "");
587 ASN1_STRING_print(out, details->mediaType);
588 BIO_printf(out, "\n");
596 i2r_HashAlgAndValue(hash, out, indent);
604 BIO_printf(out, "%*slogotypeURI: ", indent, "");
605 ASN1_STRING_print(out, uri);
606 BIO_printf(out, "\n");
610 static void i2r_LogotypeImageInfo(LogotypeImageInfo *info, BIO *out, int indent)
614 BIO_printf(out, "%*sLogotypeImageInfo\n", indent, "");
617 BIO_printf(out, "%*stype: %ld\n", indent, "", val);
619 BIO_printf(out, "%*stype: default (1)\n", indent, "");
622 BIO_printf(out, "%*sxSize: %ld\n", indent, "", val);
624 BIO_printf(out, "%*sySize: %ld\n", indent, "", val);
626 BIO_printf(out, "%*sresolution\n", indent, "");
630 BIO_printf(out, "%*slanguage: ", indent, "");
631 ASN1_STRING_print(out, info->language);
632 BIO_printf(out, "\n");
636 static void i2r_LogotypeImage(LogotypeImage *image, BIO *out, int indent)
638 BIO_printf(out, "%*sLogotypeImage\n", indent, "");
640 i2r_LogotypeDetails(image->imageDetails, out, indent + 4);
643 i2r_LogotypeImageInfo(image->imageInfo, out, indent + 4);
647 static void i2r_LogotypeData(LogotypeData *data, const char *title, BIO *out,
652 BIO_printf(out
657 i2r_LogotypeImage(image, out, indent + 4);
662 BIO_printf(out, "%*saudio: TODO\n", indent, "");
667 BIO *out, int indent)
671 BIO_printf(out, "%*s%s - LogotypeReference\n", indent, "", title);
678 BIO_printf(out, "%*sUnexpected LogotypeReference array size difference %d != %d\n",
688 i2r_HashAlgAndValue(hash, out, indent);
691 BIO_printf(out, "%*srefStructURI: ", indent, "");
692 ASN1_STRING_print(out, uri);
693 BIO_printf(out, "\n");
697 static void i2r_LogotypeInfo(LogotypeInfo *info, const char *title, BIO *out,
702 i2r_LogotypeData(info->d.direct, title, out, indent);
705 i2r_LogotypeReference(info->d.indirect, title, out, indent);
712 BIO *out;
716 out = BIO_new_fp(stdout, BIO_NOCLOSE);
717 if (out == NULL)
725 i2r_LogotypeInfo(info, "communityLogo", out, indent);
730 i2r_LogotypeInfo(logo->issuerLogo, "issuerLogo", out, indent );
734 i2r_LogotypeInfo(logo->subjectLogo, "subjectLogo", out, indent);
738 BIO_printf(out, "%*sotherLogos - TODO\n", indent, "");
741 BIO_free(out);
862 BIO *out;
863 out = BIO_new_fp(stdout, BIO_NOCLOSE);
864 X509_print_ex(out, cert, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
865 BIO_free(out);
878 BIO *in, *out;
898 out = BIO_new_fp(stdout, BIO_NOCLOSE);
899 if (out) {
900 X509_print_ex(out, cert, XN_FLAG_COMPAT,
902 BIO_free(out);
992 BIO *out;
997 out = BIO_new(BIO_s_mem());
998 if (!out)
1001 OCSP_RESPONSE_print(out, rsp, 0);
1002 rlen = BIO_ctrl_pending(out);
1005 BIO_free(out);
1009 res = BIO_read(out, txt, rlen);
1015 BIO_free(out);