🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.protocols.iso
Article #778

Declaring bounded arrays of bytes

#778
From: Douglas C. Schmidt
Date: Fri, 05 Oct 1990 21:19
25 lines
1194 bytes
Hi,

	I've got a quick ASN.1 question that I hope someone can answer for me.
I'm trying to define a bounded array of OCTETs using ASN.1 syntax and I wonder
if the following is the ``correct'' way to accomplish this:

----------------------------------------
Foo DEFINITIONS ::=
BEGIN
	Version-number ::= SEQUENCE SIZE (5) OF OCTET
END
----------------------------------------

In other words, Version-number defines a type that represents a chunk of space
5 OCTETs in length.  Are there other ways of accomplishing the same thing?

	Thanks,
	
		Doug

-- 
____*_  Douglas C. Schmidt          schmidt@indetech.com
\  / /  Independence Technologies   {sun,sharkey,pacbell}!indetech!schmidt
 \/ /   42705 Lawrence Place        FAX: 415 438-2034
  \/    Fremont, CA 94538           Voice: 415 438-2023
Technical Details
Message-ID: <1990Oct5.211901.12679@indetech.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!indetech!schmidt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!indetech!schmidt
From: schmidt@indetech.com (Douglas C. Schmidt)
Newsgroups: comp.protocols.iso
Subject: Declaring bounded arrays of bytes
Message-ID: <1990Oct5.211901.12679@indetech.com>
Date: 5 Oct 90 21:19:01 GMT
Reply-To: schmidt@indetech.COM (Douglas C. Schmidt)
Organization: Independence Technologies, Inc. Fremont, CA
Lines: 25