Yes, the DER format is a stream of bytes that can be written to the network, stored on a file, etc.


The i2d_XXX functions convert the internal C structure to a DER buffer. The "trick" to using i2d is you first give a NULL pointer, that tells you how much memory you'll need to allocate; then you call it again with a valid buffer of the required size.

The d2i_XXX functions do the inverse. The "trick" to using them, is you pass a pointer to the pointer, because they advance the pointer to the next DER element.


-- Rich Salz, Chief Security Architect DataPower Technology http://www.datapower.com XS40 XML Security Gateway http://www.datapower.com/products/xs40.html XML Security Overview http://www.datapower.com/xmldev/xmlsecurity.html

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to