[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] PATCH: fix PrivateKeyUsagePeriod parsing
From: |
Casey Marshall |
Subject: |
[cp-patches] PATCH: fix PrivateKeyUsagePeriod parsing |
Date: |
Sun, 17 Apr 2005 19:51:51 -0700 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
Hi list;
Tom Fitzsimmons pointed out a flaw in the X.509 parsing code that
handles the 'privateKeyUsagePeriod' extension, which is encoded as a
pair of two optional dates, but aren't tagged as such in ASN.1. So the
existing code naively tries to cast the result as a Date, which fails
because the type of the value field can't be determined at that point.
Ok to commit?
2005-04-17 Casey Marshall <address@hidden>
* gnu/java/security/der/DERValue.java
(getValueAs): new method.
* gnu/java/security/x509/ext/PrivateKeyUsagePeriod.java
(<init>): read both dates with 'DERValue.getValueAs', with
'GENERALIZED_TIME' as the argument.
--
Casey Marshall || address@hidden
pkup.patch
Description: Text Data
- [cp-patches] PATCH: fix PrivateKeyUsagePeriod parsing,
Casey Marshall <=