Revision: 4141
          http://vexi.svn.sourceforge.net/vexi/?rev=4141&view=rev
Author:   jeffbuhrt
Date:     2011-05-18 01:16:54 +0000 (Wed, 18 May 2011)

Log Message:
-----------
added support for SSL DER Tag value indicating an ASN.1 "UTF8String" value 
(0x0c)

Modified Paths:
--------------
    trunk/org.vexi-library.crypto/src/main/java/org/ibex/crypto/DER.java

Modified: trunk/org.vexi-library.crypto/src/main/java/org/ibex/crypto/DER.java
===================================================================
--- trunk/org.vexi-library.crypto/src/main/java/org/ibex/crypto/DER.java        
2011-05-17 01:15:56 UTC (rev 4140)
+++ trunk/org.vexi-library.crypto/src/main/java/org/ibex/crypto/DER.java        
2011-05-18 01:16:54 UTC (rev 4141)
@@ -148,6 +148,7 @@
         public Object readObject() throws IOException {
             int tag = readByte();        
             int length = readLength();
+//            System.out.println("tag:0x" + Integer.toHexString(tag) + "(" + 
tag + "), length:" + length);
             if(length < 0) throw new Exception("Indefinite length objects not 
supported");
             if(length > MAX_OBJECT_SIZE) throw new Exception("Object too 
large");
         
@@ -159,6 +160,7 @@
                 case 0x05: return Null.instance; // NULL
                 case 0x06: return buildObjectIdentifier(length); // Object 
Identifier
                 
+                case 0x0c: // UTF8String
                 case 0x13: // PrintableString
                     // It is incorrect to treat this as an IA5String but the 
T.61 standard is way too old and backwards
                     // to be worth supporting


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to