On Wed, Feb 19, 2003, Nils Larsch wrote:

> 
> I guess the reason for this was to simplify the OpenSSL ASN1 macros/
> functions (you can call the corresponding de- encode functions in a 
> row, without taking care of the pointer).
> 

It was indeed for that purpose. When the old ASN1 code built encoders and
decoders by stringing together d2i and i2d functions it avoided having to
bloat the code even further by incrementing a pointer after every single call.

It doesn't matter as much now because encoders and decoders aren't written
like that with the new ASN1 code (though a couple of pathological cases remain)
but I suppose were stuck with that behaviour in case anything relies on it.

Steve.
--
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to