Skip to content
FAQ 44.8 KiB
Newer Older
Dr. Stephen Henson's avatar
Dr. Stephen Henson committed
again if necessary.

Alternatively it can indicate that no more data is available and that EOF has
been reached.

If a memory BIO is to behave in the same way as a file this second behaviour
is needed. This must be done by calling:

   BIO_set_mem_eof_return(bio, 0);

Dr. Stephen Henson's avatar
Dr. Stephen Henson committed
See the manual pages for more details.

Dr. Stephen Henson's avatar
Dr. Stephen Henson committed

Dr. Stephen Henson's avatar
Dr. Stephen Henson committed
* Where are the declarations and implementations of d2i_X509() etc?

Dr. Stephen Henson's avatar
Dr. Stephen Henson committed
These are defined and implemented by macros of the form:
Dr. Stephen Henson's avatar
Dr. Stephen Henson committed


 DECLARE_ASN1_FUNCTIONS(X509) and IMPLEMENT_ASN1_FUNCTIONS(X509)

The implementation passes an ASN1 "template" defining the structure into an
ASN1 interpreter using generalised functions such as ASN1_item_d2i().


===============================================================================