Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: change R509::Validity::CRL to return revocation reason as an … #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/r509/validity/crl/checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def check(issuer,serial)
R509::Validity::Status.new(
:status => R509::Validity::REVOKED,
:revocation_time => revocation_data[:time].to_i,
:revocation_reason => revocation_data[:reason]
:revocation_reason => revocation_data[:int_reason]
)
else
R509::Validity::Status.new(:status => R509::Validity::VALID)
Expand Down
2 changes: 1 addition & 1 deletion spec/checker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
status2 = checker.check('/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV CA-1',16849924485970054612761793550114076650)
status2.status.should == R509::Validity::REVOKED
status2.revocation_time.should == 1323439403
status2.revocation_reason.should == 'Unspecified'
status2.revocation_reason.should == 0
end
it "next_update is cached from the parsed CRLs" do
checker = R509::Validity::CRL::Checker.new([@path,@path2])
Expand Down