And perhaps I should clarify, the module I'm looking at has:
DEFINITIONS IMPLICIT TAGS ::= BEGIN
in the ASN.1 module for the protocol.
I can confirm that if I specify ASN1_EXP_OPT for the struct implementation,
then everything works, but with the module that I'm looking at having the above
header on the definitions, I don't think that will result in an interoperable
implementation.
Best Regards,
Patrick.
On 2013-03-12, at 4:43 PM, Patrick Patterson wrote:
> Hi Steve,
>
> Ok - but if I have an IETF ASN.1 like this:
>
> * Request ::= SEQUENCE {
> * name [1] GeneralName OPTIONAL,
> * text [2] UTF8String (SIZE (1..256))
> OPTIONAL }
>
> What would be the right way to code up the resulting struct and ASN1_SEQUENCE
> { }?? From my understanding, the IETF uses IMPLICIT tagging for everything.
>
> Thanks.
>
> Patrick.
>
> On 2013-03-12, at 4:28 PM, Dr. Stephen Henson wrote:
>
>> On Tue, Mar 12, 2013, Patrick Patterson wrote:
>>
>>> Hi OpenSSL Developers,
>>>
>>> I think we've just discovered a bug, either in our understanding of how to
>>> properly code various structures, or in the OpenSSL encoding i2d and d2i
>>> routines for constructs that contain implicitly tagged, but optional
>>> General names.
>>>
>>
>> The GeneralName structure is a CHOICE type so you have to explicitly tag it
>> or
>> you change the tag which tells the encoder which type to use.
>>
>> Steve.
>> --
>> Dr Stephen N. Henson. OpenSSL project core developer.
>> Commercial tech support now available see: http://www.openssl.org
>> ______________________________________________________________________
>> OpenSSL Project http://www.openssl.org
>> Development Mailing List [email protected]
>> Automated List Manager [email protected]
>
> ---
> Patrick Patterson
> President and Chief PKI Architect
> Carillon Information Security Inc.
> http://www.carillon.ca
>
> tel: +1 514 485 0789
> mobile: +1 514 994 8699
> fax: +1 450 424 9559
>
>
>
>
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List [email protected]
> Automated List Manager [email protected]
---
Patrick Patterson
President and Chief PKI Architect
Carillon Information Security Inc.
http://www.carillon.ca
tel: +1 514 485 0789
mobile: +1 514 994 8699
fax: +1 450 424 9559
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [email protected]