> If you mean an OID with just the value '1' that's illegal.
This is what I mean. So I just won't support it.
Thanks
Max
Dr. Stephen Henson wrote:
On Sat, Apr 29, 2006, Weijun Max Wang wrote:
Hi Guys
I'm doing some developments on ASN.1 ObjectIdentifier. A little question:
Since the DER encoding of 1 and 1.0 are the same, shall I regard them as
same? Also, when I decode a byte sequence, shall I decode it into 1 or 1.0?
If you mean an OID with just the value '1' that's illegal.
If you mean an OID ending in 1.0 or just 1 with the same prefix then they do
*NOT* have the same encoding. You can create these thing using the OpenSSL
mini-ASN1 compiler in 0.9.8:
openssl asn1parse -genstr OID:1.2.3.1.0
Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager [EMAIL PROTECTED]