Skip to content

Commit

Permalink
asn1: fix docs
Browse files Browse the repository at this point in the history
The value of 'value' attribute of OpenSSL::ASN1::{Integer,Enumerated}
should be an instance of OpenSSL::BN.

Reference: #176
  • Loading branch information
rhenium committed Dec 14, 2017
1 parent dc5bbbc commit c68ea3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/openssl/ossl_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -1718,12 +1718,12 @@ Init_ossl_asn1(void)
* == Primitive sub-classes and their mapping to Ruby classes
* * OpenSSL::ASN1::EndOfContent <=> +value+ is always +nil+
* * OpenSSL::ASN1::Boolean <=> +value+ is a +Boolean+
* * OpenSSL::ASN1::Integer <=> +value+ is a +Number+
* * OpenSSL::ASN1::Integer <=> +value+ is an OpenSSL::BN
* * OpenSSL::ASN1::BitString <=> +value+ is a +String+
* * OpenSSL::ASN1::OctetString <=> +value+ is a +String+
* * OpenSSL::ASN1::Null <=> +value+ is always +nil+
* * OpenSSL::ASN1::Object <=> +value+ is a +String+
* * OpenSSL::ASN1::Enumerated <=> +value+ is a +Number+
* * OpenSSL::ASN1::Enumerated <=> +value+ is an OpenSSL::BN
* * OpenSSL::ASN1::UTF8String <=> +value+ is a +String+
* * OpenSSL::ASN1::NumericString <=> +value+ is a +String+
* * OpenSSL::ASN1::PrintableString <=> +value+ is a +String+
Expand Down

0 comments on commit c68ea3b

Please sign in to comment.