… | |
… | |
108 | BER_CLASS BER_TAG BER_FLAGS BER_DATA |
108 | BER_CLASS BER_TAG BER_FLAGS BER_DATA |
109 | |
109 | |
110 | =item C<:const_asn> |
110 | =item C<:const_asn> |
111 | |
111 | |
112 | ASN class values (these are C<0>, C<1>, C<2> and C<3>, respectively - |
112 | ASN class values (these are C<0>, C<1>, C<2> and C<3>, respectively - |
113 | exactly thw two topmost bits from the identifier octet shifted 6 bits to |
113 | exactly the two topmost bits from the identifier octet shifted 6 bits to |
114 | the right): |
114 | the right): |
115 | |
115 | |
116 | ASN_UNIVERSAL ASN_APPLICATION ASN_CONTEXT ASN_PRIVATE |
116 | ASN_UNIVERSAL ASN_APPLICATION ASN_CONTEXT ASN_PRIVATE |
117 | |
117 | |
118 | ASN tag values (some of which are aliases, such as C<ASN_OID>). Their |
118 | ASN tag values (some of which are aliases, such as C<ASN_OID>). Their |
… | |
… | |
296 | Also, since BER is self-delimited, this can be used to decode multiple BER |
296 | Also, since BER is self-delimited, this can be used to decode multiple BER |
297 | values joined together. |
297 | values joined together. |
298 | |
298 | |
299 | =item $bindata = ber_encode $tuple[, $profile] |
299 | =item $bindata = ber_encode $tuple[, $profile] |
300 | |
300 | |
301 | Encodes the BER tuple into a BER/DER data structure. AS with |
301 | Encodes the BER tuple into a BER/DER data structure. As with |
302 | Cyber_decode>, an optional profile can be given. |
302 | Cyber_decode>, an optional profile can be given. |
303 | |
303 | |
304 | The encoded data should be both BER and DER ("shortest form") compliant |
304 | The encoded data should be both BER and DER ("shortest form") compliant |
305 | unless the input says otherwise (e.g. it uses constructed strings). |
305 | unless the input says otherwise (e.g. it uses constructed strings). |
306 | |
306 | |
… | |
… | |
479 | |
479 | |
480 | =over |
480 | =over |
481 | |
481 | |
482 | =item ber_dump $tuple[, $profile[, $prefix]] |
482 | =item ber_dump $tuple[, $profile[, $prefix]] |
483 | |
483 | |
484 | In addition to specifying the BER C<$tuple> to dump, youc an also specify |
484 | In addition to specifying the BER C<$tuple> to dump, you can also specify |
485 | a C<$profile> and a C<$prefix> string that is printed in front of each line. |
485 | a C<$profile> and a C<$prefix> string that is printed in front of each line. |
486 | |
486 | |
487 | If C<$profile> is C<$Convert::BER::XS::SNMP_PROFILE>, then C<ber_dump> |
487 | If C<$profile> is C<$Convert::BER::XS::SNMP_PROFILE>, then C<ber_dump> |
488 | will try to improve its output for SNMP data. |
488 | will try to improve its output for SNMP data. |
489 | |
489 | |