diff -r f6c91b9da05b -r df9da0f6b358 MYBERParser.m --- a/MYBERParser.m Thu Jun 04 18:36:30 2009 -0700 +++ b/MYBERParser.m Fri Jun 05 08:57:18 2009 -0700 @@ -6,6 +6,9 @@ // Copyright 2009 Jens Alfke. All rights reserved. // +// Reference: +// "Layman's Guide To ASN.1/BER/DER" + #import "MYBERParser.h" #import "MYASN1Object.h" #import "MYOID.h" @@ -103,6 +106,7 @@ } static NSDate* parseDate (NSString *dateStr, unsigned tag) { + //FIX: There are more date formats possible; need to try them all. (see "Layman's Guide", 5.17) NSDateFormatter *fmt = (tag==23 ?MYBERUTCTimeFormatter() :MYBERGeneralizedTimeFormatter()); NSDate *date = [fmt dateFromString: dateStr]; if (!date)