<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
thanks for this - what about the ASN1_BIT_STRING? Is there such a predefined function?</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> openssl-users <openssl-users-bounces@openssl.org> im Auftrag von Dave Coombs <dcoombs@carillon.ca><br>
<b>Gesendet:</b> Dienstag, 16. Oktober 2018 15:17 Uhr<br>
<b>An:</b> openssl-users@openssl.org<br>
<b>Betreff:</b> Re: [openssl-users] BIO_printf with ASN1_BIT_STRING and ASN1_INTEGER?</font>
<div> </div>
</div>
<meta content="text/html; charset=iso-8859-1">
<div class="" style="word-wrap:break-word">
<div class="">Hi,</div>
<div class=""><br class="">
</div>
<div class="">You can use i2a_ASN1_INTEGER() to print an ASN1_INTEGER to a BIO.</div>
<div class=""><br class="">
</div>
<div class="">  -Dave</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Oct 16, 2018, at 05:37, Opa114 <<a href="mailto:Opa114@web.de" class="">Opa114@web.de</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
Hi there,</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<br class="">
</div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
i have to print out some data, which is an ASN1_BIT_STRING and an ASN1_INTEGER with BIO_printf. For GENERAL_NAME for example there a predefined functions i can use like this: <span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">GENERAL_NAME_print(bp,
 GENERAL_NAME_VAR) <= 0</span></div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br class="">
</span></div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">But for ASN1_INTGER and ASN1_BIT_STRING i haven't found any predefined function like ASN1_INTEGER_PRINT or something similiar i can use. So can someone tell me how i print out these
 two data types with BIO_printf in the correct and actual way?</span></div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt"><br class="">
</span></div>
<div class="" style="font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; font-family:Calibri,Helvetica,sans-serif; font-size:12pt">
<span class="" style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt">thanks a lot.</span></div>
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">--<span class="x_Apple-converted-space"> </span></span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">openssl-users
 mailing list</span><br class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">
<span class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px; float:none; display:inline!important">To
 unsubscribe:<span class="x_Apple-converted-space"> </span></span><a href="https://mta.openssl.org/mailman/listinfo/openssl-users" class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; orphans:auto; text-align:start; text-indent:0px; text-transform:none; white-space:normal; widows:auto; word-spacing:0px">https://mta.openssl.org/mailman/listinfo/openssl-users</a></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>