… | |
… | |
68 | # finally, let's encode it again and hope it results in the same bit pattern |
68 | # finally, let's encode it again and hope it results in the same bit pattern |
69 | |
69 | |
70 | my $buf = ber_encode $ber, $Convert::BER::XS::SNMP_PROFILE; |
70 | my $buf = ber_encode $ber, $Convert::BER::XS::SNMP_PROFILE; |
71 | |
71 | |
72 | =head1 DESCRIPTION |
72 | =head1 DESCRIPTION |
73 | |
|
|
74 | WARNING: Before release 1.0, the API is not considered stable in any way. |
|
|
75 | |
73 | |
76 | This module implements a I<very> low level BER/DER en-/decoder. |
74 | This module implements a I<very> low level BER/DER en-/decoder. |
77 | |
75 | |
78 | It is tuned for low memory and high speed, while still maintaining some |
76 | It is tuned for low memory and high speed, while still maintaining some |
79 | level of user-friendlyness. |
77 | level of user-friendlyness. |
… | |
… | |
729 | dot, e.g. C<1.3.6.1.213>. |
727 | dot, e.g. C<1.3.6.1.213>. |
730 | |
728 | |
731 | =item C<BER_TYPE_RELOID> |
729 | =item C<BER_TYPE_RELOID> |
732 | |
730 | |
733 | Same as C<BER_TYPE_OID> but uses relative object identifier |
731 | Same as C<BER_TYPE_OID> but uses relative object identifier |
734 | encoding: ASN.1 has this hack of encoding the first two OID components |
732 | encoding: ASN.1 uses some hack encoding of the first two OID components |
735 | into a single integer in a weird attempt to save an insignificant amount |
733 | into a single integer in a weird attempt to save an insignificant amount |
736 | of space in an otherwise wasteful encoding, and relative OIDs are |
734 | of space in an otherwise wasteful encoding, and relative OIDs are |
737 | basically OIDs without this hack. The practical difference is that the |
735 | basically OIDs without this hack. The practical difference is that the |
738 | second component of an OID can only have the values 1..40, while relative |
736 | second component of an OID can only have the values 1..40, while relative |
739 | OIDs do not have this restriction. |
737 | OIDs do not have this restriction. |