Anonymous wrote:
>
>
> BTW, function PKCS12_decrypt_d2i in file p12_decr.c returns char *.
> The actual value returned is either a char * from d2i() or a STACK *
> returned from d2i_ASN1_SET() and cast to char *. Is that right?
> It seems strange to return such dissimilar structures.
Yes it is. The code decrypts a buffer and ASN1 parses the result either
a simple d2i or a SEQUENCE OF d2i. The actual structure returned can be
anything which with the SSLeay "standard" of the time was represented by
char *.
With the ANSI'fication now taking place it should really be void * (and
quite a few other things should be too).
Steve.
--
Dr Stephen N. Henson. http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED]
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]