Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
OpenSSL
/
ASN1
/
Primitive
/
//opt/alt/ruby27/share/ri/system/OpenSSL/ASN1/Primitive/cdesc-Primitive.ri
U:RDoc::NormalClass[iI"Primitive:ETI"OpenSSL::ASN1::Primitive;TI"OpenSSL::ASN1::ASN1Data;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[ I"NThe parent class for all primitive encodings. Attributes are the same as ;TI"3for ASN1Data, with the addition of _tagging_. ;TI"MPrimitive values can never be encoded with indefinite length form, thus ;TI"Oit is not possible to set the _indefinite_length_ attribute for Primitive ;TI"and its sub-classes.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"<Primitive sub-classes and their mapping to Ruby classes;To:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"?OpenSSL::ASN1::EndOfContent <=> _value_ is always +nil+;To;;0;[o; ;[I"DOpenSSL::ASN1::Boolean <=> _value_ is +true+ or +false+;To;;0;[o; ;[I"AOpenSSL::ASN1::Integer <=> _value_ is an OpenSSL::BN;To;;0;[o; ;[I";OpenSSL::ASN1::BitString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::OctetString <=> _value_ is a String;To;;0;[o; ;[I"?OpenSSL::ASN1::Null <=> _value_ is always +nil+;To;;0;[o; ;[I";OpenSSL::ASN1::Object <=> _value_ is a String;To;;0;[o; ;[I"AOpenSSL::ASN1::Enumerated <=> _value_ is an OpenSSL::BN;To;;0;[o; ;[I";OpenSSL::ASN1::UTF8String <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::NumericString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::PrintableString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::T61String <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::VideotexString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::IA5String <=> _value_ is a String;To;;0;[o; ;[I"9OpenSSL::ASN1::UTCTime <=> _value_ is a Time;To;;0;[o; ;[I"9OpenSSL::ASN1::GeneralizedTime <=> _value_ is a Time;To;;0;[o; ;[I";OpenSSL::ASN1::GraphicString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::ISO64String <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::GeneralString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::UniversalString <=> _value_ is a String;To;;0;[o; ;[I";OpenSSL::ASN1::BMPString <=> _value_ is a String;T@S;;i; I"OpenSSL::ASN1::BitString;T@S;;i; I"Additional attributes;To; ;[ I"3_unused_bits_: if the underlying BIT STRING's ;TI"Blength is a multiple of 8 then _unused_bits_ is 0. Otherwise ;TI"J_unused_bits_ indicates the number of bits that are to be ignored in ;TI"0the final octet of the BitString's _value_.;T@S;;i; I"OpenSSL::ASN1::ObjectId;T@o; ;[I"KNOTE: While OpenSSL::ASN1::ObjectId.new will allocate a new ObjectId, ;TI"Oit is not typically allocated this way, but rather that are received from ;TI"parsed ASN1 encodings.;T@S;;i; I"Additional attributes;To;;;;[ o;;0;[o; ;[I"<_sn_: the short name as defined in <openssl/objects.h>.;To;;0;[o; ;[I";_ln_: the long name as defined in <openssl/objects.h>.;To;;0;[o; ;[I"?_oid_: the object identifier as a String, e.g. "1.2.3.4.5";To;;0;[o; ;[I""_short_name_: alias for _sn_.;To;;0;[o; ;[I"!_long_name_: alias for _ln_.;T@S;;i; I" Examples;To; ;[I"MWith the Exception of OpenSSL::ASN1::EndOfContent, each Primitive class ;TI";constructor takes at least one parameter, the _value_.;T@S;;i; I"Creating EndOfContent;To:RDoc::Markup::Verbatim;[I"+eoc = OpenSSL::ASN1::EndOfContent.new ;T:@format0S;;i; I"!Creating any other Primitive;To;;[I"Zprim = <class>.new(value) # <class> being one of the sub-classes except EndOfContent ;TI"Bprim_zero_tagged_implicit = <class>.new(value, 0, :IMPLICIT) ;TI"Aprim_zero_tagged_explicit = <class>.new(value, 0, :EXPLICIT);T;0: @fileI"ext/openssl/ossl_asn1.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[ I"tagging;TI"RW;T:privateFI"ext/openssl/ossl_asn1.c;T[ [ [[I" class;T[[:public[ [:protected[ [;[[I"new;T@�[I" instance;T[[;[ [;[ [;[[I"to_der;T@�[ [U:RDoc::Context::Section[i 0o;;[ ;0;0[I"ext/openssl/ossl_asn1.c;TI"OpenSSL::ASN1;TcRDoc::NormalModule