Brian Korver wrote:
>
> Dr Stephen Henson wrote:
> > Thanks, I'll look into it. BTW use of V_ASN1_APP_CHOOSE (when it is
> > fixed again) is strongly discouraged in 0.9.5 and later.
> >
>
> Steve,
>
> Is the deprecation of V_ASN1_APP_CHOOSE documented somewhere?
> Where can I learn what The Right Thing is to do in its place?
>
No it isn't documented yet. The right thing to do is to set the type to
MBSTRING_XXX according to whatever form the input is in. This then gets
transferred to a function that will decide which string type is
appropriate for the field type and convert the input to the correct
form.
V_ASN1_APP_CHOOSE didn't do any of this, it couldn't handle BMPStrings
or UTF8Strings and then the string type had to be manually kludged in
the application. The applications got this wrong and could do things
like illegally put IA5Strings in some fields. Check out the selfsign
demo for an example.
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]