1.1 --- a/MYBERParser.m Thu Jun 04 18:36:30 2009 -0700
1.2 +++ b/MYBERParser.m Fri Jun 05 08:57:18 2009 -0700
1.3 @@ -6,6 +6,9 @@
1.4 // Copyright 2009 Jens Alfke. All rights reserved.
1.5 //
1.6
1.7 +// Reference:
1.8 +// <http://www.columbia.edu/~ariel/ssleay/layman.html> "Layman's Guide To ASN.1/BER/DER"
1.9 +
1.10 #import "MYBERParser.h"
1.11 #import "MYASN1Object.h"
1.12 #import "MYOID.h"
1.13 @@ -103,6 +106,7 @@
1.14 }
1.15
1.16 static NSDate* parseDate (NSString *dateStr, unsigned tag) {
1.17 + //FIX: There are more date formats possible; need to try them all. (see "Layman's Guide", 5.17)
1.18 NSDateFormatter *fmt = (tag==23 ?MYBERUTCTimeFormatter() :MYBERGeneralizedTimeFormatter());
1.19 NSDate *date = [fmt dateFromString: dateStr];
1.20 if (!date)