gang cao wrote:
>
> in crypto/asn1 , many "unsigned char **pp",
> like in crypto/asn1/asn1_lib.c ,define
> void ASN1_put_object(unsigned char **pp, int constructed,
> int length, int tag,int xclass)
>
> why not just "unsigned char *pp" ?
>
After reading/writing an ASN1 structure you almost always want to
read/write another one after the first. As a result the pointer to the
DER encoding is incremented to point to the "next" structure if the
current one is read/written correctly.
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]