emboss/krypt-core-jruby — Issue #10: UTCTime/GeneralizedTime spec failure for decoding seconds precision as Time#usec
Author: nahi
Created: 2012-01-25 04:29:53+00:00
State: open
Labels: bug, spec/test

It's also a spec issue. Do we drop usec support?

15) Krypt::ASN1::GeneralizedTime decoding value with fraction value
Failure/Error: its(:value) { subject.usec.should == 12345 } # TODO: ossl does not support decoding usec
Krypt::ASN1::ASN1Error:
Error while decoding time value: Invalid format: "20120124000000.012345Z" is malformed at ".012345Z"
# /home/nahi/git/krypt/spec/krypt-core/asn1/asn1_generalized_time_spec.rb:208:in `(root)'

16) Krypt::ASN1::UTCTime decoding value with fraction value
Failure/Error: its(:value) { subject.usec.should == 100 } # TODO: ossl does not support decoding usec
Krypt::ASN1::ASN1Error:
Error while decoding time value: Invalid format: "120123150000.0001Z" is malformed at ".0001Z"
# /home/nahi/git/krypt/spec/krypt-core/asn1/asn1_utc_time_spec.rb:208:in `(root)'