Antonio Ruiz Martínez wrote:
> 
> Hello!
> 
> I want to do this code, but I want to do it with the openSSL 0.9.6
> because with the
> latest snapshot I can't do it. I can't get the static version of the
> library for windows.
> 
> typedef struct some_struct_st
>         {
>         ASN1_PRINTABLESTRING * a;
>         ASN1_PRINTABLESTRING * b;
>         } SOME_STRUCT;
> 
> ASN1_SEQUENCE(SOME_STRUCT) = {
>         ASN1_SIMPLE(SOME_STRUCT, a, ASN1_PRINTABLESTRING),
>         ASN1_SIMPLE(SOME_STRUCT, b, ASN1_PRINTABLESTRING)
> } ASN1_SEQUENCE_END(SOME_STRUCT);
> 
> IMPLEMENT_ASN1_FUNCTIONS(SOME_STRUCT)
> 

You can't do that because that uses the new ASN1 code which is only in
the development version of OpenSSL. Doing things with the old ASN1 code,
while possible is rather painful (you'd have to write four separate
functions to do that) and would be obsolete by the time OpenSSL 0.9.7
was released anyway.

No it isn't easy to add the new ASN1 to OpenSSL 0.9.6. There are large
numbers of changes. I know you didn't ask that: its just that that's
often asked in this connection :-)

Easiest solution is to fix the static build of the latest snapshot. As
an initial fix, have you tried the stuff in INSTALL.W32 which mentions
turning off the "bomb out on warnings" flag?

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
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to