BIO in memory usage....

J Decker d3ck0r at gmail.com
Sun Jun 16 12:22:36 UTC 2019


On Sun, Jun 16, 2019 at 3:17 AM Tobias Wolf <wolf.tobias at gmx.net> wrote:

> I`d like to understand how a memory bio can be reseted with the internal
> read counter back to zero for further reusage.
>
>
>
> e.g.
>
> I want to try to read first der and then pem
>
>
>
> d2i_X509 <https://www.openssl.org/docs/man1.1.1/man3/d2i_X509.html>
>
>
>
> and then:
>
>
>
> PEM_read_X509
> <https://www.openssl.org/docs/man1.1.1/man3/PEM_read_X509.html>
>
>
>
> Then the second call will fail because the bio has already read some
> bytes, when I call each function with a newly created bio it is working
> fine.
>
> I already tried with BIO_seek, BIO_tell (returns 0?!), BIO_reset.
>

After reset did you also refill it?

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20190616/a4f2730d/attachment.html>


More information about the openssl-users mailing list