Jean-Marc Desperrier wrote:
> 
> I'm trying to define an ASN1 type that has an element which is a stack
> of UTF-8 string usins 0.9.4 and I have some problems.
> 
> I figured I had to define the type STACK_OF(ASN1_UTF8STRING) with
> DECLARE_STACK_OF(ASN1_UTF8STRING), but this bring problems.
> 
> I suggest you give up this message now if you're not a guru of C
> precompiler.
> 

As you've no doubt realised you can use a STACK_OF(ASN1_STRING) as a
work around since ASN1_STRING is a real structure. I'll look into a
better solution.

> 
> We also have :
> #define ASN1_UTF8STRING_free(a) ASN1_STRING_free((ASN1_STRING *)a)
> 
> But when I call :
>     sk_ASN1_UTF8STRING_pop_free(a->extensions,ASN1_UTF8STRING_free);
> 
> I don't get the result I want because ASN1_UTF8STRING_free is not
> replaced by ASN1_STRING_free as this is not a function call.
> 
> We should have :
> #define ASN1_UTF8STRING_free ASN1_STRING_free
> because anyway a is of type ASN1_STRING.
> 

This should be fixed in the latest snapshot. ASN1_UTF8STRING_free() is
now a real function instead of a macro.

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]

Reply via email to