My definition of usual string is an array of "char" in C language.

So, I can use the char array without any conversion?


在08-6-26,Dave Shield <[EMAIL PROTECTED]> 写道:
>
> 2008/6/26 杨伟 <[EMAIL PROTECTED]>:
> > I see ASN_OCTET_STR type of one variable.
> > Is it any different from the usual string?
>
> What do you mean by a "usual string"?
>
> The ANS.1 type "OCTET STRING" is
> the type used for representing any
> octet-based value - essentially anything
> other than a number or an OID.
>
> This includes both printable strings
> and binary string values.
>
>
> > How could I convert a usual text string to ASN_OCTET_STR?
>
> A text string is a perfectly valid example of an Octet String.
> No conversion is needed.
>
> Dave
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to