Eranga Udesh wrote:
Hi,

Thanks for the advice. Are you saying, I can use as below?

         dir2or3se ABSTRACT-SYNTAX ::= {
SESEapdus ANY IDENTIFIED BY {id-as-2or3se}
         }

Or

         dir2or3se ABSTRACT-SYNTAX ::= {
           SESEapdus {{ANY}, { ANY }}
           IDENTIFIED BY  {id-as-2or3se}
         }

Could there be any type conflicts if I do that?


Something along the lines of the former.

However, there's a chance your ABSTRACT-SYNTAX CLASS
won't be compiled this way. If this happens, you'll
have to model instance of this class as

        DirInstance ::= SEQUENCE {
                type-id OBJECT IDENTIFIER,
                value [0] ANY
        }



Thanks,
- Eranga


-----Original Message-----
From: Lev Walkin [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 4:49 PM
To: Eranga Udesh
Cc: 'Kenzo'; [email protected]
Subject: Re: [ASN1] ASN.1 Remove Value Check Contraints

Eranga Udesh wrote:
Hi,

Thanks for the reply. My target compilation is for BER. Therefore the
Constraints are not much relevant. If I can remove the constraints from
the
below definition will do the trick.

These are not your ordinary value constraints. Value set constraints
describe relationships between an identifier and a particular type to be
encoded.

You'll have to use the ANY type and decode it manually according to
the specified OBJECT IDENTIFIER.


Thanks,

- Eranga

_____ From: Kenzo [mailto:[EMAIL PROTECTED] Sent: Thursday, January 19, 2006 4:37 PM
To: Eranga Udesh
Subject: Re: [ASN1] ASN.1 Remove Value Check Contraints

Hi,
I'm not sure, but You can convert the code as you make. The problem still
for the:
{{dirAuthenticationTwoWay | dirAuthenticationThreeWay |
spkmThreeWay}

This is a constrain (maybe beacause I don't know what you have to do) that
you can lost. You have to link almost 2 parameters to create a table of
constraints. You have to look to the spec to see the right link between
these parameters.
Try because is only an idea.

Bye
Alessandro Lago

2006/1/19, Eranga Udesh <[EMAIL PROTECTED]>:

Hi,

I have aANS.1 spec as,
        dir2or3se ABSTRACT-SYNTAX ::= {
          SESEapdus
                {{dirAuthenticationTwoWay | dirAuthenticationThreeWay |
spkmThreeWay},
{NoInvocationId}} IDENTIFIED BY {id-as-2or3se}
        }

Unfortunately the ASN.1 compiler I use (Erlang) doesn't still support
SingleValue Set Contraints. How can I convert the above spec to remove
Value
Set constraint?
Could it be like,
        dir2or3se ABSTRACT-SYNTAX ::= {
          SESEapdus
          IDENTIFIED BY  {id-as-2or3se}
        }

Thanks,
- Eranga


_______________________________________________ ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1




------------------------------------------------------------------------

_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1




_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to