Re: Octetstrings

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Thu, 30 Jan 1997 19:21:16 +0100

Thorsten Geelhaar <tgeelhaa@funghi.Materna.DE> said:

Thorsten> I have the following important question .
Thorsten> Could i send unprintable character as an octetstring ?

Thorsten> Something like 0d:0a .

Thorsten> And how will the agent handle it. Get it a NullString or what ?

An ASN.1 OCTET STRING can contain all kind of bytes, even 0x00. Some
"types" derived from the ASN.1 OCTET STRING place some restrictions on
the allowed character sets. The most prominent example is the
DisplayString textual convention (RFC 1903), which limits the allowed
bytes to the NVT ASCII character set. Note that your example fits into
the NVT ASCII set as well. So the answer is: Yes, you can have
unprintable characters in an OCTET STRING. The agent has to deal with
it. The scotty agent will store a generic OCTET STRING in the
primitive OCTET STRING notation, 0d:0a.

I am not sure this answers your question. Please be more precise if
I missed the point,
Juergen

-- 
Juergen Schoenwaelder schoenw@cs.utwente.nl http://www.cs.utwente.nl/~schoenw
Computer Science Department, University of Twente,   (Fax: +31-53-489-3247)
P.O. Box 217, NL-7500 AE Enschede, The Netherlands.  (Tel. +31-53-489-3678)

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.