On Fri, Sep 20, 2002, Chris Brook wrote: > I have found the problem and fixed it in my code, so please ignore. > However, for general info, it seems that the i2d_ low-level functions modify > the data pointer passed in (it is an unsigned char **), so I could not see > the result. Copying the pointer to another and passing the address of that > in solves the problem. I had come across this with decoding so I guess it's > a global quirk in the code!
Its intended behaviour and was needed to make the old ASN1 code work. Strictly speaking it isn't needed with the new ASN1 code but it is retained for compatibility. This issue crops up frequently so it was added to the FAQ... Steve. -- Dr. Stephen Henson [EMAIL PROTECTED] OpenSSL Project http://www.openssl.org/~steve/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
