Hello,
I would like to know the BER Encoding of the component accept-types (Choice
Type) given below.
Is the tag [2] encoded or is it replaced by the EXPLICIT TAG [0].
MyHTTP DEFINITIONS AUTOMATIC TAGS ::=
BEGIN
GetRequest ::= SEQUENCE {
header-only BOOLEAN,
lock BOOLEAN,
accept-types AcceptTypes,
url Url,
...
}
AcceptTypes ::= CHOICE {
choice1 INTEGER,
choice2 INTEGER
}
Url ::= VisibleString (FROM ("a".."z"))
END
-- Same ASN.1 Specification without AUTOMATIC TAGS
MyHTTP DEFINITIONS ::=
BEGIN
GetRequest ::= SEQUENCE {
header-only [0] BOOLEAN,
lock [1] BOOLEAN,
accept-types [2] AcceptTypes,
url [3] Url,
...
}
AcceptTypes ::= [0] EXPLICIT CHOICE {
choice1 [0] IMPLICIT INTEGER,
choice2 [1] IMPLICIT INTEGER
}
Url ::= VisibleString (FROM ("a".."z"))
END
Thanks
krishna
-----------------------------------------------------------------------------------------------------------------------
Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and
is intended for use only by the individual or entity to which it is
addressed, and may contain information that is privileged, confidential or
exempt from disclosure under applicable law. If you are not the intended
recipient or it appears that this mail has been forwarded to you without
proper authority, you are notified that any use or dissemination of this
information in any manner is strictly prohibited. In such cases, please
notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail
from your records.
------------------------------------------------------------------------------------------------------------------------